diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java deleted file mode 100644 index 76ba2b3c455f..000000000000 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java +++ /dev/null @@ -1,342 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/v1/cloud_billing.proto - -package com.google.cloud.billing.v1; - -public final class CloudBillingProto { - private CloudBillingProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_BillingAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/billing/v1/cloud_billing." - + "proto\022\027google.cloud.billing.v1\032\034google/a" - + "pi/annotations.proto\032\027google/api/client." - + "proto\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032\036google/iam/v1" - + "/iam_policy.proto\032\032google/iam/v1/policy." - + "proto\032 google/protobuf/field_mask.proto\"" - + "\352\002\n\016BillingAccount\022A\n\004name\030\001 \001(\tB3\342A\001\003\372A" - + ",\n*cloudbilling.googleapis.com/BillingAc" - + "count\022\022\n\004open\030\002 \001(\010B\004\342A\001\003\022\024\n\014display_nam" - + "e\030\003 \001(\t\022\036\n\026master_billing_account\030\004 \001(\t\022" - + "\024\n\006parent\030\006 \001(\tB\004\342A\001\003:\264\001\352A\260\001\n*cloudbilli" - + "ng.googleapis.com/BillingAccount\022!billin" - + "gAccounts/{billing_account}\022>organizatio" - + "ns/{organization}/billingAccounts/{billi" - + "ng_account}*\017billingAccounts2\016billingAcc" - + "ount\"\324\001\n\022ProjectBillingInfo\022\022\n\004name\030\001 \001(" - + "\tB\004\342A\001\003\022\030\n\nproject_id\030\002 \001(\tB\004\342A\001\003\022\034\n\024bil" - + "ling_account_name\030\003 \001(\t\022\035\n\017billing_enabl" - + "ed\030\004 \001(\010B\004\342A\001\003:S\352AP\n.cloudbilling.google" - + "apis.com/ProjectBillingInfo\022\036projects/{p" - + "roject}/billingInfo\"]\n\030GetBillingAccount" - + "Request\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*cloudbil" - + "ling.googleapis.com/BillingAccount\"i\n\032Li" - + "stBillingAccountsRequest\022\021\n\tpage_size\030\001 " - + "\001(\005\022\022\n\npage_token\030\002 \001(\t\022\016\n\006filter\030\003 \001(\t\022" - + "\024\n\006parent\030\004 \001(\tB\004\342A\001\001\"y\n\033ListBillingAcco" - + "untsResponse\022A\n\020billing_accounts\030\001 \003(\0132\'" - + ".google.cloud.billing.v1.BillingAccount\022" - + "\027\n\017next_page_token\030\002 \001(\t\"{\n\033CreateBillin" - + "gAccountRequest\022F\n\017billing_account\030\001 \001(\013" - + "2\'.google.cloud.billing.v1.BillingAccoun" - + "tB\004\342A\001\002\022\024\n\006parent\030\002 \001(\tB\004\342A\001\001\"\321\001\n\033Update" - + "BillingAccountRequest\022A\n\004name\030\001 \001(\tB3\342A\001" - + "\002\372A,\n*cloudbilling.googleapis.com/Billin" - + "gAccount\022>\n\007account\030\002 \001(\0132\'.google.cloud" - + ".billing.v1.BillingAccountB\004\342A\001\002\022/\n\013upda" - + "te_mask\030\003 \001(\0132\032.google.protobuf.FieldMas" - + "k\"\211\001\n\035ListProjectBillingInfoRequest\022A\n\004n" - + "ame\030\001 \001(\tB3\342A\001\002\372A,\n*cloudbilling.googlea" - + "pis.com/BillingAccount\022\021\n\tpage_size\030\002 \001(" - + "\005\022\022\n\npage_token\030\003 \001(\t\"\204\001\n\036ListProjectBil" - + "lingInfoResponse\022I\n\024project_billing_info" - + "\030\001 \003(\0132+.google.cloud.billing.v1.Project" - + "BillingInfo\022\027\n\017next_page_token\030\002 \001(\t\"b\n\034" - + "GetProjectBillingInfoRequest\022B\n\004name\030\001 \001" - + "(\tB4\342A\001\002\372A-\n+cloudresourcemanager.google" - + "apis.com/Project\"\200\001\n\037UpdateProjectBillin" - + "gInfoRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022I\n\024proj" - + "ect_billing_info\030\002 \001(\0132+.google.cloud.bi" - + "lling.v1.ProjectBillingInfo\"\265\001\n\031MoveBill" - + "ingAccountRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A," - + "\n*cloudbilling.googleapis.com/BillingAcc" - + "ount\022U\n\022destination_parent\030\002 \001(\tB9\342A\001\002\372A" - + "2\n0cloudresourcemanager.googleapis.com/O" - + "rganization2\241\023\n\014CloudBilling\022\234\001\n\021GetBill" - + "ingAccount\0221.google.cloud.billing.v1.Get" - + "BillingAccountRequest\032\'.google.cloud.bil" - + "ling.v1.BillingAccount\"+\332A\004name\202\323\344\223\002\036\022\034/" - + "v1/{name=billingAccounts/*}\022\210\002\n\023ListBill" - + "ingAccounts\0223.google.cloud.billing.v1.Li" - + "stBillingAccountsRequest\0324.google.cloud." - + "billing.v1.ListBillingAccountsResponse\"\205" - + "\001\332A\000\332A\006parent\202\323\344\223\002s\022\023/v1/billingAccounts" - + "Z.\022,/v1/{parent=organizations/*}/billing" - + "AccountsZ,\022*/v1/{parent=billingAccounts/" - + "*}/subAccounts\022\263\001\n\024UpdateBillingAccount\022" - + "4.google.cloud.billing.v1.UpdateBillingA" - + "ccountRequest\032\'.google.cloud.billing.v1." - + "BillingAccount\"<\332A\014name,account\202\323\344\223\002\'2\034/" - + "v1/{name=billingAccounts/*}:\007account\022\320\002\n" - + "\024CreateBillingAccount\0224.google.cloud.bil" - + "ling.v1.CreateBillingAccountRequest\032\'.go" - + "ogle.cloud.billing.v1.BillingAccount\"\330\001\332" - + "A\017billing_account\332A\026billing_account,pare" - + "nt\202\323\344\223\002\246\001\"\023/v1/billingAccounts:\017billing_" - + "accountZ?\",/v1/{parent=organizations/*}/" - + "billingAccounts:\017billing_accountZ=\"*/v1/" - + "{parent=billingAccounts/*}/subAccounts:\017" - + "billing_account\022\277\001\n\026ListProjectBillingIn" - + "fo\0226.google.cloud.billing.v1.ListProject" - + "BillingInfoRequest\0327.google.cloud.billin" - + "g.v1.ListProjectBillingInfoResponse\"4\332A\004" - + "name\202\323\344\223\002\'\022%/v1/{name=billingAccounts/*}" - + "/projects\022\255\001\n\025GetProjectBillingInfo\0225.go" - + "ogle.cloud.billing.v1.GetProjectBillingI" - + "nfoRequest\032+.google.cloud.billing.v1.Pro" - + "jectBillingInfo\"0\332A\004name\202\323\344\223\002#\022!/v1/{nam" - + "e=projects/*}/billingInfo\022\336\001\n\030UpdateProj" - + "ectBillingInfo\0228.google.cloud.billing.v1" - + ".UpdateProjectBillingInfoRequest\032+.googl" - + "e.cloud.billing.v1.ProjectBillingInfo\"[\332" - + "A\031name,project_billing_info\202\323\344\223\0029\032!/v1/{" - + "name=projects/*}/billingInfo:\024project_bi" - + "lling_info\022\213\001\n\014GetIamPolicy\022\".google.iam" - + ".v1.GetIamPolicyRequest\032\025.google.iam.v1." - + "Policy\"@\332A\010resource\202\323\344\223\002/\022-/v1/{resource" - + "=billingAccounts/*}:getIamPolicy\022\225\001\n\014Set" - + "IamPolicy\022\".google.iam.v1.SetIamPolicyRe" - + "quest\032\025.google.iam.v1.Policy\"J\332A\017resourc" - + "e,policy\202\323\344\223\0022\"-/v1/{resource=billingAcc" - + "ounts/*}:setIamPolicy:\001*\022\300\001\n\022TestIamPerm" - + "issions\022(.google.iam.v1.TestIamPermissio" - + "nsRequest\032).google.iam.v1.TestIamPermiss" - + "ionsResponse\"U\332A\024resource,permissions\202\323\344" - + "\223\0028\"3/v1/{resource=billingAccounts/*}:te" - + "stIamPermissions:\001*\022\351\001\n\022MoveBillingAccou" - + "nt\0222.google.cloud.billing.v1.MoveBilling" - + "AccountRequest\032\'.google.cloud.billing.v1" - + ".BillingAccount\"v\202\323\344\223\002p\"!/v1/{name=billi" - + "ngAccounts/*}:move:\001*ZH\022F/v1/{destinatio" - + "n_parent=organizations/*}/{name=billingA" - + "ccounts/*}:move\032\265\001\312A\033cloudbilling.google" - + "apis.com\322A\223\001https://www.googleapis.com/a" - + "uth/cloud-billing,https://www.googleapis" - + ".com/auth/cloud-billing.readonly,https:/" - + "/www.googleapis.com/auth/cloud-platformB" - + "\200\002\n\033com.google.cloud.billing.v1B\021CloudBi" - + "llingProtoP\001Z5cloud.google.com/go/billin" - + "g/apiv1/billingpb;billingpb\352AA\n+cloudres" - + "ourcemanager.googleapis.com/Project\022\022pro" - + "jects/{project}\352AP\n0cloudresourcemanager" - + ".googleapis.com/Organization\022\034organizati" - + "ons/{organization}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_billing_v1_BillingAccount_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_BillingAccount_descriptor, - new java.lang.String[] { - "Name", "Open", "DisplayName", "MasterBillingAccount", "Parent", - }); - internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor, - new java.lang.String[] { - "Name", "ProjectId", "BillingAccountName", "BillingEnabled", - }); - internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor, - new java.lang.String[] { - "PageSize", "PageToken", "Filter", "Parent", - }); - internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor, - new java.lang.String[] { - "BillingAccounts", "NextPageToken", - }); - internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor, - new java.lang.String[] { - "BillingAccount", "Parent", - }); - internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor, - new java.lang.String[] { - "Name", "Account", "UpdateMask", - }); - internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor, - new java.lang.String[] { - "Name", "PageSize", "PageToken", - }); - internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor, - new java.lang.String[] { - "ProjectBillingInfo", "NextPageToken", - }); - internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor, - new java.lang.String[] { - "Name", "ProjectBillingInfo", - }); - internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_descriptor, - new java.lang.String[] { - "Name", "DestinationParent", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java deleted file mode 100644 index 851665193b44..000000000000 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java +++ /dev/null @@ -1,313 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/v1/cloud_catalog.proto - -package com.google.cloud.billing.v1; - -public final class CloudCatalogProto { - private CloudCatalogProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_Service_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_Service_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_Sku_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_Category_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_Category_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_PricingInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_PricingInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_PricingExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_PricingExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_PricingExpression_TierRate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_AggregationInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_AggregationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_GeoTaxonomy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_ListServicesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_ListServicesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_ListSkusRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_ListSkusResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/billing/v1/cloud_catalog." - + "proto\022\027google.cloud.billing.v1\032\034google/a" - + "pi/annotations.proto\032\027google/api/client." - + "proto\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032\037google/protob" - + "uf/timestamp.proto\032\027google/type/money.pr" - + "oto\"\235\001\n\007Service\022\014\n\004name\030\001 \001(\t\022\022\n\nservice" - + "_id\030\002 \001(\t\022\024\n\014display_name\030\003 \001(\t\022\034\n\024busin" - + "ess_entity_name\030\004 \001(\t:<\352A9\n#cloudbilling" - + ".googleapis.com/Service\022\022services/{servi" - + "ce}\"\342\002\n\003Sku\022\014\n\004name\030\001 \001(\t\022\016\n\006sku_id\030\002 \001(" - + "\t\022\023\n\013description\030\003 \001(\t\0223\n\010category\030\004 \001(\013" - + "2!.google.cloud.billing.v1.Category\022\027\n\017s" - + "ervice_regions\030\005 \003(\t\022:\n\014pricing_info\030\006 \003" - + "(\0132$.google.cloud.billing.v1.PricingInfo" - + "\022\035\n\025service_provider_name\030\007 \001(\t\022:\n\014geo_t" - + "axonomy\030\010 \001(\0132$.google.cloud.billing.v1." - + "GeoTaxonomy:C\352A@\n\037cloudbilling.googleapi" - + "s.com/Sku\022\035services/{service}/skus/{sku}" - + "\"m\n\010Category\022\034\n\024service_display_name\030\001 \001" - + "(\t\022\027\n\017resource_family\030\002 \001(\t\022\026\n\016resource_" - + "group\030\003 \001(\t\022\022\n\nusage_type\030\004 \001(\t\"\200\002\n\013Pric" - + "ingInfo\0222\n\016effective_time\030\001 \001(\0132\032.google" - + ".protobuf.Timestamp\022\017\n\007summary\030\002 \001(\t\022F\n\022" - + "pricing_expression\030\003 \001(\0132*.google.cloud." - + "billing.v1.PricingExpression\022B\n\020aggregat" - + "ion_info\030\004 \001(\0132(.google.cloud.billing.v1" - + ".AggregationInfo\022 \n\030currency_conversion_" - + "rate\030\005 \001(\001\"\323\002\n\021PricingExpression\022\022\n\nusag" - + "e_unit\030\001 \001(\t\022\030\n\020display_quantity\030\002 \001(\001\022I" - + "\n\014tiered_rates\030\003 \003(\01323.google.cloud.bill" - + "ing.v1.PricingExpression.TierRate\022\036\n\026usa" - + "ge_unit_description\030\004 \001(\t\022\021\n\tbase_unit\030\005" - + " \001(\t\022\035\n\025base_unit_description\030\006 \001(\t\022#\n\033b" - + "ase_unit_conversion_factor\030\007 \001(\001\032N\n\010Tier" - + "Rate\022\032\n\022start_usage_amount\030\001 \001(\001\022&\n\nunit" - + "_price\030\002 \001(\0132\022.google.type.Money\"\204\003\n\017Agg" - + "regationInfo\022T\n\021aggregation_level\030\001 \001(\0162" - + "9.google.cloud.billing.v1.AggregationInf" - + "o.AggregationLevel\022Z\n\024aggregation_interv" - + "al\030\002 \001(\0162<.google.cloud.billing.v1.Aggre" - + "gationInfo.AggregationInterval\022\031\n\021aggreg" - + "ation_count\030\003 \001(\005\"O\n\020AggregationLevel\022!\n" - + "\035AGGREGATION_LEVEL_UNSPECIFIED\020\000\022\013\n\007ACCO" - + "UNT\020\001\022\013\n\007PROJECT\020\002\"S\n\023AggregationInterva" - + "l\022$\n AGGREGATION_INTERVAL_UNSPECIFIED\020\000\022" - + "\t\n\005DAILY\020\001\022\013\n\007MONTHLY\020\002\"\243\001\n\013GeoTaxonomy\022" - + "7\n\004type\030\001 \001(\0162).google.cloud.billing.v1." - + "GeoTaxonomy.Type\022\017\n\007regions\030\002 \003(\t\"J\n\004Typ" - + "e\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006GLOBAL\020\001\022\014\n\010R" - + "EGIONAL\020\002\022\022\n\016MULTI_REGIONAL\020\003\"<\n\023ListSer" - + "vicesRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_" - + "token\030\002 \001(\t\"c\n\024ListServicesResponse\0222\n\010s" - + "ervices\030\001 \003(\0132 .google.cloud.billing.v1." - + "Service\022\027\n\017next_page_token\030\002 \001(\t\"\353\001\n\017Lis" - + "tSkusRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\n#c" - + "loudbilling.googleapis.com/Service\022.\n\nst" - + "art_time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mp\022,\n\010end_time\030\003 \001(\0132\032.google.protobuf.T" - + "imestamp\022\025\n\rcurrency_code\030\004 \001(\t\022\021\n\tpage_" - + "size\030\005 \001(\005\022\022\n\npage_token\030\006 \001(\t\"W\n\020ListSk" - + "usResponse\022*\n\004skus\030\001 \003(\0132\034.google.cloud." - + "billing.v1.Sku\022\027\n\017next_page_token\030\002 \001(\t2" - + "\336\003\n\014CloudCatalog\022\204\001\n\014ListServices\022,.goog" - + "le.cloud.billing.v1.ListServicesRequest\032" - + "-.google.cloud.billing.v1.ListServicesRe" - + "sponse\"\027\332A\000\202\323\344\223\002\016\022\014/v1/services\022\216\001\n\010List" - + "Skus\022(.google.cloud.billing.v1.ListSkusR" - + "equest\032).google.cloud.billing.v1.ListSku" - + "sResponse\"-\332A\006parent\202\323\344\223\002\036\022\034/v1/{parent=" - + "services/*}/skus\032\265\001\312A\033cloudbilling.googl" - + "eapis.com\322A\223\001https://www.googleapis.com/" - + "auth/cloud-billing,https://www.googleapi" - + "s.com/auth/cloud-billing.readonly,https:" - + "//www.googleapis.com/auth/cloud-platform" - + "B\215\001\n\033com.google.cloud.billing.v1B\021CloudC" - + "atalogProtoP\001Z5cloud.google.com/go/billi" - + "ng/apiv1/billingpb;billingpb\242\002\007CLDCTLG\252\002" - + "\027Google.Cloud.Billing.V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.MoneyProto.getDescriptor(), - }); - internal_static_google_cloud_billing_v1_Service_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_billing_v1_Service_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_Service_descriptor, - new java.lang.String[] { - "Name", "ServiceId", "DisplayName", "BusinessEntityName", - }); - internal_static_google_cloud_billing_v1_Sku_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_Sku_descriptor, - new java.lang.String[] { - "Name", - "SkuId", - "Description", - "Category", - "ServiceRegions", - "PricingInfo", - "ServiceProviderName", - "GeoTaxonomy", - }); - internal_static_google_cloud_billing_v1_Category_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_billing_v1_Category_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_Category_descriptor, - new java.lang.String[] { - "ServiceDisplayName", "ResourceFamily", "ResourceGroup", "UsageType", - }); - internal_static_google_cloud_billing_v1_PricingInfo_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_billing_v1_PricingInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_PricingInfo_descriptor, - new java.lang.String[] { - "EffectiveTime", - "Summary", - "PricingExpression", - "AggregationInfo", - "CurrencyConversionRate", - }); - internal_static_google_cloud_billing_v1_PricingExpression_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_billing_v1_PricingExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_PricingExpression_descriptor, - new java.lang.String[] { - "UsageUnit", - "DisplayQuantity", - "TieredRates", - "UsageUnitDescription", - "BaseUnit", - "BaseUnitDescription", - "BaseUnitConversionFactor", - }); - internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor = - internal_static_google_cloud_billing_v1_PricingExpression_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_billing_v1_PricingExpression_TierRate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor, - new java.lang.String[] { - "StartUsageAmount", "UnitPrice", - }); - internal_static_google_cloud_billing_v1_AggregationInfo_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_billing_v1_AggregationInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_AggregationInfo_descriptor, - new java.lang.String[] { - "AggregationLevel", "AggregationInterval", "AggregationCount", - }); - internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_billing_v1_GeoTaxonomy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor, - new java.lang.String[] { - "Type", "Regions", - }); - internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_billing_v1_ListServicesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor, - new java.lang.String[] { - "PageSize", "PageToken", - }); - internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_billing_v1_ListServicesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor, - new java.lang.String[] { - "Services", "NextPageToken", - }); - internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_billing_v1_ListSkusRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor, - new java.lang.String[] { - "Parent", "StartTime", "EndTime", "CurrencyCode", "PageSize", "PageToken", - }); - internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_billing_v1_ListSkusResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor, - new java.lang.String[] { - "Skus", "NextPageToken", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.MoneyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java deleted file mode 100644 index 1c4f43ff36f8..000000000000 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/v1/cloud_billing.proto - -package com.google.cloud.billing.v1; - -public interface GetBillingAccountRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.GetBillingAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
- * Required. The resource name of the billing account to retrieve. For - * example, `billingAccounts/012345-567890-ABCDEF`. - *- * - *
- * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The name.
- */
- java.lang.String getName();
- /**
- *
- *
- * - * Required. The resource name of the billing account to retrieve. For - * example, `billingAccounts/012345-567890-ABCDEF`. - *- * - *
- * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for name.
- */
- com.google.protobuf.ByteString getNameBytes();
-}
diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java
deleted file mode 100644
index d303aa1819fa..000000000000
--- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/billing/v1/cloud_billing.proto
-
-package com.google.cloud.billing.v1;
-
-public interface GetProjectBillingInfoRequestOrBuilder
- extends
- // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.GetProjectBillingInfoRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- *
- * - * Required. The resource name of the project for which billing information is - * retrieved. For example, `projects/tokyo-rain-123`. - *- * - *
- * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The name.
- */
- java.lang.String getName();
- /**
- *
- *
- * - * Required. The resource name of the project for which billing information is - * retrieved. For example, `projects/tokyo-rain-123`. - *- * - *
- * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for name.
- */
- com.google.protobuf.ByteString getNameBytes();
-}
diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequestOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequestOrBuilder.java
deleted file mode 100644
index 1e87404a83d2..000000000000
--- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequestOrBuilder.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/cloud/billing/v1/cloud_billing.proto
-
-package com.google.cloud.billing.v1;
-
-public interface MoveBillingAccountRequestOrBuilder
- extends
- // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.MoveBillingAccountRequest)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- *
- * - * Required. The resource name of the billing account to move. - * Must be of the form `billingAccounts/{billing_account_id}`. - * The specified billing account cannot be a subaccount, since a subaccount - * always belongs to the same organization as its parent account. - *- * - *
- * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The name.
- */
- java.lang.String getName();
- /**
- *
- *
- * - * Required. The resource name of the billing account to move. - * Must be of the form `billingAccounts/{billing_account_id}`. - * The specified billing account cannot be a subaccount, since a subaccount - * always belongs to the same organization as its parent account. - *- * - *
- * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for name.
- */
- com.google.protobuf.ByteString getNameBytes();
-
- /**
- *
- *
- * - * Required. The resource name of the Organization to reparent - * the billing account under. - * Must be of the form `organizations/{organization_id}`. - *- * - *
- * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The destinationParent.
- */
- java.lang.String getDestinationParent();
- /**
- *
- *
- * - * Required. The resource name of the Organization to reparent - * the billing account under. - * Must be of the form `organizations/{organization_id}`. - *- * - *
- * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for destinationParent.
- */
- com.google.protobuf.ByteString getDestinationParentBytes();
-}
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java
similarity index 99%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java
index 300f76b1961e..6f7fdb0e5aea 100644
--- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java
+++ b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java
@@ -29,6 +29,7 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.billing.v1.stub.CloudBillingStubSettings;
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java
similarity index 99%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java
index cf15f1d2cbcc..080210d98d30 100644
--- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java
+++ b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java
@@ -29,6 +29,7 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.billing.v1.stub.CloudCatalogStubSettings;
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java
similarity index 99%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java
index 113b45671bbb..bd25912676c9 100644
--- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java
+++ b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java
@@ -47,6 +47,7 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
+import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java
similarity index 99%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java
index cc2b0680a6f1..1c12132e8ce7 100644
--- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java
+++ b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java
@@ -34,6 +34,7 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
+import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java
diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java
diff --git a/java-billing/google-cloud-billing/src/main/resources/META-INF/native-image/com.google.cloud.billing.v1/reflect-config.json b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/resources/META-INF/native-image/com.google.cloud.billing.v1/reflect-config.json
similarity index 100%
rename from java-billing/google-cloud-billing/src/main/resources/META-INF/native-image/com.google.cloud.billing.v1/reflect-config.json
rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/resources/META-INF/native-image/com.google.cloud.billing.v1/reflect-config.json
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java
new file mode 100644
index 000000000000..f410d4e782dc
--- /dev/null
+++ b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java
@@ -0,0 +1,1062 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.billing.v1;
+
+import static com.google.cloud.billing.v1.CloudBillingClient.ListBillingAccountsPagedResponse;
+import static com.google.cloud.billing.v1.CloudBillingClient.ListProjectBillingInfoPagedResponse;
+
+import com.google.api.gax.core.NoCredentialsProvider;
+import com.google.api.gax.httpjson.GaxHttpJsonProperties;
+import com.google.api.gax.httpjson.testing.MockHttpService;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ApiException;
+import com.google.api.gax.rpc.ApiExceptionFactory;
+import com.google.api.gax.rpc.InvalidArgumentException;
+import com.google.api.gax.rpc.StatusCode;
+import com.google.api.gax.rpc.testing.FakeStatusCode;
+import com.google.api.resourcenames.ResourceName;
+import com.google.cloud.billing.v1.stub.HttpJsonCloudBillingStub;
+import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
+import com.google.iam.v1.Binding;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.TestIamPermissionsResponse;
+import com.google.protobuf.ByteString;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import javax.annotation.Generated;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+@Generated("by gapic-generator-java")
+public class CloudBillingClientHttpJsonTest {
+ private static MockHttpService mockService;
+ private static CloudBillingClient client;
+
+ @BeforeClass
+ public static void startStaticServer() throws IOException {
+ mockService =
+ new MockHttpService(
+ HttpJsonCloudBillingStub.getMethodDescriptors(),
+ CloudBillingSettings.getDefaultEndpoint());
+ CloudBillingSettings settings =
+ CloudBillingSettings.newHttpJsonBuilder()
+ .setTransportChannelProvider(
+ CloudBillingSettings.defaultHttpJsonTransportProviderBuilder()
+ .setHttpTransport(mockService)
+ .build())
+ .setCredentialsProvider(NoCredentialsProvider.create())
+ .build();
+ client = CloudBillingClient.create(settings);
+ }
+
+ @AfterClass
+ public static void stopServer() {
+ client.close();
+ }
+
+ @Before
+ public void setUp() {}
+
+ @After
+ public void tearDown() throws Exception {
+ mockService.reset();
+ }
+
+ @Test
+ public void getBillingAccountTest() throws Exception {
+ BillingAccount expectedResponse =
+ BillingAccount.newBuilder()
+ .setName(BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]").toString())
+ .setOpen(true)
+ .setDisplayName("displayName1714148973")
+ .setMasterBillingAccount("masterBillingAccount1488941620")
+ .setParent("parent-995424086")
+ .build();
+ mockService.addResponse(expectedResponse);
+
+ BillingAccountName name = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]");
+
+ BillingAccount actualResponse = client.getBillingAccount(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List* Retrieves the Google Cloud Console billing accounts and associates them with * projects. @@ -36,554 +19,392 @@ private CloudBillingGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.billing.v1.CloudBilling"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.GetBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount> - getGetBillingAccountMethod; + private static volatile io.grpc.MethodDescriptorgetGetBillingAccountMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetBillingAccount", requestType = com.google.cloud.billing.v1.GetBillingAccountRequest.class, responseType = com.google.cloud.billing.v1.BillingAccount.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.GetBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount> - getGetBillingAccountMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.GetBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount> - getGetBillingAccountMethod; + public static io.grpc.MethodDescriptor getGetBillingAccountMethod() { + io.grpc.MethodDescriptor getGetBillingAccountMethod; if ((getGetBillingAccountMethod = CloudBillingGrpc.getGetBillingAccountMethod) == null) { synchronized (CloudBillingGrpc.class) { if ((getGetBillingAccountMethod = CloudBillingGrpc.getGetBillingAccountMethod) == null) { - CloudBillingGrpc.getGetBillingAccountMethod = - getGetBillingAccountMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBillingAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.GetBillingAccountRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.BillingAccount.getDefaultInstance())) - .setSchemaDescriptor( - new CloudBillingMethodDescriptorSupplier("GetBillingAccount")) - .build(); + CloudBillingGrpc.getGetBillingAccountMethod = getGetBillingAccountMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBillingAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.GetBillingAccountRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.BillingAccount.getDefaultInstance())) + .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("GetBillingAccount")) + .build(); } } } return getGetBillingAccountMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.ListBillingAccountsRequest, - com.google.cloud.billing.v1.ListBillingAccountsResponse> - getListBillingAccountsMethod; + private static volatile io.grpc.MethodDescriptor getListBillingAccountsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListBillingAccounts", requestType = com.google.cloud.billing.v1.ListBillingAccountsRequest.class, responseType = com.google.cloud.billing.v1.ListBillingAccountsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.ListBillingAccountsRequest, - com.google.cloud.billing.v1.ListBillingAccountsResponse> - getListBillingAccountsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.ListBillingAccountsRequest, - com.google.cloud.billing.v1.ListBillingAccountsResponse> - getListBillingAccountsMethod; + public static io.grpc.MethodDescriptor getListBillingAccountsMethod() { + io.grpc.MethodDescriptor getListBillingAccountsMethod; if ((getListBillingAccountsMethod = CloudBillingGrpc.getListBillingAccountsMethod) == null) { synchronized (CloudBillingGrpc.class) { - if ((getListBillingAccountsMethod = CloudBillingGrpc.getListBillingAccountsMethod) - == null) { - CloudBillingGrpc.getListBillingAccountsMethod = - getListBillingAccountsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListBillingAccounts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ListBillingAccountsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ListBillingAccountsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudBillingMethodDescriptorSupplier("ListBillingAccounts")) - .build(); + if ((getListBillingAccountsMethod = CloudBillingGrpc.getListBillingAccountsMethod) == null) { + CloudBillingGrpc.getListBillingAccountsMethod = getListBillingAccountsMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBillingAccounts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ListBillingAccountsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ListBillingAccountsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("ListBillingAccounts")) + .build(); } } } return getListBillingAccountsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.UpdateBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount> - getUpdateBillingAccountMethod; + private static volatile io.grpc.MethodDescriptor getUpdateBillingAccountMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateBillingAccount", requestType = com.google.cloud.billing.v1.UpdateBillingAccountRequest.class, responseType = com.google.cloud.billing.v1.BillingAccount.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.UpdateBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount> - getUpdateBillingAccountMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.UpdateBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount> - getUpdateBillingAccountMethod; + public static io.grpc.MethodDescriptor getUpdateBillingAccountMethod() { + io.grpc.MethodDescriptor getUpdateBillingAccountMethod; if ((getUpdateBillingAccountMethod = CloudBillingGrpc.getUpdateBillingAccountMethod) == null) { synchronized (CloudBillingGrpc.class) { - if ((getUpdateBillingAccountMethod = CloudBillingGrpc.getUpdateBillingAccountMethod) - == null) { - CloudBillingGrpc.getUpdateBillingAccountMethod = - getUpdateBillingAccountMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateBillingAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.UpdateBillingAccountRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.BillingAccount.getDefaultInstance())) - .setSchemaDescriptor( - new CloudBillingMethodDescriptorSupplier("UpdateBillingAccount")) - .build(); + if ((getUpdateBillingAccountMethod = CloudBillingGrpc.getUpdateBillingAccountMethod) == null) { + CloudBillingGrpc.getUpdateBillingAccountMethod = getUpdateBillingAccountMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBillingAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.UpdateBillingAccountRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.BillingAccount.getDefaultInstance())) + .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("UpdateBillingAccount")) + .build(); } } } return getUpdateBillingAccountMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.CreateBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount> - getCreateBillingAccountMethod; + private static volatile io.grpc.MethodDescriptor getCreateBillingAccountMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateBillingAccount", requestType = com.google.cloud.billing.v1.CreateBillingAccountRequest.class, responseType = com.google.cloud.billing.v1.BillingAccount.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.CreateBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount> - getCreateBillingAccountMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.CreateBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount> - getCreateBillingAccountMethod; + public static io.grpc.MethodDescriptor getCreateBillingAccountMethod() { + io.grpc.MethodDescriptor getCreateBillingAccountMethod; if ((getCreateBillingAccountMethod = CloudBillingGrpc.getCreateBillingAccountMethod) == null) { synchronized (CloudBillingGrpc.class) { - if ((getCreateBillingAccountMethod = CloudBillingGrpc.getCreateBillingAccountMethod) - == null) { - CloudBillingGrpc.getCreateBillingAccountMethod = - getCreateBillingAccountMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateBillingAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.CreateBillingAccountRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.BillingAccount.getDefaultInstance())) - .setSchemaDescriptor( - new CloudBillingMethodDescriptorSupplier("CreateBillingAccount")) - .build(); + if ((getCreateBillingAccountMethod = CloudBillingGrpc.getCreateBillingAccountMethod) == null) { + CloudBillingGrpc.getCreateBillingAccountMethod = getCreateBillingAccountMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBillingAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.CreateBillingAccountRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.BillingAccount.getDefaultInstance())) + .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("CreateBillingAccount")) + .build(); } } } return getCreateBillingAccountMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.ListProjectBillingInfoRequest, - com.google.cloud.billing.v1.ListProjectBillingInfoResponse> - getListProjectBillingInfoMethod; + private static volatile io.grpc.MethodDescriptor getListProjectBillingInfoMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListProjectBillingInfo", requestType = com.google.cloud.billing.v1.ListProjectBillingInfoRequest.class, responseType = com.google.cloud.billing.v1.ListProjectBillingInfoResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.ListProjectBillingInfoRequest, - com.google.cloud.billing.v1.ListProjectBillingInfoResponse> - getListProjectBillingInfoMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.ListProjectBillingInfoRequest, - com.google.cloud.billing.v1.ListProjectBillingInfoResponse> - getListProjectBillingInfoMethod; - if ((getListProjectBillingInfoMethod = CloudBillingGrpc.getListProjectBillingInfoMethod) - == null) { + public static io.grpc.MethodDescriptor getListProjectBillingInfoMethod() { + io.grpc.MethodDescriptor getListProjectBillingInfoMethod; + if ((getListProjectBillingInfoMethod = CloudBillingGrpc.getListProjectBillingInfoMethod) == null) { synchronized (CloudBillingGrpc.class) { - if ((getListProjectBillingInfoMethod = CloudBillingGrpc.getListProjectBillingInfoMethod) - == null) { - CloudBillingGrpc.getListProjectBillingInfoMethod = - getListProjectBillingInfoMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListProjectBillingInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ListProjectBillingInfoRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ListProjectBillingInfoResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new CloudBillingMethodDescriptorSupplier("ListProjectBillingInfo")) - .build(); + if ((getListProjectBillingInfoMethod = CloudBillingGrpc.getListProjectBillingInfoMethod) == null) { + CloudBillingGrpc.getListProjectBillingInfoMethod = getListProjectBillingInfoMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProjectBillingInfo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ListProjectBillingInfoRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ListProjectBillingInfoResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("ListProjectBillingInfo")) + .build(); } } } return getListProjectBillingInfoMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.GetProjectBillingInfoRequest, - com.google.cloud.billing.v1.ProjectBillingInfo> - getGetProjectBillingInfoMethod; + private static volatile io.grpc.MethodDescriptor getGetProjectBillingInfoMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetProjectBillingInfo", requestType = com.google.cloud.billing.v1.GetProjectBillingInfoRequest.class, responseType = com.google.cloud.billing.v1.ProjectBillingInfo.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.GetProjectBillingInfoRequest, - com.google.cloud.billing.v1.ProjectBillingInfo> - getGetProjectBillingInfoMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.GetProjectBillingInfoRequest, - com.google.cloud.billing.v1.ProjectBillingInfo> - getGetProjectBillingInfoMethod; - if ((getGetProjectBillingInfoMethod = CloudBillingGrpc.getGetProjectBillingInfoMethod) - == null) { + public static io.grpc.MethodDescriptor getGetProjectBillingInfoMethod() { + io.grpc.MethodDescriptor getGetProjectBillingInfoMethod; + if ((getGetProjectBillingInfoMethod = CloudBillingGrpc.getGetProjectBillingInfoMethod) == null) { synchronized (CloudBillingGrpc.class) { - if ((getGetProjectBillingInfoMethod = CloudBillingGrpc.getGetProjectBillingInfoMethod) - == null) { - CloudBillingGrpc.getGetProjectBillingInfoMethod = - getGetProjectBillingInfoMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetProjectBillingInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.GetProjectBillingInfoRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance())) - .setSchemaDescriptor( - new CloudBillingMethodDescriptorSupplier("GetProjectBillingInfo")) - .build(); + if ((getGetProjectBillingInfoMethod = CloudBillingGrpc.getGetProjectBillingInfoMethod) == null) { + CloudBillingGrpc.getGetProjectBillingInfoMethod = getGetProjectBillingInfoMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProjectBillingInfo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.GetProjectBillingInfoRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance())) + .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("GetProjectBillingInfo")) + .build(); } } } return getGetProjectBillingInfoMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest, - com.google.cloud.billing.v1.ProjectBillingInfo> - getUpdateProjectBillingInfoMethod; + private static volatile io.grpc.MethodDescriptor getUpdateProjectBillingInfoMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateProjectBillingInfo", requestType = com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.class, responseType = com.google.cloud.billing.v1.ProjectBillingInfo.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest, - com.google.cloud.billing.v1.ProjectBillingInfo> - getUpdateProjectBillingInfoMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest, - com.google.cloud.billing.v1.ProjectBillingInfo> - getUpdateProjectBillingInfoMethod; - if ((getUpdateProjectBillingInfoMethod = CloudBillingGrpc.getUpdateProjectBillingInfoMethod) - == null) { + public static io.grpc.MethodDescriptor getUpdateProjectBillingInfoMethod() { + io.grpc.MethodDescriptor getUpdateProjectBillingInfoMethod; + if ((getUpdateProjectBillingInfoMethod = CloudBillingGrpc.getUpdateProjectBillingInfoMethod) == null) { synchronized (CloudBillingGrpc.class) { - if ((getUpdateProjectBillingInfoMethod = CloudBillingGrpc.getUpdateProjectBillingInfoMethod) - == null) { - CloudBillingGrpc.getUpdateProjectBillingInfoMethod = - getUpdateProjectBillingInfoMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateProjectBillingInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance())) - .setSchemaDescriptor( - new CloudBillingMethodDescriptorSupplier("UpdateProjectBillingInfo")) - .build(); + if ((getUpdateProjectBillingInfoMethod = CloudBillingGrpc.getUpdateProjectBillingInfoMethod) == null) { + CloudBillingGrpc.getUpdateProjectBillingInfoMethod = getUpdateProjectBillingInfoMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProjectBillingInfo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance())) + .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("UpdateProjectBillingInfo")) + .build(); } } } return getUpdateProjectBillingInfoMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; + private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", requestType = com.google.iam.v1.GetIamPolicyRequest.class, responseType = com.google.iam.v1.Policy.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; + public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { + io.grpc.MethodDescriptor getGetIamPolicyMethod; if ((getGetIamPolicyMethod = CloudBillingGrpc.getGetIamPolicyMethod) == null) { synchronized (CloudBillingGrpc.class) { if ((getGetIamPolicyMethod = CloudBillingGrpc.getGetIamPolicyMethod) == null) { - CloudBillingGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - . newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("GetIamPolicy")) - .build(); + CloudBillingGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("GetIamPolicy")) + .build(); } } } return getGetIamPolicyMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; + private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", requestType = com.google.iam.v1.SetIamPolicyRequest.class, responseType = com.google.iam.v1.Policy.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; + public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { + io.grpc.MethodDescriptor getSetIamPolicyMethod; if ((getSetIamPolicyMethod = CloudBillingGrpc.getSetIamPolicyMethod) == null) { synchronized (CloudBillingGrpc.class) { if ((getSetIamPolicyMethod = CloudBillingGrpc.getSetIamPolicyMethod) == null) { - CloudBillingGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - . newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("SetIamPolicy")) - .build(); + CloudBillingGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("SetIamPolicy")) + .build(); } } } return getSetIamPolicyMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; + private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", requestType = com.google.iam.v1.TestIamPermissionsRequest.class, responseType = com.google.iam.v1.TestIamPermissionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; + public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor getTestIamPermissionsMethod; if ((getTestIamPermissionsMethod = CloudBillingGrpc.getTestIamPermissionsMethod) == null) { synchronized (CloudBillingGrpc.class) { if ((getTestIamPermissionsMethod = CloudBillingGrpc.getTestIamPermissionsMethod) == null) { - CloudBillingGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new CloudBillingMethodDescriptorSupplier("TestIamPermissions")) - .build(); + CloudBillingGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("TestIamPermissions")) + .build(); } } } return getTestIamPermissionsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.MoveBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount> - getMoveBillingAccountMethod; + private static volatile io.grpc.MethodDescriptor getMoveBillingAccountMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "MoveBillingAccount", requestType = com.google.cloud.billing.v1.MoveBillingAccountRequest.class, responseType = com.google.cloud.billing.v1.BillingAccount.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.MoveBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount> - getMoveBillingAccountMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.MoveBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount> - getMoveBillingAccountMethod; + public static io.grpc.MethodDescriptor getMoveBillingAccountMethod() { + io.grpc.MethodDescriptor getMoveBillingAccountMethod; if ((getMoveBillingAccountMethod = CloudBillingGrpc.getMoveBillingAccountMethod) == null) { synchronized (CloudBillingGrpc.class) { if ((getMoveBillingAccountMethod = CloudBillingGrpc.getMoveBillingAccountMethod) == null) { - CloudBillingGrpc.getMoveBillingAccountMethod = - getMoveBillingAccountMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MoveBillingAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.MoveBillingAccountRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.BillingAccount.getDefaultInstance())) - .setSchemaDescriptor( - new CloudBillingMethodDescriptorSupplier("MoveBillingAccount")) - .build(); + CloudBillingGrpc.getMoveBillingAccountMethod = getMoveBillingAccountMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MoveBillingAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.MoveBillingAccountRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.BillingAccount.getDefaultInstance())) + .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("MoveBillingAccount")) + .build(); } } } return getMoveBillingAccountMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static CloudBillingStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public CloudBillingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudBillingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public CloudBillingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudBillingStub(channel, callOptions); + } + }; return CloudBillingStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static CloudBillingBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static CloudBillingBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public CloudBillingBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudBillingBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public CloudBillingBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudBillingBlockingStub(channel, callOptions); + } + }; return CloudBillingBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CloudBillingFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CloudBillingFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public CloudBillingFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudBillingFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public CloudBillingFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudBillingFutureStub(channel, callOptions); + } + }; return CloudBillingFutureStub.newStub(factory, channel); } /** - * - * * * Retrieves the Google Cloud Console billing accounts and associates them with * projects. @@ -592,41 +413,30 @@ public CloudBillingFutureStub newStub( public interface AsyncService { /** - * - * ** Gets information about a billing account. The current authenticated user * must be a [viewer of the billing * account](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - default void getBillingAccount( - com.google.cloud.billing.v1.GetBillingAccountRequest request, + default void getBillingAccount(com.google.cloud.billing.v1.GetBillingAccountRequest request, io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetBillingAccountMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBillingAccountMethod(), responseObserver); } /** - * - * * * Lists the billing accounts that the current authenticated user has * permission to * [view](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - default void listBillingAccounts( - com.google.cloud.billing.v1.ListBillingAccountsRequest request, - io.grpc.stub.StreamObserver- responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBillingAccountsMethod(), responseObserver); + default void listBillingAccounts(com.google.cloud.billing.v1.ListBillingAccountsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBillingAccountsMethod(), responseObserver); } /** - * - * * * Updates a billing account's fields. * Currently the only field that can be edited is `display_name`. @@ -636,16 +446,12 @@ default void listBillingAccounts( * of the billing account. **/ - default void updateBillingAccount( - com.google.cloud.billing.v1.UpdateBillingAccountRequest request, + default void updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccountRequest request, io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBillingAccountMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBillingAccountMethod(), responseObserver); } /** - * - * * * This method creates [billing * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). @@ -662,16 +468,12 @@ default void updateBillingAccount( * provisioned for subaccounts. **/ - default void createBillingAccount( - com.google.cloud.billing.v1.CreateBillingAccountRequest request, + default void createBillingAccount(com.google.cloud.billing.v1.CreateBillingAccountRequest request, io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBillingAccountMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBillingAccountMethod(), responseObserver); } /** - * - * * * Lists the projects associated with a billing account. The current * authenticated user must have the `billing.resourceAssociations.list` IAM @@ -679,17 +481,12 @@ default void createBillingAccount( * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - default void listProjectBillingInfo( - com.google.cloud.billing.v1.ListProjectBillingInfoRequest request, - io.grpc.stub.StreamObserver- responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListProjectBillingInfoMethod(), responseObserver); + default void listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillingInfoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListProjectBillingInfoMethod(), responseObserver); } /** - * - * * * Gets the billing information for a project. The current authenticated user * must have the `resourcemanager.projects.get` permission for the project, @@ -698,17 +495,12 @@ default void listProjectBillingInfo( * role. **/ - default void getProjectBillingInfo( - com.google.cloud.billing.v1.GetProjectBillingInfoRequest request, - io.grpc.stub.StreamObserver- responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetProjectBillingInfoMethod(), responseObserver); + default void getProjectBillingInfo(com.google.cloud.billing.v1.GetProjectBillingInfoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProjectBillingInfoMethod(), responseObserver); } /** - * - * * * Sets or updates the billing account associated with a project. You specify * the new billing account by setting the `billing_account_name` in the @@ -740,17 +532,12 @@ default void getProjectBillingInfo( * *open* billing account. **/ - default void updateProjectBillingInfo( - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request, - io.grpc.stub.StreamObserver- responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateProjectBillingInfoMethod(), responseObserver); + default void updateProjectBillingInfo(com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProjectBillingInfoMethod(), responseObserver); } /** - * - * * * Gets the access control policy for a billing account. * The caller must have the `billing.accounts.getIamPolicy` permission on the @@ -758,16 +545,12 @@ default void updateProjectBillingInfo( * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - default void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + default void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); } /** - * - * * * Sets the access control policy for a billing account. Replaces any existing * policy. @@ -776,65 +559,51 @@ default void getIamPolicy( * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - default void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + default void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); } /** - * - * * * Tests the access control policy for a billing account. This method takes * the resource and a set of permissions as input and returns the subset of * the input permissions that the caller is allowed for that resource. **/ - default void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver- responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); + default void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); } /** - * - * * * Changes which parent organization a billing account belongs to. **/ - default void moveBillingAccount( - com.google.cloud.billing.v1.MoveBillingAccountRequest request, + default void moveBillingAccount(com.google.cloud.billing.v1.MoveBillingAccountRequest request, io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getMoveBillingAccountMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMoveBillingAccountMethod(), responseObserver); } } /** * Base class for the server implementation of the service CloudBilling. - * * * Retrieves the Google Cloud Console billing accounts and associates them with * projects. **/ - public abstract static class CloudBillingImplBase + public static abstract class CloudBillingImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return CloudBillingGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service CloudBilling. - * ** Retrieves the Google Cloud Console billing accounts and associates them with * projects. @@ -842,55 +611,44 @@ public final io.grpc.ServerServiceDefinition bindService() { */ public static final class CloudBillingStub extends io.grpc.stub.AbstractAsyncStub{ - private CloudBillingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private CloudBillingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected CloudBillingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected CloudBillingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudBillingStub(channel, callOptions); } /** - * - * * * Gets information about a billing account. The current authenticated user * must be a [viewer of the billing * account](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - public void getBillingAccount( - com.google.cloud.billing.v1.GetBillingAccountRequest request, + public void getBillingAccount(com.google.cloud.billing.v1.GetBillingAccountRequest request, io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBillingAccountMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetBillingAccountMethod(), getCallOptions()), request, responseObserver); } /** - * - * * * Lists the billing accounts that the current authenticated user has * permission to * [view](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - public void listBillingAccounts( - com.google.cloud.billing.v1.ListBillingAccountsRequest request, - io.grpc.stub.StreamObserver- responseObserver) { + public void listBillingAccounts(com.google.cloud.billing.v1.ListBillingAccountsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBillingAccountsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListBillingAccountsMethod(), getCallOptions()), request, responseObserver); } /** - * - * * * Updates a billing account's fields. * Currently the only field that can be edited is `display_name`. @@ -900,18 +658,13 @@ public void listBillingAccounts( * of the billing account. **/ - public void updateBillingAccount( - com.google.cloud.billing.v1.UpdateBillingAccountRequest request, + public void updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccountRequest request, io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBillingAccountMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateBillingAccountMethod(), getCallOptions()), request, responseObserver); } /** - * - * * * This method creates [billing * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). @@ -928,18 +681,13 @@ public void updateBillingAccount( * provisioned for subaccounts. **/ - public void createBillingAccount( - com.google.cloud.billing.v1.CreateBillingAccountRequest request, + public void createBillingAccount(com.google.cloud.billing.v1.CreateBillingAccountRequest request, io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBillingAccountMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateBillingAccountMethod(), getCallOptions()), request, responseObserver); } /** - * - * * * Lists the projects associated with a billing account. The current * authenticated user must have the `billing.resourceAssociations.list` IAM @@ -947,19 +695,13 @@ public void createBillingAccount( * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - public void listProjectBillingInfo( - com.google.cloud.billing.v1.ListProjectBillingInfoRequest request, - io.grpc.stub.StreamObserver- responseObserver) { + public void listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillingInfoRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProjectBillingInfoMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListProjectBillingInfoMethod(), getCallOptions()), request, responseObserver); } /** - * - * * * Gets the billing information for a project. The current authenticated user * must have the `resourcemanager.projects.get` permission for the project, @@ -968,19 +710,13 @@ public void listProjectBillingInfo( * role. **/ - public void getProjectBillingInfo( - com.google.cloud.billing.v1.GetProjectBillingInfoRequest request, - io.grpc.stub.StreamObserver- responseObserver) { + public void getProjectBillingInfo(com.google.cloud.billing.v1.GetProjectBillingInfoRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetProjectBillingInfoMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetProjectBillingInfoMethod(), getCallOptions()), request, responseObserver); } /** - * - * * * Sets or updates the billing account associated with a project. You specify * the new billing account by setting the `billing_account_name` in the @@ -1012,19 +748,13 @@ public void getProjectBillingInfo( * *open* billing account. **/ - public void updateProjectBillingInfo( - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request, - io.grpc.stub.StreamObserver- responseObserver) { + public void updateProjectBillingInfo(com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProjectBillingInfoMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateProjectBillingInfoMethod(), getCallOptions()), request, responseObserver); } /** - * - * * * Gets the access control policy for a billing account. * The caller must have the `billing.accounts.getIamPolicy` permission on the @@ -1032,18 +762,13 @@ public void updateProjectBillingInfo( * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * * * Sets the access control policy for a billing account. Replaces any existing * policy. @@ -1052,54 +777,39 @@ public void getIamPolicy( * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * * * Tests the access control policy for a billing account. This method takes * the resource and a set of permissions as input and returns the subset of * the input permissions that the caller is allowed for that resource. **/ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver- responseObserver) { + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); } /** - * - * * * Changes which parent organization a billing account belongs to. **/ - public void moveBillingAccount( - com.google.cloud.billing.v1.MoveBillingAccountRequest request, + public void moveBillingAccount(com.google.cloud.billing.v1.MoveBillingAccountRequest request, io.grpc.stub.StreamObserverresponseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getMoveBillingAccountMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getMoveBillingAccountMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service CloudBilling. - * * * Retrieves the Google Cloud Console billing accounts and associates them with * projects. @@ -1107,7 +817,8 @@ public void moveBillingAccount( */ public static final class CloudBillingBlockingStub extends io.grpc.stub.AbstractBlockingStub{ - private CloudBillingBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private CloudBillingBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1118,38 +829,30 @@ protected CloudBillingBlockingStub build( } /** - * - * * * Gets information about a billing account. The current authenticated user * must be a [viewer of the billing * account](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - public com.google.cloud.billing.v1.BillingAccount getBillingAccount( - com.google.cloud.billing.v1.GetBillingAccountRequest request) { + public com.google.cloud.billing.v1.BillingAccount getBillingAccount(com.google.cloud.billing.v1.GetBillingAccountRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBillingAccountMethod(), getCallOptions(), request); } /** - * - * ** Lists the billing accounts that the current authenticated user has * permission to * [view](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - public com.google.cloud.billing.v1.ListBillingAccountsResponse listBillingAccounts( - com.google.cloud.billing.v1.ListBillingAccountsRequest request) { + public com.google.cloud.billing.v1.ListBillingAccountsResponse listBillingAccounts(com.google.cloud.billing.v1.ListBillingAccountsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBillingAccountsMethod(), getCallOptions(), request); } /** - * - * ** Updates a billing account's fields. * Currently the only field that can be edited is `display_name`. @@ -1159,15 +862,12 @@ public com.google.cloud.billing.v1.ListBillingAccountsResponse listBillingAccoun * of the billing account. **/ - public com.google.cloud.billing.v1.BillingAccount updateBillingAccount( - com.google.cloud.billing.v1.UpdateBillingAccountRequest request) { + public com.google.cloud.billing.v1.BillingAccount updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccountRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBillingAccountMethod(), getCallOptions(), request); } /** - * - * ** This method creates [billing * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). @@ -1184,15 +884,12 @@ public com.google.cloud.billing.v1.BillingAccount updateBillingAccount( * provisioned for subaccounts. **/ - public com.google.cloud.billing.v1.BillingAccount createBillingAccount( - com.google.cloud.billing.v1.CreateBillingAccountRequest request) { + public com.google.cloud.billing.v1.BillingAccount createBillingAccount(com.google.cloud.billing.v1.CreateBillingAccountRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBillingAccountMethod(), getCallOptions(), request); } /** - * - * ** Lists the projects associated with a billing account. The current * authenticated user must have the `billing.resourceAssociations.list` IAM @@ -1200,15 +897,12 @@ public com.google.cloud.billing.v1.BillingAccount createBillingAccount( * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - public com.google.cloud.billing.v1.ListProjectBillingInfoResponse listProjectBillingInfo( - com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) { + public com.google.cloud.billing.v1.ListProjectBillingInfoResponse listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProjectBillingInfoMethod(), getCallOptions(), request); } /** - * - * ** Gets the billing information for a project. The current authenticated user * must have the `resourcemanager.projects.get` permission for the project, @@ -1217,15 +911,12 @@ public com.google.cloud.billing.v1.ListProjectBillingInfoResponse listProjectBil * role. **/ - public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo( - com.google.cloud.billing.v1.GetProjectBillingInfoRequest request) { + public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(com.google.cloud.billing.v1.GetProjectBillingInfoRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetProjectBillingInfoMethod(), getCallOptions(), request); } /** - * - * ** Sets or updates the billing account associated with a project. You specify * the new billing account by setting the `billing_account_name` in the @@ -1257,15 +948,12 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo( * *open* billing account. **/ - public com.google.cloud.billing.v1.ProjectBillingInfo updateProjectBillingInfo( - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request) { + public com.google.cloud.billing.v1.ProjectBillingInfo updateProjectBillingInfo(com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProjectBillingInfoMethod(), getCallOptions(), request); } /** - * - * ** Gets the access control policy for a billing account. * The caller must have the `billing.accounts.getIamPolicy` permission on the @@ -1279,8 +967,6 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque } /** - * - * ** Sets the access control policy for a billing account. Replaces any existing * policy. @@ -1295,29 +981,23 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque } /** - * - * ** Tests the access control policy for a billing account. This method takes * the resource and a set of permissions as input and returns the subset of * the input permissions that the caller is allowed for that resource. **/ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } /** - * - * ** Changes which parent organization a billing account belongs to. **/ - public com.google.cloud.billing.v1.BillingAccount moveBillingAccount( - com.google.cloud.billing.v1.MoveBillingAccountRequest request) { + public com.google.cloud.billing.v1.BillingAccount moveBillingAccount(com.google.cloud.billing.v1.MoveBillingAccountRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getMoveBillingAccountMethod(), getCallOptions(), request); } @@ -1325,7 +1005,6 @@ public com.google.cloud.billing.v1.BillingAccount moveBillingAccount( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service CloudBilling. - * ** Retrieves the Google Cloud Console billing accounts and associates them with * projects. @@ -1333,7 +1012,8 @@ public com.google.cloud.billing.v1.BillingAccount moveBillingAccount( */ public static final class CloudBillingFutureStub extends io.grpc.stub.AbstractFutureStub{ - private CloudBillingFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private CloudBillingFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1344,40 +1024,32 @@ protected CloudBillingFutureStub build( } /** - * - * * * Gets information about a billing account. The current authenticated user * must be a [viewer of the billing * account](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.v1.BillingAccount> - getBillingAccount(com.google.cloud.billing.v1.GetBillingAccountRequest request) { + public com.google.common.util.concurrent.ListenableFuturegetBillingAccount( + com.google.cloud.billing.v1.GetBillingAccountRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBillingAccountMethod(), getCallOptions()), request); } /** - * - * * * Lists the billing accounts that the current authenticated user has * permission to * [view](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.v1.ListBillingAccountsResponse> - listBillingAccounts(com.google.cloud.billing.v1.ListBillingAccountsRequest request) { + public com.google.common.util.concurrent.ListenableFuturelistBillingAccounts( + com.google.cloud.billing.v1.ListBillingAccountsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBillingAccountsMethod(), getCallOptions()), request); } /** - * - * * * Updates a billing account's fields. * Currently the only field that can be edited is `display_name`. @@ -1387,16 +1059,13 @@ protected CloudBillingFutureStub build( * of the billing account. **/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.v1.BillingAccount> - updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccountRequest request) { + public com.google.common.util.concurrent.ListenableFutureupdateBillingAccount( + com.google.cloud.billing.v1.UpdateBillingAccountRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateBillingAccountMethod(), getCallOptions()), request); } /** - * - * * * This method creates [billing * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). @@ -1413,16 +1082,13 @@ protected CloudBillingFutureStub build( * provisioned for subaccounts. **/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.v1.BillingAccount> - createBillingAccount(com.google.cloud.billing.v1.CreateBillingAccountRequest request) { + public com.google.common.util.concurrent.ListenableFuturecreateBillingAccount( + com.google.cloud.billing.v1.CreateBillingAccountRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBillingAccountMethod(), getCallOptions()), request); } /** - * - * * * Lists the projects associated with a billing account. The current * authenticated user must have the `billing.resourceAssociations.list` IAM @@ -1430,16 +1096,13 @@ protected CloudBillingFutureStub build( * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.v1.ListProjectBillingInfoResponse> - listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) { + public com.google.common.util.concurrent.ListenableFuturelistProjectBillingInfo( + com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProjectBillingInfoMethod(), getCallOptions()), request); } /** - * - * * * Gets the billing information for a project. The current authenticated user * must have the `resourcemanager.projects.get` permission for the project, @@ -1448,16 +1111,13 @@ protected CloudBillingFutureStub build( * role. **/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.v1.ProjectBillingInfo> - getProjectBillingInfo(com.google.cloud.billing.v1.GetProjectBillingInfoRequest request) { + public com.google.common.util.concurrent.ListenableFuturegetProjectBillingInfo( + com.google.cloud.billing.v1.GetProjectBillingInfoRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetProjectBillingInfoMethod(), getCallOptions()), request); } /** - * - * * * Sets or updates the billing account associated with a project. You specify * the new billing account by setting the `billing_account_name` in the @@ -1489,17 +1149,13 @@ protected CloudBillingFutureStub build( * *open* billing account. **/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.v1.ProjectBillingInfo> - updateProjectBillingInfo( - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request) { + public com.google.common.util.concurrent.ListenableFutureupdateProjectBillingInfo( + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateProjectBillingInfoMethod(), getCallOptions()), request); } /** - * - * * * Gets the access control policy for a billing account. * The caller must have the `billing.accounts.getIamPolicy` permission on the @@ -1507,15 +1163,13 @@ protected CloudBillingFutureStub build( * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - public com.google.common.util.concurrent.ListenableFuture- getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } /** - * - * * * Sets the access control policy for a billing account. Replaces any existing * policy. @@ -1524,38 +1178,32 @@ protected CloudBillingFutureStub build( * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). **/ - public com.google.common.util.concurrent.ListenableFuture- setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } /** - * - * * * Tests the access control policy for a billing account. This method takes * the resource and a set of permissions as input and returns the subset of * the input permissions that the caller is allowed for that resource. **/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.common.util.concurrent.ListenableFuturetestIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } /** - * - * * * Changes which parent organization a billing account belongs to. **/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.v1.BillingAccount> - moveBillingAccount(com.google.cloud.billing.v1.MoveBillingAccountRequest request) { + public com.google.common.util.concurrent.ListenableFuturemoveBillingAccount( + com.google.cloud.billing.v1.MoveBillingAccountRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getMoveBillingAccountMethod(), getCallOptions()), request); } @@ -1573,11 +1221,11 @@ protected CloudBillingFutureStub build( private static final int METHODID_TEST_IAM_PERMISSIONS = 9; private static final int METHODID_MOVE_BILLING_ACCOUNT = 10; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod , - io.grpc.stub.ServerCalls.ServerStreamingMethod , - io.grpc.stub.ServerCalls.ClientStreamingMethod , - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod , + io.grpc.stub.ServerCalls.ServerStreamingMethod , + io.grpc.stub.ServerCalls.ClientStreamingMethod , + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -1591,69 +1239,48 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_GET_BILLING_ACCOUNT: - serviceImpl.getBillingAccount( - (com.google.cloud.billing.v1.GetBillingAccountRequest) request, - (io.grpc.stub.StreamObserver ) - responseObserver); + serviceImpl.getBillingAccount((com.google.cloud.billing.v1.GetBillingAccountRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_LIST_BILLING_ACCOUNTS: - serviceImpl.listBillingAccounts( - (com.google.cloud.billing.v1.ListBillingAccountsRequest) request, - (io.grpc.stub.StreamObserver ) - responseObserver); + serviceImpl.listBillingAccounts((com.google.cloud.billing.v1.ListBillingAccountsRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_UPDATE_BILLING_ACCOUNT: - serviceImpl.updateBillingAccount( - (com.google.cloud.billing.v1.UpdateBillingAccountRequest) request, - (io.grpc.stub.StreamObserver ) - responseObserver); + serviceImpl.updateBillingAccount((com.google.cloud.billing.v1.UpdateBillingAccountRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_CREATE_BILLING_ACCOUNT: - serviceImpl.createBillingAccount( - (com.google.cloud.billing.v1.CreateBillingAccountRequest) request, - (io.grpc.stub.StreamObserver ) - responseObserver); + serviceImpl.createBillingAccount((com.google.cloud.billing.v1.CreateBillingAccountRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_LIST_PROJECT_BILLING_INFO: - serviceImpl.listProjectBillingInfo( - (com.google.cloud.billing.v1.ListProjectBillingInfoRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.billing.v1.ListProjectBillingInfoResponse>) - responseObserver); + serviceImpl.listProjectBillingInfo((com.google.cloud.billing.v1.ListProjectBillingInfoRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_GET_PROJECT_BILLING_INFO: - serviceImpl.getProjectBillingInfo( - (com.google.cloud.billing.v1.GetProjectBillingInfoRequest) request, - (io.grpc.stub.StreamObserver ) - responseObserver); + serviceImpl.getProjectBillingInfo((com.google.cloud.billing.v1.GetProjectBillingInfoRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_UPDATE_PROJECT_BILLING_INFO: - serviceImpl.updateProjectBillingInfo( - (com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) request, - (io.grpc.stub.StreamObserver ) - responseObserver); + serviceImpl.updateProjectBillingInfo((com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver ) - responseObserver); + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_MOVE_BILLING_ACCOUNT: - serviceImpl.moveBillingAccount( - (com.google.cloud.billing.v1.MoveBillingAccountRequest) request, - (io.grpc.stub.StreamObserver ) - responseObserver); + serviceImpl.moveBillingAccount((com.google.cloud.billing.v1.MoveBillingAccountRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); break; default: throw new AssertionError(); @@ -1674,84 +1301,87 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getGetBillingAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.v1.GetBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount>( - service, METHODID_GET_BILLING_ACCOUNT))) + getGetBillingAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.v1.GetBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount>( + service, METHODID_GET_BILLING_ACCOUNT))) .addMethod( - getListBillingAccountsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.v1.ListBillingAccountsRequest, - com.google.cloud.billing.v1.ListBillingAccountsResponse>( - service, METHODID_LIST_BILLING_ACCOUNTS))) + getListBillingAccountsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.v1.ListBillingAccountsRequest, + com.google.cloud.billing.v1.ListBillingAccountsResponse>( + service, METHODID_LIST_BILLING_ACCOUNTS))) .addMethod( - getUpdateBillingAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.v1.UpdateBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount>( - service, METHODID_UPDATE_BILLING_ACCOUNT))) + getUpdateBillingAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.v1.UpdateBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount>( + service, METHODID_UPDATE_BILLING_ACCOUNT))) .addMethod( - getCreateBillingAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.v1.CreateBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount>( - service, METHODID_CREATE_BILLING_ACCOUNT))) + getCreateBillingAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.v1.CreateBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount>( + service, METHODID_CREATE_BILLING_ACCOUNT))) .addMethod( - getListProjectBillingInfoMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.v1.ListProjectBillingInfoRequest, - com.google.cloud.billing.v1.ListProjectBillingInfoResponse>( - service, METHODID_LIST_PROJECT_BILLING_INFO))) + getListProjectBillingInfoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.v1.ListProjectBillingInfoRequest, + com.google.cloud.billing.v1.ListProjectBillingInfoResponse>( + service, METHODID_LIST_PROJECT_BILLING_INFO))) .addMethod( - getGetProjectBillingInfoMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.v1.GetProjectBillingInfoRequest, - com.google.cloud.billing.v1.ProjectBillingInfo>( - service, METHODID_GET_PROJECT_BILLING_INFO))) + getGetProjectBillingInfoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.v1.GetProjectBillingInfoRequest, + com.google.cloud.billing.v1.ProjectBillingInfo>( + service, METHODID_GET_PROJECT_BILLING_INFO))) .addMethod( - getUpdateProjectBillingInfoMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest, - com.google.cloud.billing.v1.ProjectBillingInfo>( - service, METHODID_UPDATE_PROJECT_BILLING_INFO))) + getUpdateProjectBillingInfoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest, + com.google.cloud.billing.v1.ProjectBillingInfo>( + service, METHODID_UPDATE_PROJECT_BILLING_INFO))) .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers ( - service, METHODID_GET_IAM_POLICY))) + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + service, METHODID_GET_IAM_POLICY))) .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers ( - service, METHODID_SET_IAM_POLICY))) + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + service, METHODID_SET_IAM_POLICY))) .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - service, METHODID_TEST_IAM_PERMISSIONS))) + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + service, METHODID_TEST_IAM_PERMISSIONS))) .addMethod( - getMoveBillingAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.v1.MoveBillingAccountRequest, - com.google.cloud.billing.v1.BillingAccount>( - service, METHODID_MOVE_BILLING_ACCOUNT))) + getMoveBillingAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.v1.MoveBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount>( + service, METHODID_MOVE_BILLING_ACCOUNT))) .build(); } - private abstract static class CloudBillingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class CloudBillingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { CloudBillingBaseDescriptorSupplier() {} @java.lang.Override @@ -1793,22 +1423,20 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (CloudBillingGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudBillingFileDescriptorSupplier()) - .addMethod(getGetBillingAccountMethod()) - .addMethod(getListBillingAccountsMethod()) - .addMethod(getUpdateBillingAccountMethod()) - .addMethod(getCreateBillingAccountMethod()) - .addMethod(getListProjectBillingInfoMethod()) - .addMethod(getGetProjectBillingInfoMethod()) - .addMethod(getUpdateProjectBillingInfoMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getMoveBillingAccountMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudBillingFileDescriptorSupplier()) + .addMethod(getGetBillingAccountMethod()) + .addMethod(getListBillingAccountsMethod()) + .addMethod(getUpdateBillingAccountMethod()) + .addMethod(getCreateBillingAccountMethod()) + .addMethod(getListProjectBillingInfoMethod()) + .addMethod(getGetProjectBillingInfoMethod()) + .addMethod(getUpdateProjectBillingInfoMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .addMethod(getMoveBillingAccountMethod()) + .build(); } } } diff --git a/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java b/owl-bot-staging/java-billing/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java similarity index 53% rename from java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java rename to owl-bot-staging/java-billing/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java index db84767222b9..0940138e8d4f 100644 --- a/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java +++ b/owl-bot-staging/java-billing/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.billing.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * * * A catalog of Google Cloud Platform services and SKUs. * Provides pricing information and metadata on Google Cloud Platform services @@ -37,137 +20,113 @@ private CloudCatalogGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.billing.v1.CloudCatalog"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.ListServicesRequest, - com.google.cloud.billing.v1.ListServicesResponse> - getListServicesMethod; + private static volatile io.grpc.MethodDescriptorgetListServicesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListServices", requestType = com.google.cloud.billing.v1.ListServicesRequest.class, responseType = com.google.cloud.billing.v1.ListServicesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.ListServicesRequest, - com.google.cloud.billing.v1.ListServicesResponse> - getListServicesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.ListServicesRequest, - com.google.cloud.billing.v1.ListServicesResponse> - getListServicesMethod; + public static io.grpc.MethodDescriptor getListServicesMethod() { + io.grpc.MethodDescriptor getListServicesMethod; if ((getListServicesMethod = CloudCatalogGrpc.getListServicesMethod) == null) { synchronized (CloudCatalogGrpc.class) { if ((getListServicesMethod = CloudCatalogGrpc.getListServicesMethod) == null) { - CloudCatalogGrpc.getListServicesMethod = - getListServicesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServices")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ListServicesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ListServicesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new CloudCatalogMethodDescriptorSupplier("ListServices")) - .build(); + CloudCatalogGrpc.getListServicesMethod = getListServicesMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServices")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ListServicesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ListServicesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudCatalogMethodDescriptorSupplier("ListServices")) + .build(); } } } return getListServicesMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.ListSkusRequest, com.google.cloud.billing.v1.ListSkusResponse> - getListSkusMethod; + private static volatile io.grpc.MethodDescriptor getListSkusMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListSkus", requestType = com.google.cloud.billing.v1.ListSkusRequest.class, responseType = com.google.cloud.billing.v1.ListSkusResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.ListSkusRequest, com.google.cloud.billing.v1.ListSkusResponse> - getListSkusMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.billing.v1.ListSkusRequest, - com.google.cloud.billing.v1.ListSkusResponse> - getListSkusMethod; + public static io.grpc.MethodDescriptor getListSkusMethod() { + io.grpc.MethodDescriptor getListSkusMethod; if ((getListSkusMethod = CloudCatalogGrpc.getListSkusMethod) == null) { synchronized (CloudCatalogGrpc.class) { if ((getListSkusMethod = CloudCatalogGrpc.getListSkusMethod) == null) { - CloudCatalogGrpc.getListSkusMethod = - getListSkusMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSkus")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ListSkusRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ListSkusResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudCatalogMethodDescriptorSupplier("ListSkus")) - .build(); + CloudCatalogGrpc.getListSkusMethod = getListSkusMethod = + io.grpc.MethodDescriptor. newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSkus")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ListSkusRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ListSkusResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudCatalogMethodDescriptorSupplier("ListSkus")) + .build(); } } } return getListSkusMethod; } - /** Creates a new async stub that supports all call types for the service */ + /** + * Creates a new async stub that supports all call types for the service + */ public static CloudCatalogStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public CloudCatalogStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudCatalogStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public CloudCatalogStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudCatalogStub(channel, callOptions); + } + }; return CloudCatalogStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static CloudCatalogBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static CloudCatalogBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public CloudCatalogBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudCatalogBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public CloudCatalogBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudCatalogBlockingStub(channel, callOptions); + } + }; return CloudCatalogBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CloudCatalogFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static CloudCatalogFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public CloudCatalogFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudCatalogFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public CloudCatalogFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudCatalogFutureStub(channel, callOptions); + } + }; return CloudCatalogFutureStub.newStub(factory, channel); } /** - * - * * * A catalog of Google Cloud Platform services and SKUs. * Provides pricing information and metadata on Google Cloud Platform services @@ -177,56 +136,44 @@ public CloudCatalogFutureStub newStub( public interface AsyncService { /** - * - * ** Lists all public cloud services. **/ - default void listServices( - com.google.cloud.billing.v1.ListServicesRequest request, - io.grpc.stub.StreamObserver- responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListServicesMethod(), responseObserver); + default void listServices(com.google.cloud.billing.v1.ListServicesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListServicesMethod(), responseObserver); } /** - * - * * * Lists all publicly available SKUs for a given cloud service. **/ - default void listSkus( - com.google.cloud.billing.v1.ListSkusRequest request, - io.grpc.stub.StreamObserver- responseObserver) { + default void listSkus(com.google.cloud.billing.v1.ListSkusRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSkusMethod(), responseObserver); } } /** * Base class for the server implementation of the service CloudCatalog. - * * * A catalog of Google Cloud Platform services and SKUs. * Provides pricing information and metadata on Google Cloud Platform services * and SKUs. **/ - public abstract static class CloudCatalogImplBase + public static abstract class CloudCatalogImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return CloudCatalogGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service CloudCatalog. - * ** A catalog of Google Cloud Platform services and SKUs. * Provides pricing information and metadata on Google Cloud Platform services @@ -235,43 +182,35 @@ public final io.grpc.ServerServiceDefinition bindService() { */ public static final class CloudCatalogStub extends io.grpc.stub.AbstractAsyncStub{ - private CloudCatalogStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private CloudCatalogStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected CloudCatalogStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected CloudCatalogStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudCatalogStub(channel, callOptions); } /** - * - * * * Lists all public cloud services. **/ - public void listServices( - com.google.cloud.billing.v1.ListServicesRequest request, - io.grpc.stub.StreamObserver- responseObserver) { + public void listServices(com.google.cloud.billing.v1.ListServicesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListServicesMethod(), getCallOptions()), request, responseObserver); } /** - * - * * * Lists all publicly available SKUs for a given cloud service. **/ - public void listSkus( - com.google.cloud.billing.v1.ListSkusRequest request, - io.grpc.stub.StreamObserver- responseObserver) { + public void listSkus(com.google.cloud.billing.v1.ListSkusRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSkusMethod(), getCallOptions()), request, responseObserver); } @@ -279,7 +218,6 @@ public void listSkus( /** * A stub to allow clients to do synchronous rpc calls to service CloudCatalog. - * * * A catalog of Google Cloud Platform services and SKUs. * Provides pricing information and metadata on Google Cloud Platform services @@ -288,7 +226,8 @@ public void listSkus( */ public static final class CloudCatalogBlockingStub extends io.grpc.stub.AbstractBlockingStub{ - private CloudCatalogBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private CloudCatalogBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -299,27 +238,21 @@ protected CloudCatalogBlockingStub build( } /** - * - * * * Lists all public cloud services. **/ - public com.google.cloud.billing.v1.ListServicesResponse listServices( - com.google.cloud.billing.v1.ListServicesRequest request) { + public com.google.cloud.billing.v1.ListServicesResponse listServices(com.google.cloud.billing.v1.ListServicesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListServicesMethod(), getCallOptions(), request); } /** - * - * ** Lists all publicly available SKUs for a given cloud service. **/ - public com.google.cloud.billing.v1.ListSkusResponse listSkus( - com.google.cloud.billing.v1.ListSkusRequest request) { + public com.google.cloud.billing.v1.ListSkusResponse listSkus(com.google.cloud.billing.v1.ListSkusRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSkusMethod(), getCallOptions(), request); } @@ -327,7 +260,6 @@ public com.google.cloud.billing.v1.ListSkusResponse listSkus( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service CloudCatalog. - * ** A catalog of Google Cloud Platform services and SKUs. * Provides pricing information and metadata on Google Cloud Platform services @@ -336,7 +268,8 @@ public com.google.cloud.billing.v1.ListSkusResponse listSkus( */ public static final class CloudCatalogFutureStub extends io.grpc.stub.AbstractFutureStub{ - private CloudCatalogFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private CloudCatalogFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -347,29 +280,23 @@ protected CloudCatalogFutureStub build( } /** - * - * * * Lists all public cloud services. **/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.v1.ListServicesResponse> - listServices(com.google.cloud.billing.v1.ListServicesRequest request) { + public com.google.common.util.concurrent.ListenableFuturelistServices( + com.google.cloud.billing.v1.ListServicesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListServicesMethod(), getCallOptions()), request); } /** - * - * * * Lists all publicly available SKUs for a given cloud service. **/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.v1.ListSkusResponse> - listSkus(com.google.cloud.billing.v1.ListSkusRequest request) { + public com.google.common.util.concurrent.ListenableFuturelistSkus( + com.google.cloud.billing.v1.ListSkusRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSkusMethod(), getCallOptions()), request); } @@ -378,11 +305,11 @@ protected CloudCatalogFutureStub build( private static final int METHODID_LIST_SERVICES = 0; private static final int METHODID_LIST_SKUS = 1; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod , - io.grpc.stub.ServerCalls.ServerStreamingMethod , - io.grpc.stub.ServerCalls.ClientStreamingMethod , - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod , + io.grpc.stub.ServerCalls.ServerStreamingMethod , + io.grpc.stub.ServerCalls.ClientStreamingMethod , + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -396,16 +323,12 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_SERVICES: - serviceImpl.listServices( - (com.google.cloud.billing.v1.ListServicesRequest) request, - (io.grpc.stub.StreamObserver ) - responseObserver); + serviceImpl.listServices((com.google.cloud.billing.v1.ListServicesRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); break; case METHODID_LIST_SKUS: - serviceImpl.listSkus( - (com.google.cloud.billing.v1.ListSkusRequest) request, - (io.grpc.stub.StreamObserver ) - responseObserver); + serviceImpl.listSkus((com.google.cloud.billing.v1.ListSkusRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); break; default: throw new AssertionError(); @@ -426,24 +349,24 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListServicesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.v1.ListServicesRequest, - com.google.cloud.billing.v1.ListServicesResponse>( - service, METHODID_LIST_SERVICES))) + getListServicesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.v1.ListServicesRequest, + com.google.cloud.billing.v1.ListServicesResponse>( + service, METHODID_LIST_SERVICES))) .addMethod( - getListSkusMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.v1.ListSkusRequest, - com.google.cloud.billing.v1.ListSkusResponse>(service, METHODID_LIST_SKUS))) + getListSkusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.v1.ListSkusRequest, + com.google.cloud.billing.v1.ListSkusResponse>( + service, METHODID_LIST_SKUS))) .build(); } - private abstract static class CloudCatalogBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class CloudCatalogBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { CloudCatalogBaseDescriptorSupplier() {} @java.lang.Override @@ -485,13 +408,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (CloudCatalogGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudCatalogFileDescriptorSupplier()) - .addMethod(getListServicesMethod()) - .addMethod(getListSkusMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudCatalogFileDescriptorSupplier()) + .addMethod(getListServicesMethod()) + .addMethod(getListSkusMethod()) + .build(); } } } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java similarity index 65% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java index b5984c1d0966..e68057780989 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/billing/v1/cloud_catalog.proto package com.google.cloud.billing.v1; /** - * - * * * Represents the aggregation level and interval for pricing of a single SKU. ** * Protobuf type {@code google.cloud.billing.v1.AggregationInfo} */ -public final class AggregationInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AggregationInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.AggregationInfo) AggregationInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AggregationInfo.newBuilder() to construct. private AggregationInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } - private AggregationInfo() { aggregationLevel_ = 0; aggregationInterval_ = 0; @@ -44,28 +26,25 @@ private AggregationInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AggregationInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_AggregationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_AggregationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_AggregationInfo_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_AggregationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.AggregationInfo.class, - com.google.cloud.billing.v1.AggregationInfo.Builder.class); + com.google.cloud.billing.v1.AggregationInfo.class, com.google.cloud.billing.v1.AggregationInfo.Builder.class); } /** - * - * ** The level at which usage is aggregated to compute cost. * Example: "ACCOUNT" aggregation level indicates that usage for tiered @@ -74,23 +53,37 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * Protobuf enum {@code google.cloud.billing.v1.AggregationInfo.AggregationLevel} */ - public enum AggregationLevel implements com.google.protobuf.ProtocolMessageEnum { - /**AGGREGATION_LEVEL_UNSPECIFIED = 0;
*/ + public enum AggregationLevel + implements com.google.protobuf.ProtocolMessageEnum { + /** + *AGGREGATION_LEVEL_UNSPECIFIED = 0;
+ */ AGGREGATION_LEVEL_UNSPECIFIED(0), - /**ACCOUNT = 1;
*/ + /** + *ACCOUNT = 1;
+ */ ACCOUNT(1), - /**PROJECT = 2;
*/ + /** + *PROJECT = 2;
+ */ PROJECT(2), UNRECOGNIZED(-1), ; - /**AGGREGATION_LEVEL_UNSPECIFIED = 0;
*/ + /** + *AGGREGATION_LEVEL_UNSPECIFIED = 0;
+ */ public static final int AGGREGATION_LEVEL_UNSPECIFIED_VALUE = 0; - /**ACCOUNT = 1;
*/ + /** + *ACCOUNT = 1;
+ */ public static final int ACCOUNT_VALUE = 1; - /**PROJECT = 2;
*/ + /** + *PROJECT = 2;
+ */ public static final int PROJECT_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -115,42 +108,39 @@ public static AggregationLevel valueOf(int value) { */ public static AggregationLevel forNumber(int value) { switch (value) { - case 0: - return AGGREGATION_LEVEL_UNSPECIFIED; - case 1: - return ACCOUNT; - case 2: - return PROJECT; - default: - return null; + case 0: return AGGREGATION_LEVEL_UNSPECIFIED; + case 1: return ACCOUNT; + case 2: return PROJECT; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMapinternalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + AggregationLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap () { + public AggregationLevel findValueByNumber(int number) { + return AggregationLevel.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap () { - public AggregationLevel findValueByNumber(int number) { - return AggregationLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.billing.v1.AggregationInfo.getDescriptor().getEnumTypes().get(0); } @@ -159,7 +149,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static AggregationLevel valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -177,8 +168,6 @@ private AggregationLevel(int value) { } /** - * - * * * The interval at which usage is aggregated to compute cost. * Example: "MONTHLY" aggregation interval indicates that usage for tiered @@ -187,23 +176,37 @@ private AggregationLevel(int value) { * * Protobuf enum {@code google.cloud.billing.v1.AggregationInfo.AggregationInterval} */ - public enum AggregationInterval implements com.google.protobuf.ProtocolMessageEnum { - /**AGGREGATION_INTERVAL_UNSPECIFIED = 0;
*/ + public enum AggregationInterval + implements com.google.protobuf.ProtocolMessageEnum { + /** + *AGGREGATION_INTERVAL_UNSPECIFIED = 0;
+ */ AGGREGATION_INTERVAL_UNSPECIFIED(0), - /**DAILY = 1;
*/ + /** + *DAILY = 1;
+ */ DAILY(1), - /**MONTHLY = 2;
*/ + /** + *MONTHLY = 2;
+ */ MONTHLY(2), UNRECOGNIZED(-1), ; - /**AGGREGATION_INTERVAL_UNSPECIFIED = 0;
*/ + /** + *AGGREGATION_INTERVAL_UNSPECIFIED = 0;
+ */ public static final int AGGREGATION_INTERVAL_UNSPECIFIED_VALUE = 0; - /**DAILY = 1;
*/ + /** + *DAILY = 1;
+ */ public static final int DAILY_VALUE = 1; - /**MONTHLY = 2;
*/ + /** + *MONTHLY = 2;
+ */ public static final int MONTHLY_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -228,14 +231,10 @@ public static AggregationInterval valueOf(int value) { */ public static AggregationInterval forNumber(int value) { switch (value) { - case 0: - return AGGREGATION_INTERVAL_UNSPECIFIED; - case 1: - return DAILY; - case 2: - return MONTHLY; - default: - return null; + case 0: return AGGREGATION_INTERVAL_UNSPECIFIED; + case 1: return DAILY; + case 2: return MONTHLY; + default: return null; } } @@ -243,28 +242,28 @@ public static AggregationInterval forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + AggregationInterval> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AggregationInterval findValueByNumber(int number) { + return AggregationInterval.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap