From 42498a0fd62b5790ba8e67c716ba6dbf4804a781 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 16 Jan 2024 23:12:25 +0000 Subject: [PATCH 1/2] docs: update comments PiperOrigin-RevId: 598911563 Source-Link: https://github.com/googleapis/googleapis/commit/695adb1c43858c5a67fd1ac8c9079ee51309f119 Source-Link: https://github.com/googleapis/googleapis-gen/commit/1316663793927ba344aef98a19747e0bc7bf7ef1 Copy-Tag: eyJwIjoiamF2YS1iaWxsaW5nLy5Pd2xCb3QueWFtbCIsImgiOiIxMzE2NjYzNzkzOTI3YmEzNDRhZWY5OGExOTc0N2UwYmM3YmY3ZWYxIn0= --- .../cloud/billing/v1/CloudBillingProto.java | 342 ----- .../cloud/billing/v1/CloudCatalogProto.java | 313 ----- .../v1/GetBillingAccountRequestOrBuilder.java | 56 - ...GetProjectBillingInfoRequestOrBuilder.java | 56 - .../MoveBillingAccountRequestOrBuilder.java | 93 -- .../cloud/billing/v1/CloudBillingClient.java | 0 .../billing/v1/CloudBillingSettings.java | 1 + .../cloud/billing/v1/CloudCatalogClient.java | 0 .../billing/v1/CloudCatalogSettings.java | 1 + .../cloud/billing/v1/gapic_metadata.json | 0 .../google/cloud/billing/v1/package-info.java | 0 .../billing/v1/stub/CloudBillingStub.java | 0 .../v1/stub/CloudBillingStubSettings.java | 0 .../billing/v1/stub/CloudCatalogStub.java | 0 .../v1/stub/CloudCatalogStubSettings.java | 0 .../stub/GrpcCloudBillingCallableFactory.java | 0 .../billing/v1/stub/GrpcCloudBillingStub.java | 1 + .../stub/GrpcCloudCatalogCallableFactory.java | 0 .../billing/v1/stub/GrpcCloudCatalogStub.java | 1 + .../HttpJsonCloudBillingCallableFactory.java | 0 .../v1/stub/HttpJsonCloudBillingStub.java | 0 .../HttpJsonCloudCatalogCallableFactory.java | 0 .../v1/stub/HttpJsonCloudCatalogStub.java | 0 .../reflect-config.json | 0 .../v1/CloudBillingClientHttpJsonTest.java | 1062 +++++++++++++++ .../billing/v1/CloudBillingClientTest.java | 0 .../v1/CloudCatalogClientHttpJsonTest.java | 0 .../billing/v1/CloudCatalogClientTest.java | 0 .../cloud/billing/v1/MockCloudBilling.java | 0 .../billing/v1/MockCloudBillingImpl.java | 0 .../cloud/billing/v1/MockCloudCatalog.java | 0 .../billing/v1/MockCloudCatalogImpl.java | 0 .../cloud/billing/v1/CloudBillingGrpc.java | 1202 ++++++----------- .../cloud/billing/v1/CloudCatalogGrpc.java | 307 ++--- .../cloud/billing/v1/AggregationInfo.java | 558 ++++---- .../billing/v1/AggregationInfoOrBuilder.java | 31 +- .../cloud/billing/v1/BillingAccount.java | 608 ++++----- .../cloud/billing/v1/BillingAccountName.java | 0 .../billing/v1/BillingAccountOrBuilder.java | 69 +- .../com/google/cloud/billing/v1/Category.java | 521 +++---- .../cloud/billing/v1/CategoryOrBuilder.java | 54 +- .../cloud/billing/v1/CloudBillingProto.java | 316 +++++ .../cloud/billing/v1/CloudCatalogProto.java | 268 ++++ .../v1/CreateBillingAccountRequest.java | 465 +++---- .../CreateBillingAccountRequestOrBuilder.java | 47 +- .../google/cloud/billing/v1/GeoTaxonomy.java | 466 +++---- .../billing/v1/GeoTaxonomyOrBuilder.java | 42 +- .../billing/v1/GetBillingAccountRequest.java | 347 ++--- .../v1/GetBillingAccountRequestOrBuilder.java | 31 + .../v1/GetProjectBillingInfoRequest.java | 350 ++--- ...GetProjectBillingInfoRequestOrBuilder.java | 31 + .../v1/ListBillingAccountsRequest.java | 499 +++---- .../ListBillingAccountsRequestOrBuilder.java | 48 +- .../v1/ListBillingAccountsResponse.java | 472 +++---- .../ListBillingAccountsResponseOrBuilder.java | 45 +- .../v1/ListProjectBillingInfoRequest.java | 453 +++---- ...istProjectBillingInfoRequestOrBuilder.java | 47 +- .../v1/ListProjectBillingInfoResponse.java | 471 +++---- ...stProjectBillingInfoResponseOrBuilder.java | 45 +- .../cloud/billing/v1/ListServicesRequest.java | 346 ++--- .../v1/ListServicesRequestOrBuilder.java | 30 +- .../billing/v1/ListServicesResponse.java | 479 +++---- .../v1/ListServicesResponseOrBuilder.java | 46 +- .../cloud/billing/v1/ListSkusRequest.java | 683 ++++------ .../billing/v1/ListSkusRequestOrBuilder.java | 72 +- .../cloud/billing/v1/ListSkusResponse.java | 474 +++---- .../billing/v1/ListSkusResponseOrBuilder.java | 46 +- .../billing/v1/MoveBillingAccountRequest.java | 464 +++---- .../MoveBillingAccountRequestOrBuilder.java | 59 + .../cloud/billing/v1/OrganizationName.java | 0 .../cloud/billing/v1/PricingExpression.java | 1117 ++++++--------- .../v1/PricingExpressionOrBuilder.java | 75 +- .../google/cloud/billing/v1/PricingInfo.java | 639 ++++----- .../billing/v1/PricingInfoOrBuilder.java | 54 +- .../cloud/billing/v1/ProjectBillingInfo.java | 492 +++---- .../v1/ProjectBillingInfoOrBuilder.java | 48 +- .../google/cloud/billing/v1/ProjectName.java | 0 .../com/google/cloud/billing/v1/Service.java | 521 +++---- .../google/cloud/billing/v1/ServiceName.java | 0 .../cloud/billing/v1/ServiceOrBuilder.java | 54 +- .../java/com/google/cloud/billing/v1/Sku.java | 981 +++++--------- .../google/cloud/billing/v1/SkuOrBuilder.java | 106 +- .../v1/UpdateBillingAccountRequest.java | 584 +++----- .../UpdateBillingAccountRequestOrBuilder.java | 63 +- .../v1/UpdateProjectBillingInfoRequest.java | 427 +++--- ...ateProjectBillingInfoRequestOrBuilder.java | 35 +- .../cloud/billing/v1/cloud_billing.proto | 6 +- .../cloud/billing/v1/cloud_catalog.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateBillingAccount.java | 0 .../SyncCreateBillingAccount.java | 0 ...yncCreateBillingAccountBillingaccount.java | 0 ...ateBillingAccountBillingaccountString.java | 0 .../AsyncGetBillingAccount.java | 0 .../SyncGetBillingAccount.java | 0 ...ncGetBillingAccountBillingaccountname.java | 0 .../SyncGetBillingAccountString.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../SyncGetIamPolicyResourcename.java | 0 .../getiampolicy/SyncGetIamPolicyString.java | 0 .../AsyncGetProjectBillingInfo.java | 0 .../SyncGetProjectBillingInfo.java | 0 .../SyncGetProjectBillingInfoProjectname.java | 0 .../SyncGetProjectBillingInfoString.java | 0 .../AsyncListBillingAccounts.java | 0 .../AsyncListBillingAccountsPaged.java | 0 .../SyncListBillingAccounts.java | 0 .../SyncListBillingAccountsNoargs.java | 0 .../SyncListBillingAccountsString.java | 0 .../AsyncListProjectBillingInfo.java | 0 .../AsyncListProjectBillingInfoPaged.java | 0 .../SyncListProjectBillingInfo.java | 0 ...tProjectBillingInfoBillingaccountname.java | 0 .../SyncListProjectBillingInfoString.java | 0 .../AsyncMoveBillingAccount.java | 0 .../SyncMoveBillingAccount.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../SyncSetIamPolicyResourcenamePolicy.java | 0 .../SyncSetIamPolicyStringPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 ...tIamPermissionsResourcenameListstring.java | 0 ...yncTestIamPermissionsStringListstring.java | 0 .../AsyncUpdateBillingAccount.java | 0 .../SyncUpdateBillingAccount.java | 0 ...countBillingaccountnameBillingaccount.java | 0 ...ateBillingAccountStringBillingaccount.java | 0 .../AsyncUpdateProjectBillingInfo.java | 0 .../SyncUpdateProjectBillingInfo.java | 0 ...ctBillingInfoStringProjectbillinginfo.java | 0 .../SyncGetBillingAccount.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../listservices/AsyncListServices.java | 0 .../listservices/AsyncListServicesPaged.java | 0 .../listservices/SyncListServices.java | 0 .../listservices/SyncListServicesNoargs.java | 0 .../cloudcatalog/listskus/AsyncListSkus.java | 0 .../listskus/AsyncListSkusPaged.java | 0 .../cloudcatalog/listskus/SyncListSkus.java | 0 .../listskus/SyncListSkusServicename.java | 0 .../listskus/SyncListSkusString.java | 0 .../listservices/SyncListServices.java | 0 .../SyncGetBillingAccount.java | 0 .../listservices/SyncListServices.java | 0 150 files changed, 7350 insertions(+), 10270 deletions(-) delete mode 100644 java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java delete mode 100644 java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java delete mode 100644 java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java delete mode 100644 java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java delete mode 100644 java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequestOrBuilder.java rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java (99%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java (99%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java (99%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java (99%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/resources/META-INF/native-image/com.google.cloud.billing.v1/reflect-config.json (100%) create mode 100644 owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java (55%) rename {java-billing => owl-bot-staging/java-billing/v1}/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java (53%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java (65%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java (65%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java (72%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java (73%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java (71%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java (69%) create mode 100644 owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java create mode 100644 owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java (66%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java (65%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java (71%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java (70%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java (62%) create mode 100644 owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java (62%) create mode 100644 owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java (73%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java (77%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java (72%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java (69%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java (67%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java (61%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java (74%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java (75%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java (68%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java (60%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java (71%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java (67%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java (75%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java (80%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java (72%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java (67%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequest.java (63%) create mode 100644 owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequestOrBuilder.java rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/OrganizationName.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java (76%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java (82%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java (73%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java (84%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java (74%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java (76%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectName.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java (70%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java (66%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java (74%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java (81%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java (64%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java (58%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java (69%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java (72%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto (99%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetEndpoint.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/AsyncCreateBillingAccount.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccount.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccount.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccountString.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/AsyncGetBillingAccount.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccount.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountBillingaccountname.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountString.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/AsyncGetIamPolicy.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicy.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyResourcename.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyString.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/AsyncGetProjectBillingInfo.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfo.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoProjectname.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoString.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccounts.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccountsPaged.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccounts.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsNoargs.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsString.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfo.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfo.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoString.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/AsyncMoveBillingAccount.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/SyncMoveBillingAccount.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/AsyncSetIamPolicy.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicy.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyStringPolicy.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/AsyncTestIamPermissions.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissions.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsStringListstring.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/AsyncUpdateBillingAccount.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccount.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetEndpoint.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServices.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServicesPaged.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServices.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServicesNoargs.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkus.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkusPaged.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkus.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusServicename.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusString.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java (100%) rename {java-billing => owl-bot-staging/java-billing/v1}/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java (100%) 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 actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBillingAccountExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BillingAccountName name = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]"); + client.getBillingAccount(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBillingAccountTest2() 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); + + String name = "billingAccounts/billingAccount-6593"; + + BillingAccount actualResponse = client.getBillingAccount(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBillingAccountExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "billingAccounts/billingAccount-6593"; + client.getBillingAccount(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBillingAccountsTest() throws Exception { + BillingAccount responsesElement = BillingAccount.newBuilder().build(); + ListBillingAccountsResponse expectedResponse = + ListBillingAccountsResponse.newBuilder() + .setNextPageToken("") + .addAllBillingAccounts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListBillingAccountsPagedResponse pagedListResponse = client.listBillingAccounts(); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBillingAccountsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBillingAccountsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListBillingAccountsRequest request = + ListBillingAccountsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setParent("parent-995424086") + .build(); + client.listBillingAccounts(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBillingAccountsTest2() throws Exception { + BillingAccount responsesElement = BillingAccount.newBuilder().build(); + ListBillingAccountsResponse expectedResponse = + ListBillingAccountsResponse.newBuilder() + .setNextPageToken("") + .addAllBillingAccounts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBillingAccountsPagedResponse pagedListResponse = client.listBillingAccounts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBillingAccountsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBillingAccountsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBillingAccounts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBillingAccountTest() 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 account = BillingAccount.newBuilder().build(); + + BillingAccount actualResponse = client.updateBillingAccount(name, account); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateBillingAccountExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BillingAccountName name = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]"); + BillingAccount account = BillingAccount.newBuilder().build(); + client.updateBillingAccount(name, account); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBillingAccountTest2() 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); + + String name = "billingAccounts/billingAccount-6593"; + BillingAccount account = BillingAccount.newBuilder().build(); + + BillingAccount actualResponse = client.updateBillingAccount(name, account); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateBillingAccountExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "billingAccounts/billingAccount-6593"; + BillingAccount account = BillingAccount.newBuilder().build(); + client.updateBillingAccount(name, account); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBillingAccountTest() 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); + + BillingAccount billingAccount = BillingAccount.newBuilder().build(); + + BillingAccount actualResponse = client.createBillingAccount(billingAccount); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBillingAccountExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BillingAccount billingAccount = BillingAccount.newBuilder().build(); + client.createBillingAccount(billingAccount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBillingAccountTest2() 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); + + BillingAccount billingAccount = BillingAccount.newBuilder().build(); + String parent = "parent-995424086"; + + BillingAccount actualResponse = client.createBillingAccount(billingAccount, parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBillingAccountExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BillingAccount billingAccount = BillingAccount.newBuilder().build(); + String parent = "parent-995424086"; + client.createBillingAccount(billingAccount, parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listProjectBillingInfoTest() throws Exception { + ProjectBillingInfo responsesElement = ProjectBillingInfo.newBuilder().build(); + ListProjectBillingInfoResponse expectedResponse = + ListProjectBillingInfoResponse.newBuilder() + .setNextPageToken("") + .addAllProjectBillingInfo(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + BillingAccountName name = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]"); + + ListProjectBillingInfoPagedResponse pagedListResponse = client.listProjectBillingInfo(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProjectBillingInfoList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listProjectBillingInfoExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BillingAccountName name = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]"); + client.listProjectBillingInfo(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listProjectBillingInfoTest2() throws Exception { + ProjectBillingInfo responsesElement = ProjectBillingInfo.newBuilder().build(); + ListProjectBillingInfoResponse expectedResponse = + ListProjectBillingInfoResponse.newBuilder() + .setNextPageToken("") + .addAllProjectBillingInfo(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String name = "billingAccounts/billingAccount-6593"; + + ListProjectBillingInfoPagedResponse pagedListResponse = client.listProjectBillingInfo(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProjectBillingInfoList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listProjectBillingInfoExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "billingAccounts/billingAccount-6593"; + client.listProjectBillingInfo(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProjectBillingInfoTest() throws Exception { + ProjectBillingInfo expectedResponse = + ProjectBillingInfo.newBuilder() + .setName("name3373707") + .setProjectId("projectId-894832108") + .setBillingAccountName("billingAccountName929322205") + .setBillingEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName name = ProjectName.of("[PROJECT]"); + + ProjectBillingInfo actualResponse = client.getProjectBillingInfo(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getProjectBillingInfoExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName name = ProjectName.of("[PROJECT]"); + client.getProjectBillingInfo(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProjectBillingInfoTest2() throws Exception { + ProjectBillingInfo expectedResponse = + ProjectBillingInfo.newBuilder() + .setName("name3373707") + .setProjectId("projectId-894832108") + .setBillingAccountName("billingAccountName929322205") + .setBillingEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3664"; + + ProjectBillingInfo actualResponse = client.getProjectBillingInfo(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getProjectBillingInfoExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3664"; + client.getProjectBillingInfo(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateProjectBillingInfoTest() throws Exception { + ProjectBillingInfo expectedResponse = + ProjectBillingInfo.newBuilder() + .setName("name3373707") + .setProjectId("projectId-894832108") + .setBillingAccountName("billingAccountName929322205") + .setBillingEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3664"; + ProjectBillingInfo projectBillingInfo = ProjectBillingInfo.newBuilder().build(); + + ProjectBillingInfo actualResponse = client.updateProjectBillingInfo(name, projectBillingInfo); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateProjectBillingInfoExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3664"; + ProjectBillingInfo projectBillingInfo = ProjectBillingInfo.newBuilder().build(); + client.updateProjectBillingInfo(name, projectBillingInfo); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "billingAccounts/billingAccount-2850"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "billingAccounts/billingAccount-2850"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "billingAccounts/billingAccount-2850"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "billingAccounts/billingAccount-2850"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]"); + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]"); + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest2() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String resource = "billingAccounts/billingAccount-2850"; + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "billingAccounts/billingAccount-2850"; + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void moveBillingAccountTest() 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); + + MoveBillingAccountRequest request = + MoveBillingAccountRequest.newBuilder() + .setName(BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]").toString()) + .setDestinationParent(OrganizationName.of("[ORGANIZATION]").toString()) + .build(); + + BillingAccount actualResponse = client.moveBillingAccount(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void moveBillingAccountExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + MoveBillingAccountRequest request = + MoveBillingAccountRequest.newBuilder() + .setName(BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]").toString()) + .setDestinationParent(OrganizationName.of("[ORGANIZATION]").toString()) + .build(); + client.moveBillingAccount(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java similarity index 100% rename from java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java diff --git a/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java similarity index 100% rename from java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java diff --git a/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java similarity index 100% rename from java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java diff --git a/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java similarity index 100% rename from java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java diff --git a/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java similarity index 100% rename from java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java diff --git a/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java similarity index 100% rename from java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java diff --git a/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java b/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java similarity index 100% rename from java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java diff --git a/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java b/owl-bot-staging/java-billing/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java similarity index 55% rename from java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java rename to owl-bot-staging/java-billing/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java index 646d8dadd8c0..79e29ced4ea2 100644 --- a/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java +++ b/owl-bot-staging/java-billing/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.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; /** - * - * *
  * 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.MethodDescriptor getGetBillingAccountMethod;
 
   @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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { 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.StreamObserver responseObserver) { 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.StreamObserver responseObserver) { 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.StreamObserver responseObserver) { 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.StreamObserver responseObserver) { 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.StreamObserver responseObserver) { 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.ListenableFuture getBillingAccount( + 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.ListenableFuture listBillingAccounts( + 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.ListenableFuture updateBillingAccount( + 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.ListenableFuture createBillingAccount( + 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.ListenableFuture listProjectBillingInfo( + 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.ListenableFuture getProjectBillingInfo( + 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.ListenableFuture updateProjectBillingInfo( + 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.ListenableFuture testIamPermissions( + 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.ListenableFuture moveBillingAccount( + 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.MethodDescriptor getListServicesMethod;
 
   @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.ListenableFuture listServices( + 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.ListenableFuture listSkus( + 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.EnumLiteMap internalGetValueMap() {
+    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
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public AggregationInterval findValueByNumber(int number) {
-                return AggregationInterval.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(1);
     }
 
@@ -273,7 +272,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static AggregationInterval 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;
@@ -294,60 +294,41 @@ private AggregationInterval(int value) {
   private int aggregationLevel_ = 0;
   /**
    * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
-   *
    * @return The enum numeric value on the wire for aggregationLevel.
    */
-  @java.lang.Override
-  public int getAggregationLevelValue() {
+  @java.lang.Override public int getAggregationLevelValue() {
     return aggregationLevel_;
   }
   /**
    * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
-   *
    * @return The aggregationLevel.
    */
-  @java.lang.Override
-  public com.google.cloud.billing.v1.AggregationInfo.AggregationLevel getAggregationLevel() {
-    com.google.cloud.billing.v1.AggregationInfo.AggregationLevel result =
-        com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.forNumber(aggregationLevel_);
-    return result == null
-        ? com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.UNRECOGNIZED
-        : result;
+  @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo.AggregationLevel getAggregationLevel() {
+    com.google.cloud.billing.v1.AggregationInfo.AggregationLevel result = com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.forNumber(aggregationLevel_);
+    return result == null ? com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.UNRECOGNIZED : result;
   }
 
   public static final int AGGREGATION_INTERVAL_FIELD_NUMBER = 2;
   private int aggregationInterval_ = 0;
   /**
-   * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
-   * 
-   *
+   * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
    * @return The enum numeric value on the wire for aggregationInterval.
    */
-  @java.lang.Override
-  public int getAggregationIntervalValue() {
+  @java.lang.Override public int getAggregationIntervalValue() {
     return aggregationInterval_;
   }
   /**
-   * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
-   * 
-   *
+   * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
    * @return The aggregationInterval.
    */
-  @java.lang.Override
-  public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggregationInterval() {
-    com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result =
-        com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.forNumber(
-            aggregationInterval_);
-    return result == null
-        ? com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.UNRECOGNIZED
-        : result;
+  @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggregationInterval() {
+    com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result = com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.forNumber(aggregationInterval_);
+    return result == null ? com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.UNRECOGNIZED : result;
   }
 
   public static final int AGGREGATION_COUNT_FIELD_NUMBER = 3;
   private int aggregationCount_ = 0;
   /**
-   *
-   *
    * 
    * The number of intervals to aggregate over.
    * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -355,7 +336,6 @@ public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggreg
    * 
* * int32 aggregation_count = 3; - * * @return The aggregationCount. */ @java.lang.Override @@ -364,7 +344,6 @@ public int getAggregationCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -376,17 +355,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (aggregationLevel_ - != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel - .AGGREGATION_LEVEL_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (aggregationLevel_ != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.AGGREGATION_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(1, aggregationLevel_); } - if (aggregationInterval_ - != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval - .AGGREGATION_INTERVAL_UNSPECIFIED - .getNumber()) { + if (aggregationInterval_ != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.AGGREGATION_INTERVAL_UNSPECIFIED.getNumber()) { output.writeEnum(2, aggregationInterval_); } if (aggregationCount_ != 0) { @@ -401,20 +375,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (aggregationLevel_ - != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel - .AGGREGATION_LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, aggregationLevel_); - } - if (aggregationInterval_ - != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval - .AGGREGATION_INTERVAL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, aggregationInterval_); + if (aggregationLevel_ != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.AGGREGATION_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, aggregationLevel_); + } + if (aggregationInterval_ != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.AGGREGATION_INTERVAL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, aggregationInterval_); } if (aggregationCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, aggregationCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, aggregationCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -424,17 +395,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.AggregationInfo)) { return super.equals(obj); } - com.google.cloud.billing.v1.AggregationInfo other = - (com.google.cloud.billing.v1.AggregationInfo) obj; + com.google.cloud.billing.v1.AggregationInfo other = (com.google.cloud.billing.v1.AggregationInfo) obj; if (aggregationLevel_ != other.aggregationLevel_) return false; if (aggregationInterval_ != other.aggregationInterval_) return false; - if (getAggregationCount() != other.getAggregationCount()) return false; + if (getAggregationCount() + != other.getAggregationCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -457,136 +428,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.AggregationInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.AggregationInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.AggregationInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.AggregationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.AggregationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.AggregationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.AggregationInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.AggregationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.AggregationInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.AggregationInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.AggregationInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.AggregationInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.AggregationInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.AggregationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.AggregationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the aggregation level and interval for pricing of a single SKU.
    * 
* * Protobuf type {@code google.cloud.billing.v1.AggregationInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.AggregationInfo) com.google.cloud.billing.v1.AggregationInfoOrBuilder { - 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); } // Construct using com.google.cloud.billing.v1.AggregationInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -598,9 +565,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_AggregationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_AggregationInfo_descriptor; } @java.lang.Override @@ -619,11 +586,8 @@ public com.google.cloud.billing.v1.AggregationInfo build() { @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo buildPartial() { - com.google.cloud.billing.v1.AggregationInfo result = - new com.google.cloud.billing.v1.AggregationInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.v1.AggregationInfo result = new com.google.cloud.billing.v1.AggregationInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -645,39 +609,38 @@ private void buildPartial0(com.google.cloud.billing.v1.AggregationInfo result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.AggregationInfo) { - return mergeFrom((com.google.cloud.billing.v1.AggregationInfo) other); + return mergeFrom((com.google.cloud.billing.v1.AggregationInfo)other); } else { super.mergeFrom(other); return this; @@ -721,31 +684,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - aggregationLevel_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - aggregationInterval_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - aggregationCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + aggregationLevel_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + aggregationInterval_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + aggregationCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -755,22 +714,18 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int aggregationLevel_ = 0; /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; - * * @return The enum numeric value on the wire for aggregationLevel. */ - @java.lang.Override - public int getAggregationLevelValue() { + @java.lang.Override public int getAggregationLevelValue() { return aggregationLevel_; } /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; - * * @param value The enum numeric value on the wire for aggregationLevel to set. * @return This builder for chaining. */ @@ -782,25 +737,19 @@ public Builder setAggregationLevelValue(int value) { } /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; - * * @return The aggregationLevel. */ @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo.AggregationLevel getAggregationLevel() { - com.google.cloud.billing.v1.AggregationInfo.AggregationLevel result = - com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.forNumber(aggregationLevel_); - return result == null - ? com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.UNRECOGNIZED - : result; + com.google.cloud.billing.v1.AggregationInfo.AggregationLevel result = com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.forNumber(aggregationLevel_); + return result == null ? com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.UNRECOGNIZED : result; } /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; - * * @param value The aggregationLevel to set. * @return This builder for chaining. */ - public Builder setAggregationLevel( - com.google.cloud.billing.v1.AggregationInfo.AggregationLevel value) { + public Builder setAggregationLevel(com.google.cloud.billing.v1.AggregationInfo.AggregationLevel value) { if (value == null) { throw new NullPointerException(); } @@ -811,7 +760,6 @@ public Builder setAggregationLevel( } /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; - * * @return This builder for chaining. */ public Builder clearAggregationLevel() { @@ -823,19 +771,14 @@ public Builder clearAggregationLevel() { private int aggregationInterval_ = 0; /** - * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; - * - * + * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; * @return The enum numeric value on the wire for aggregationInterval. */ - @java.lang.Override - public int getAggregationIntervalValue() { + @java.lang.Override public int getAggregationIntervalValue() { return aggregationInterval_; } /** - * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; - * - * + * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; * @param value The enum numeric value on the wire for aggregationInterval to set. * @return This builder for chaining. */ @@ -846,30 +789,20 @@ public Builder setAggregationIntervalValue(int value) { return this; } /** - * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; - * - * + * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; * @return The aggregationInterval. */ @java.lang.Override - public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval - getAggregationInterval() { - com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result = - com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.forNumber( - aggregationInterval_); - return result == null - ? com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.UNRECOGNIZED - : result; + public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggregationInterval() { + com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result = com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.forNumber(aggregationInterval_); + return result == null ? com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.UNRECOGNIZED : result; } /** - * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; - * - * + * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; * @param value The aggregationInterval to set. * @return This builder for chaining. */ - public Builder setAggregationInterval( - com.google.cloud.billing.v1.AggregationInfo.AggregationInterval value) { + public Builder setAggregationInterval(com.google.cloud.billing.v1.AggregationInfo.AggregationInterval value) { if (value == null) { throw new NullPointerException(); } @@ -879,9 +812,7 @@ public Builder setAggregationInterval( return this; } /** - * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; - * - * + * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; * @return This builder for chaining. */ public Builder clearAggregationInterval() { @@ -891,10 +822,8 @@ public Builder clearAggregationInterval() { return this; } - private int aggregationCount_; + private int aggregationCount_ ; /** - * - * *
      * The number of intervals to aggregate over.
      * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -902,7 +831,6 @@ public Builder clearAggregationInterval() {
      * 
* * int32 aggregation_count = 3; - * * @return The aggregationCount. */ @java.lang.Override @@ -910,8 +838,6 @@ public int getAggregationCount() { return aggregationCount_; } /** - * - * *
      * The number of intervals to aggregate over.
      * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -919,7 +845,6 @@ public int getAggregationCount() {
      * 
* * int32 aggregation_count = 3; - * * @param value The aggregationCount to set. * @return This builder for chaining. */ @@ -931,8 +856,6 @@ public Builder setAggregationCount(int value) { return this; } /** - * - * *
      * The number of intervals to aggregate over.
      * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -940,7 +863,6 @@ public Builder setAggregationCount(int value) {
      * 
* * int32 aggregation_count = 3; - * * @return This builder for chaining. */ public Builder clearAggregationCount() { @@ -949,9 +871,9 @@ public Builder clearAggregationCount() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -961,12 +883,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.AggregationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.AggregationInfo) private static final com.google.cloud.billing.v1.AggregationInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.AggregationInfo(); } @@ -975,27 +897,27 @@ public static com.google.cloud.billing.v1.AggregationInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AggregationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AggregationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1010,4 +932,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.AggregationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java similarity index 65% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java index b8fa798ddc22..229a54512c79 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java @@ -1,59 +1,35 @@ -/* - * 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 interface AggregationInfoOrBuilder - extends +public interface AggregationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.AggregationInfo) com.google.protobuf.MessageOrBuilder { /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; - * * @return The enum numeric value on the wire for aggregationLevel. */ int getAggregationLevelValue(); /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; - * * @return The aggregationLevel. */ com.google.cloud.billing.v1.AggregationInfo.AggregationLevel getAggregationLevel(); /** - * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; - * - * + * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; * @return The enum numeric value on the wire for aggregationInterval. */ int getAggregationIntervalValue(); /** - * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; - * - * + * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; * @return The aggregationInterval. */ com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggregationInterval(); /** - * - * *
    * The number of intervals to aggregate over.
    * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -61,7 +37,6 @@ public interface AggregationInfoOrBuilder
    * 
* * int32 aggregation_count = 3; - * * @return The aggregationCount. */ int getAggregationCount(); diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java similarity index 72% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java index e1e6e4f01a35..465531ad0366 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * *
  * A billing account in the
  * [Google Cloud Console](https://console.cloud.google.com/). You can assign a
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.billing.v1.BillingAccount}
  */
-public final class BillingAccount extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BillingAccount extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.BillingAccount)
     BillingAccountOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BillingAccount.newBuilder() to construct.
   private BillingAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private BillingAccount() {
     name_ = "";
     displayName_ = "";
@@ -48,32 +30,28 @@ private BillingAccount() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BillingAccount();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.v1.CloudBillingProto
-        .internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.v1.CloudBillingProto
-        .internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable
+    return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.v1.BillingAccount.class,
-            com.google.cloud.billing.v1.BillingAccount.Builder.class);
+            com.google.cloud.billing.v1.BillingAccount.class, com.google.cloud.billing.v1.BillingAccount.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. The resource name of the billing account. The resource name
    * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -81,10 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * billing account `012345-567890-ABCDEF`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -93,15 +68,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the billing account. The resource name
    * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -109,18 +83,17 @@ public java.lang.String getName() {
    * billing account `012345-567890-ABCDEF`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -131,17 +104,14 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int OPEN_FIELD_NUMBER = 2; private boolean open_ = false; /** - * - * *
    * Output only. True if the billing account is open, and will therefore be
    * charged for any usage on associated projects. False if the billing account
-   * is closed, and therefore projects associated with it will be unable to use
-   * paid services.
+   * is closed, and therefore projects associated with it are unable to use paid
+   * services.
    * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The open. */ @java.lang.Override @@ -150,19 +120,15 @@ public boolean getOpen() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * The display name given to the billing account, such as `My Billing
    * Account`. This name is displayed in the Google Cloud Console.
    * 
* * string display_name = 3; - * * @return The displayName. */ @java.lang.Override @@ -171,30 +137,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * The display name given to the billing account, such as `My Billing
    * Account`. This name is displayed in the Google Cloud Console.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -203,12 +169,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int MASTER_BILLING_ACCOUNT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object masterBillingAccount_ = ""; /** - * - * *
    * If this account is a
    * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -218,7 +181,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string master_billing_account = 4; - * * @return The masterBillingAccount. */ @java.lang.Override @@ -227,15 +189,14 @@ public java.lang.String getMasterBillingAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); masterBillingAccount_ = s; return s; } } /** - * - * *
    * If this account is a
    * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -245,15 +206,16 @@ public java.lang.String getMasterBillingAccount() {
    * 
* * string master_billing_account = 4; - * * @return The bytes for masterBillingAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getMasterBillingAccountBytes() { + public com.google.protobuf.ByteString + getMasterBillingAccountBytes() { java.lang.Object ref = masterBillingAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); masterBillingAccount_ = b; return b; } else { @@ -262,12 +224,9 @@ public com.google.protobuf.ByteString getMasterBillingAccountBytes() { } public static final int PARENT_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Output only. The billing account's parent resource identifier.
    * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -280,7 +239,6 @@ public com.google.protobuf.ByteString getMasterBillingAccountBytes() {
    * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The parent. */ @java.lang.Override @@ -289,15 +247,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Output only. The billing account's parent resource identifier.
    * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -310,15 +267,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -327,7 +285,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,7 +296,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -368,7 +326,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (open_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, open_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, open_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); @@ -387,19 +346,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.BillingAccount)) { return super.equals(obj); } - com.google.cloud.billing.v1.BillingAccount other = - (com.google.cloud.billing.v1.BillingAccount) obj; - - if (!getName().equals(other.getName())) return false; - if (getOpen() != other.getOpen()) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getMasterBillingAccount().equals(other.getMasterBillingAccount())) return false; - if (!getParent().equals(other.getParent())) return false; + com.google.cloud.billing.v1.BillingAccount other = (com.google.cloud.billing.v1.BillingAccount) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getOpen() + != other.getOpen()) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getMasterBillingAccount() + .equals(other.getMasterBillingAccount())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -414,7 +377,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + OPEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOpen()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOpen()); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + MASTER_BILLING_ACCOUNT_FIELD_NUMBER; @@ -426,104 +390,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.BillingAccount parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.BillingAccount parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.BillingAccount parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.BillingAccount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.BillingAccount parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.BillingAccount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.BillingAccount parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.BillingAccount parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.BillingAccount parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.BillingAccount parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.BillingAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.BillingAccount parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.BillingAccount parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.BillingAccount parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.BillingAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A billing account in the
    * [Google Cloud Console](https://console.cloud.google.com/). You can assign a
@@ -532,32 +491,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.v1.BillingAccount}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.BillingAccount)
       com.google.cloud.billing.v1.BillingAccountOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.v1.CloudBillingProto
-          .internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.v1.CloudBillingProto
-          .internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable
+      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.v1.BillingAccount.class,
-              com.google.cloud.billing.v1.BillingAccount.Builder.class);
+              com.google.cloud.billing.v1.BillingAccount.class, com.google.cloud.billing.v1.BillingAccount.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.v1.BillingAccount.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -571,9 +531,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.v1.CloudBillingProto
-          .internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
     }
 
     @java.lang.Override
@@ -592,11 +552,8 @@ public com.google.cloud.billing.v1.BillingAccount build() {
 
     @java.lang.Override
     public com.google.cloud.billing.v1.BillingAccount buildPartial() {
-      com.google.cloud.billing.v1.BillingAccount result =
-          new com.google.cloud.billing.v1.BillingAccount(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.billing.v1.BillingAccount result = new com.google.cloud.billing.v1.BillingAccount(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -624,39 +581,38 @@ private void buildPartial0(com.google.cloud.billing.v1.BillingAccount result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.billing.v1.BillingAccount) {
-        return mergeFrom((com.google.cloud.billing.v1.BillingAccount) other);
+        return mergeFrom((com.google.cloud.billing.v1.BillingAccount)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -714,43 +670,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                open_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                masterBillingAccount_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 50:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              open_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              masterBillingAccount_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 50: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -760,13 +710,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name of the billing account. The resource name
      * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -774,16 +721,14 @@ public Builder mergeFrom(
      * billing account `012345-567890-ABCDEF`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -792,8 +737,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the billing account. The resource name
      * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -801,17 +744,16 @@ public java.lang.String getName() {
      * billing account `012345-567890-ABCDEF`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -819,8 +761,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the billing account. The resource name
      * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -828,25 +768,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * billing account `012345-567890-ABCDEF`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the billing account. The resource name
      * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -854,10 +788,7 @@ public Builder setName(java.lang.String value) {
      * billing account `012345-567890-ABCDEF`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -867,8 +798,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the billing account. The resource name
      * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -876,17 +805,13 @@ public Builder clearName() {
      * billing account `012345-567890-ABCDEF`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -894,19 +819,16 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean open_; + private boolean open_ ; /** - * - * *
      * Output only. True if the billing account is open, and will therefore be
      * charged for any usage on associated projects. False if the billing account
-     * is closed, and therefore projects associated with it will be unable to use
-     * paid services.
+     * is closed, and therefore projects associated with it are unable to use paid
+     * services.
      * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The open. */ @java.lang.Override @@ -914,17 +836,14 @@ public boolean getOpen() { return open_; } /** - * - * *
      * Output only. True if the billing account is open, and will therefore be
      * charged for any usage on associated projects. False if the billing account
-     * is closed, and therefore projects associated with it will be unable to use
-     * paid services.
+     * is closed, and therefore projects associated with it are unable to use paid
+     * services.
      * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The open to set. * @return This builder for chaining. */ @@ -936,17 +855,14 @@ public Builder setOpen(boolean value) { return this; } /** - * - * *
      * Output only. True if the billing account is open, and will therefore be
      * charged for any usage on associated projects. False if the billing account
-     * is closed, and therefore projects associated with it will be unable to use
-     * paid services.
+     * is closed, and therefore projects associated with it are unable to use paid
+     * services.
      * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearOpen() { @@ -958,21 +874,19 @@ public Builder clearOpen() { private java.lang.Object displayName_ = ""; /** - * - * *
      * The display name given to the billing account, such as `My Billing
      * Account`. This name is displayed in the Google Cloud Console.
      * 
* * string display_name = 3; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -981,22 +895,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The display name given to the billing account, such as `My Billing
      * Account`. This name is displayed in the Google Cloud Console.
      * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1004,37 +917,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The display name given to the billing account, such as `My Billing
      * Account`. This name is displayed in the Google Cloud Console.
      * 
* * string display_name = 3; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The display name given to the billing account, such as `My Billing
      * Account`. This name is displayed in the Google Cloud Console.
      * 
* * string display_name = 3; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1044,22 +950,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * The display name given to the billing account, such as `My Billing
      * Account`. This name is displayed in the Google Cloud Console.
      * 
* * string display_name = 3; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -1069,8 +971,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object masterBillingAccount_ = ""; /** - * - * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -1080,13 +980,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string master_billing_account = 4; - * * @return The masterBillingAccount. */ public java.lang.String getMasterBillingAccount() { java.lang.Object ref = masterBillingAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); masterBillingAccount_ = s; return s; @@ -1095,8 +995,6 @@ public java.lang.String getMasterBillingAccount() { } } /** - * - * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -1106,14 +1004,15 @@ public java.lang.String getMasterBillingAccount() {
      * 
* * string master_billing_account = 4; - * * @return The bytes for masterBillingAccount. */ - public com.google.protobuf.ByteString getMasterBillingAccountBytes() { + public com.google.protobuf.ByteString + getMasterBillingAccountBytes() { java.lang.Object ref = masterBillingAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); masterBillingAccount_ = b; return b; } else { @@ -1121,8 +1020,6 @@ public com.google.protobuf.ByteString getMasterBillingAccountBytes() { } } /** - * - * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -1132,22 +1029,18 @@ public com.google.protobuf.ByteString getMasterBillingAccountBytes() {
      * 
* * string master_billing_account = 4; - * * @param value The masterBillingAccount to set. * @return This builder for chaining. */ - public Builder setMasterBillingAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMasterBillingAccount( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } masterBillingAccount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -1157,7 +1050,6 @@ public Builder setMasterBillingAccount(java.lang.String value) {
      * 
* * string master_billing_account = 4; - * * @return This builder for chaining. */ public Builder clearMasterBillingAccount() { @@ -1167,8 +1059,6 @@ public Builder clearMasterBillingAccount() { return this; } /** - * - * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -1178,14 +1068,12 @@ public Builder clearMasterBillingAccount() {
      * 
* * string master_billing_account = 4; - * * @param value The bytes for masterBillingAccount to set. * @return This builder for chaining. */ - public Builder setMasterBillingAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMasterBillingAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); masterBillingAccount_ = value; bitField0_ |= 0x00000008; @@ -1195,8 +1083,6 @@ public Builder setMasterBillingAccountBytes(com.google.protobuf.ByteString value private java.lang.Object parent_ = ""; /** - * - * *
      * Output only. The billing account's parent resource identifier.
      * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -1209,13 +1095,13 @@ public Builder setMasterBillingAccountBytes(com.google.protobuf.ByteString value
      * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1224,8 +1110,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Output only. The billing account's parent resource identifier.
      * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -1238,14 +1122,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1253,8 +1138,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Output only. The billing account's parent resource identifier.
      * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -1267,22 +1150,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. The billing account's parent resource identifier.
      * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -1295,7 +1174,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -1305,8 +1183,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Output only. The billing account's parent resource identifier.
      * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -1319,23 +1195,21 @@ public Builder clearParent() {
      * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1345,12 +1219,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.BillingAccount) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.BillingAccount) private static final com.google.cloud.billing.v1.BillingAccount DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.BillingAccount(); } @@ -1359,27 +1233,27 @@ public static com.google.cloud.billing.v1.BillingAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BillingAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BillingAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1394,4 +1268,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.BillingAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java similarity index 100% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java similarity index 73% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java index 4a1bc636c727..8658ecadd6b3 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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 BillingAccountOrBuilder - extends +public interface BillingAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.BillingAccount) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the billing account. The resource name
    * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -33,16 +15,11 @@ public interface BillingAccountOrBuilder
    * billing account `012345-567890-ABCDEF`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the billing account. The resource name
    * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -50,60 +27,48 @@ public interface BillingAccountOrBuilder
    * billing account `012345-567890-ABCDEF`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. True if the billing account is open, and will therefore be
    * charged for any usage on associated projects. False if the billing account
-   * is closed, and therefore projects associated with it will be unable to use
-   * paid services.
+   * is closed, and therefore projects associated with it are unable to use paid
+   * services.
    * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The open. */ boolean getOpen(); /** - * - * *
    * The display name given to the billing account, such as `My Billing
    * Account`. This name is displayed in the Google Cloud Console.
    * 
* * string display_name = 3; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The display name given to the billing account, such as `My Billing
    * Account`. This name is displayed in the Google Cloud Console.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * If this account is a
    * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -113,13 +78,10 @@ public interface BillingAccountOrBuilder
    * 
* * string master_billing_account = 4; - * * @return The masterBillingAccount. */ java.lang.String getMasterBillingAccount(); /** - * - * *
    * If this account is a
    * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -129,14 +91,12 @@ public interface BillingAccountOrBuilder
    * 
* * string master_billing_account = 4; - * * @return The bytes for masterBillingAccount. */ - com.google.protobuf.ByteString getMasterBillingAccountBytes(); + com.google.protobuf.ByteString + getMasterBillingAccountBytes(); /** - * - * *
    * Output only. The billing account's parent resource identifier.
    * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -149,13 +109,10 @@ public interface BillingAccountOrBuilder
    * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Output only. The billing account's parent resource identifier.
    * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -168,8 +125,8 @@ public interface BillingAccountOrBuilder
    * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java similarity index 71% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java index 5964fa7b4010..e0382455de8c 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.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 category hierarchy of a SKU.
  * 
* * Protobuf type {@code google.cloud.billing.v1.Category} */ -public final class Category extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Category extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.Category) CategoryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Category.newBuilder() to construct. private Category(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Category() { serviceDisplayName_ = ""; resourceFamily_ = ""; @@ -46,38 +28,33 @@ private Category() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Category(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Category_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Category_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Category_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Category_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.Category.class, - com.google.cloud.billing.v1.Category.Builder.class); + com.google.cloud.billing.v1.Category.class, com.google.cloud.billing.v1.Category.Builder.class); } public static final int SERVICE_DISPLAY_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object serviceDisplayName_ = ""; /** - * - * *
    * The display name of the service this SKU belongs to.
    * 
* * string service_display_name = 1; - * * @return The serviceDisplayName. */ @java.lang.Override @@ -86,29 +63,29 @@ public java.lang.String getServiceDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceDisplayName_ = s; return s; } } /** - * - * *
    * The display name of the service this SKU belongs to.
    * 
* * string service_display_name = 1; - * * @return The bytes for serviceDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceDisplayNameBytes() { + public com.google.protobuf.ByteString + getServiceDisplayNameBytes() { java.lang.Object ref = serviceDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceDisplayName_ = b; return b; } else { @@ -117,19 +94,15 @@ public com.google.protobuf.ByteString getServiceDisplayNameBytes() { } public static final int RESOURCE_FAMILY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object resourceFamily_ = ""; /** - * - * *
    * The type of product the SKU refers to.
    * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
    * 
* * string resource_family = 2; - * * @return The resourceFamily. */ @java.lang.Override @@ -138,30 +111,30 @@ public java.lang.String getResourceFamily() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFamily_ = s; return s; } } /** - * - * *
    * The type of product the SKU refers to.
    * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
    * 
* * string resource_family = 2; - * * @return The bytes for resourceFamily. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceFamilyBytes() { + public com.google.protobuf.ByteString + getResourceFamilyBytes() { java.lang.Object ref = resourceFamily_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceFamily_ = b; return b; } else { @@ -170,19 +143,15 @@ public com.google.protobuf.ByteString getResourceFamilyBytes() { } public static final int RESOURCE_GROUP_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object resourceGroup_ = ""; /** - * - * *
    * A group classification for related SKUs.
    * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
    * 
* * string resource_group = 3; - * * @return The resourceGroup. */ @java.lang.Override @@ -191,30 +160,30 @@ public java.lang.String getResourceGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceGroup_ = s; return s; } } /** - * - * *
    * A group classification for related SKUs.
    * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
    * 
* * string resource_group = 3; - * * @return The bytes for resourceGroup. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceGroupBytes() { + public com.google.protobuf.ByteString + getResourceGroupBytes() { java.lang.Object ref = resourceGroup_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceGroup_ = b; return b; } else { @@ -223,19 +192,15 @@ public com.google.protobuf.ByteString getResourceGroupBytes() { } public static final int USAGE_TYPE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object usageType_ = ""; /** - * - * *
    * Represents how the SKU is consumed.
    * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
    * 
* * string usage_type = 4; - * * @return The usageType. */ @java.lang.Override @@ -244,30 +209,30 @@ public java.lang.String getUsageType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usageType_ = s; return s; } } /** - * - * *
    * Represents how the SKU is consumed.
    * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
    * 
* * string usage_type = 4; - * * @return The bytes for usageType. */ @java.lang.Override - public com.google.protobuf.ByteString getUsageTypeBytes() { + public com.google.protobuf.ByteString + getUsageTypeBytes() { java.lang.Object ref = usageType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); usageType_ = b; return b; } else { @@ -276,7 +241,6 @@ public com.google.protobuf.ByteString getUsageTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,7 +252,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceDisplayName_); } @@ -330,17 +295,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.Category)) { return super.equals(obj); } com.google.cloud.billing.v1.Category other = (com.google.cloud.billing.v1.Category) obj; - if (!getServiceDisplayName().equals(other.getServiceDisplayName())) return false; - if (!getResourceFamily().equals(other.getResourceFamily())) return false; - if (!getResourceGroup().equals(other.getResourceGroup())) return false; - if (!getUsageType().equals(other.getUsageType())) return false; + if (!getServiceDisplayName() + .equals(other.getServiceDisplayName())) return false; + if (!getResourceFamily() + .equals(other.getResourceFamily())) return false; + if (!getResourceGroup() + .equals(other.getResourceGroup())) return false; + if (!getUsageType() + .equals(other.getUsageType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -365,135 +334,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.Category parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.Category parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.Category parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.billing.v1.Category parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.billing.v1.Category parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.Category parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.Category parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.Category parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.Category parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.Category parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.cloud.billing.v1.Category parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.Category parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.Category parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.Category parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.Category prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the category hierarchy of a SKU.
    * 
* * Protobuf type {@code google.cloud.billing.v1.Category} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.Category) com.google.cloud.billing.v1.CategoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Category_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Category_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Category_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Category_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.Category.class, - com.google.cloud.billing.v1.Category.Builder.class); + com.google.cloud.billing.v1.Category.class, com.google.cloud.billing.v1.Category.Builder.class); } // Construct using com.google.cloud.billing.v1.Category.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -506,9 +472,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Category_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Category_descriptor; } @java.lang.Override @@ -528,9 +494,7 @@ public com.google.cloud.billing.v1.Category build() { @java.lang.Override public com.google.cloud.billing.v1.Category buildPartial() { com.google.cloud.billing.v1.Category result = new com.google.cloud.billing.v1.Category(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -555,39 +519,38 @@ private void buildPartial0(com.google.cloud.billing.v1.Category result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.Category) { - return mergeFrom((com.google.cloud.billing.v1.Category) other); + return mergeFrom((com.google.cloud.billing.v1.Category)other); } else { super.mergeFrom(other); return this; @@ -642,37 +605,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - serviceDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - resourceFamily_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - resourceGroup_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - usageType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + serviceDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + resourceFamily_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + resourceGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + usageType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -682,25 +640,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object serviceDisplayName_ = ""; /** - * - * *
      * The display name of the service this SKU belongs to.
      * 
* * string service_display_name = 1; - * * @return The serviceDisplayName. */ public java.lang.String getServiceDisplayName() { java.lang.Object ref = serviceDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceDisplayName_ = s; return s; @@ -709,21 +664,20 @@ public java.lang.String getServiceDisplayName() { } } /** - * - * *
      * The display name of the service this SKU belongs to.
      * 
* * string service_display_name = 1; - * * @return The bytes for serviceDisplayName. */ - public com.google.protobuf.ByteString getServiceDisplayNameBytes() { + public com.google.protobuf.ByteString + getServiceDisplayNameBytes() { java.lang.Object ref = serviceDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceDisplayName_ = b; return b; } else { @@ -731,35 +685,28 @@ public com.google.protobuf.ByteString getServiceDisplayNameBytes() { } } /** - * - * *
      * The display name of the service this SKU belongs to.
      * 
* * string service_display_name = 1; - * * @param value The serviceDisplayName to set. * @return This builder for chaining. */ - public Builder setServiceDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceDisplayName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The display name of the service this SKU belongs to.
      * 
* * string service_display_name = 1; - * * @return This builder for chaining. */ public Builder clearServiceDisplayName() { @@ -769,21 +716,17 @@ public Builder clearServiceDisplayName() { return this; } /** - * - * *
      * The display name of the service this SKU belongs to.
      * 
* * string service_display_name = 1; - * * @param value The bytes for serviceDisplayName to set. * @return This builder for chaining. */ - public Builder setServiceDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceDisplayName_ = value; bitField0_ |= 0x00000001; @@ -793,21 +736,19 @@ public Builder setServiceDisplayNameBytes(com.google.protobuf.ByteString value) private java.lang.Object resourceFamily_ = ""; /** - * - * *
      * The type of product the SKU refers to.
      * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
      * 
* * string resource_family = 2; - * * @return The resourceFamily. */ public java.lang.String getResourceFamily() { java.lang.Object ref = resourceFamily_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFamily_ = s; return s; @@ -816,22 +757,21 @@ public java.lang.String getResourceFamily() { } } /** - * - * *
      * The type of product the SKU refers to.
      * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
      * 
* * string resource_family = 2; - * * @return The bytes for resourceFamily. */ - public com.google.protobuf.ByteString getResourceFamilyBytes() { + public com.google.protobuf.ByteString + getResourceFamilyBytes() { java.lang.Object ref = resourceFamily_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceFamily_ = b; return b; } else { @@ -839,37 +779,30 @@ public com.google.protobuf.ByteString getResourceFamilyBytes() { } } /** - * - * *
      * The type of product the SKU refers to.
      * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
      * 
* * string resource_family = 2; - * * @param value The resourceFamily to set. * @return This builder for chaining. */ - public Builder setResourceFamily(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceFamily( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resourceFamily_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The type of product the SKU refers to.
      * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
      * 
* * string resource_family = 2; - * * @return This builder for chaining. */ public Builder clearResourceFamily() { @@ -879,22 +812,18 @@ public Builder clearResourceFamily() { return this; } /** - * - * *
      * The type of product the SKU refers to.
      * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
      * 
* * string resource_family = 2; - * * @param value The bytes for resourceFamily to set. * @return This builder for chaining. */ - public Builder setResourceFamilyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceFamilyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceFamily_ = value; bitField0_ |= 0x00000002; @@ -904,21 +833,19 @@ public Builder setResourceFamilyBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceGroup_ = ""; /** - * - * *
      * A group classification for related SKUs.
      * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
      * 
* * string resource_group = 3; - * * @return The resourceGroup. */ public java.lang.String getResourceGroup() { java.lang.Object ref = resourceGroup_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceGroup_ = s; return s; @@ -927,22 +854,21 @@ public java.lang.String getResourceGroup() { } } /** - * - * *
      * A group classification for related SKUs.
      * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
      * 
* * string resource_group = 3; - * * @return The bytes for resourceGroup. */ - public com.google.protobuf.ByteString getResourceGroupBytes() { + public com.google.protobuf.ByteString + getResourceGroupBytes() { java.lang.Object ref = resourceGroup_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceGroup_ = b; return b; } else { @@ -950,37 +876,30 @@ public com.google.protobuf.ByteString getResourceGroupBytes() { } } /** - * - * *
      * A group classification for related SKUs.
      * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
      * 
* * string resource_group = 3; - * * @param value The resourceGroup to set. * @return This builder for chaining. */ - public Builder setResourceGroup(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceGroup( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resourceGroup_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A group classification for related SKUs.
      * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
      * 
* * string resource_group = 3; - * * @return This builder for chaining. */ public Builder clearResourceGroup() { @@ -990,22 +909,18 @@ public Builder clearResourceGroup() { return this; } /** - * - * *
      * A group classification for related SKUs.
      * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
      * 
* * string resource_group = 3; - * * @param value The bytes for resourceGroup to set. * @return This builder for chaining. */ - public Builder setResourceGroupBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceGroup_ = value; bitField0_ |= 0x00000004; @@ -1015,21 +930,19 @@ public Builder setResourceGroupBytes(com.google.protobuf.ByteString value) { private java.lang.Object usageType_ = ""; /** - * - * *
      * Represents how the SKU is consumed.
      * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
      * 
* * string usage_type = 4; - * * @return The usageType. */ public java.lang.String getUsageType() { java.lang.Object ref = usageType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usageType_ = s; return s; @@ -1038,22 +951,21 @@ public java.lang.String getUsageType() { } } /** - * - * *
      * Represents how the SKU is consumed.
      * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
      * 
* * string usage_type = 4; - * * @return The bytes for usageType. */ - public com.google.protobuf.ByteString getUsageTypeBytes() { + public com.google.protobuf.ByteString + getUsageTypeBytes() { java.lang.Object ref = usageType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); usageType_ = b; return b; } else { @@ -1061,37 +973,30 @@ public com.google.protobuf.ByteString getUsageTypeBytes() { } } /** - * - * *
      * Represents how the SKU is consumed.
      * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
      * 
* * string usage_type = 4; - * * @param value The usageType to set. * @return This builder for chaining. */ - public Builder setUsageType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsageType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } usageType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Represents how the SKU is consumed.
      * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
      * 
* * string usage_type = 4; - * * @return This builder for chaining. */ public Builder clearUsageType() { @@ -1101,31 +1006,27 @@ public Builder clearUsageType() { return this; } /** - * - * *
      * Represents how the SKU is consumed.
      * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
      * 
* * string usage_type = 4; - * * @param value The bytes for usageType to set. * @return This builder for chaining. */ - public Builder setUsageTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsageTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); usageType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1135,12 +1036,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.Category) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.Category) private static final com.google.cloud.billing.v1.Category DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.Category(); } @@ -1149,27 +1050,27 @@ public static com.google.cloud.billing.v1.Category getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Category parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Category parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1184,4 +1085,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.Category getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java similarity index 69% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java index 7825a3783315..0a422ab1a769 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java @@ -1,131 +1,95 @@ -/* - * 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 interface CategoryOrBuilder - extends +public interface CategoryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.Category) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The display name of the service this SKU belongs to.
    * 
* * string service_display_name = 1; - * * @return The serviceDisplayName. */ java.lang.String getServiceDisplayName(); /** - * - * *
    * The display name of the service this SKU belongs to.
    * 
* * string service_display_name = 1; - * * @return The bytes for serviceDisplayName. */ - com.google.protobuf.ByteString getServiceDisplayNameBytes(); + com.google.protobuf.ByteString + getServiceDisplayNameBytes(); /** - * - * *
    * The type of product the SKU refers to.
    * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
    * 
* * string resource_family = 2; - * * @return The resourceFamily. */ java.lang.String getResourceFamily(); /** - * - * *
    * The type of product the SKU refers to.
    * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
    * 
* * string resource_family = 2; - * * @return The bytes for resourceFamily. */ - com.google.protobuf.ByteString getResourceFamilyBytes(); + com.google.protobuf.ByteString + getResourceFamilyBytes(); /** - * - * *
    * A group classification for related SKUs.
    * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
    * 
* * string resource_group = 3; - * * @return The resourceGroup. */ java.lang.String getResourceGroup(); /** - * - * *
    * A group classification for related SKUs.
    * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
    * 
* * string resource_group = 3; - * * @return The bytes for resourceGroup. */ - com.google.protobuf.ByteString getResourceGroupBytes(); + com.google.protobuf.ByteString + getResourceGroupBytes(); /** - * - * *
    * Represents how the SKU is consumed.
    * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
    * 
* * string usage_type = 4; - * * @return The usageType. */ java.lang.String getUsageType(); /** - * - * *
    * Represents how the SKU is consumed.
    * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
    * 
* * string usage_type = 4; - * * @return The bytes for usageType. */ - com.google.protobuf.ByteString getUsageTypeBytes(); + com.google.protobuf.ByteString + getUsageTypeBytes(); } diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java new file mode 100644 index 000000000000..3f04da44c6ac --- /dev/null +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java @@ -0,0 +1,316 @@ +// 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/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java new file mode 100644 index 000000000000..030eae6a0ac9 --- /dev/null +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java @@ -0,0 +1,268 @@ +// 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/CreateBillingAccountRequest.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java similarity index 66% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java index 8c52bd811d99..cc83ff48dbc9 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java @@ -1,72 +1,51 @@ -/* - * 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; /** - * - * *
  * Request message for `CreateBillingAccount`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.CreateBillingAccountRequest} */ -public final class CreateBillingAccountRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateBillingAccountRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.CreateBillingAccountRequest) CreateBillingAccountRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateBillingAccountRequest.newBuilder() to construct. private CreateBillingAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateBillingAccountRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBillingAccountRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.CreateBillingAccountRequest.class, - com.google.cloud.billing.v1.CreateBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.CreateBillingAccountRequest.class, com.google.cloud.billing.v1.CreateBillingAccountRequest.Builder.class); } public static final int BILLING_ACCOUNT_FIELD_NUMBER = 1; private com.google.cloud.billing.v1.BillingAccount billingAccount_; /** - * - * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -74,10 +53,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * account.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the billingAccount field is set. */ @java.lang.Override @@ -85,8 +61,6 @@ public boolean hasBillingAccount() { return billingAccount_ != null; } /** - * - * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -94,21 +68,14 @@ public boolean hasBillingAccount() {
    * account.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The billingAccount. */ @java.lang.Override public com.google.cloud.billing.v1.BillingAccount getBillingAccount() { - return billingAccount_ == null - ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() - : billingAccount_; + return billingAccount_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_; } /** - * - * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -116,24 +83,17 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccount() {
    * account.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder() { - return billingAccount_ == null - ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() - : billingAccount_; + return billingAccount_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_; } public static final int PARENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Optional. The parent to create a billing account from.
    * Format:
@@ -144,7 +104,6 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBu
    * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The parent. */ @java.lang.Override @@ -153,15 +112,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Optional. The parent to create a billing account from.
    * Format:
@@ -172,15 +130,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -189,7 +148,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +159,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (billingAccount_ != null) { output.writeMessage(1, getBillingAccount()); } @@ -218,7 +177,8 @@ public int getSerializedSize() { size = 0; if (billingAccount_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBillingAccount()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBillingAccount()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); @@ -231,19 +191,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.CreateBillingAccountRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.CreateBillingAccountRequest other = - (com.google.cloud.billing.v1.CreateBillingAccountRequest) obj; + com.google.cloud.billing.v1.CreateBillingAccountRequest other = (com.google.cloud.billing.v1.CreateBillingAccountRequest) obj; if (hasBillingAccount() != other.hasBillingAccount()) return false; if (hasBillingAccount()) { - if (!getBillingAccount().equals(other.getBillingAccount())) return false; + if (!getBillingAccount() + .equals(other.getBillingAccount())) return false; } - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,136 +228,131 @@ public int hashCode() { } public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.billing.v1.CreateBillingAccountRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.v1.CreateBillingAccountRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `CreateBillingAccount`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.CreateBillingAccountRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.CreateBillingAccountRequest) com.google.cloud.billing.v1.CreateBillingAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.CreateBillingAccountRequest.class, - com.google.cloud.billing.v1.CreateBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.CreateBillingAccountRequest.class, com.google.cloud.billing.v1.CreateBillingAccountRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.CreateBillingAccountRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +367,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor; } @java.lang.Override @@ -432,11 +388,8 @@ public com.google.cloud.billing.v1.CreateBillingAccountRequest build() { @java.lang.Override public com.google.cloud.billing.v1.CreateBillingAccountRequest buildPartial() { - com.google.cloud.billing.v1.CreateBillingAccountRequest result = - new com.google.cloud.billing.v1.CreateBillingAccountRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.v1.CreateBillingAccountRequest result = new com.google.cloud.billing.v1.CreateBillingAccountRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -444,8 +397,9 @@ public com.google.cloud.billing.v1.CreateBillingAccountRequest buildPartial() { private void buildPartial0(com.google.cloud.billing.v1.CreateBillingAccountRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.billingAccount_ = - billingAccountBuilder_ == null ? billingAccount_ : billingAccountBuilder_.build(); + result.billingAccount_ = billingAccountBuilder_ == null + ? billingAccount_ + : billingAccountBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.parent_ = parent_; @@ -456,39 +410,38 @@ private void buildPartial0(com.google.cloud.billing.v1.CreateBillingAccountReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.CreateBillingAccountRequest) { - return mergeFrom((com.google.cloud.billing.v1.CreateBillingAccountRequest) other); + return mergeFrom((com.google.cloud.billing.v1.CreateBillingAccountRequest)other); } else { super.mergeFrom(other); return this; @@ -496,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.CreateBillingAccountRequest other) { - if (other == com.google.cloud.billing.v1.CreateBillingAccountRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.v1.CreateBillingAccountRequest.getDefaultInstance()) return this; if (other.hasBillingAccount()) { mergeBillingAccount(other.getBillingAccount()); } @@ -532,25 +484,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBillingAccountFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBillingAccountFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -560,18 +511,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.billing.v1.BillingAccount billingAccount_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, - com.google.cloud.billing.v1.BillingAccount.Builder, - com.google.cloud.billing.v1.BillingAccountOrBuilder> - billingAccountBuilder_; + com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> billingAccountBuilder_; /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -579,18 +524,13 @@ public Builder mergeFrom(
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the billingAccount field is set. */ public boolean hasBillingAccount() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -598,24 +538,17 @@ public boolean hasBillingAccount() {
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The billingAccount. */ public com.google.cloud.billing.v1.BillingAccount getBillingAccount() { if (billingAccountBuilder_ == null) { - return billingAccount_ == null - ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() - : billingAccount_; + return billingAccount_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_; } else { return billingAccountBuilder_.getMessage(); } } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -623,9 +556,7 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccount() {
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBillingAccount(com.google.cloud.billing.v1.BillingAccount value) { if (billingAccountBuilder_ == null) { @@ -641,8 +572,6 @@ public Builder setBillingAccount(com.google.cloud.billing.v1.BillingAccount valu return this; } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -650,9 +579,7 @@ public Builder setBillingAccount(com.google.cloud.billing.v1.BillingAccount valu
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBillingAccount( com.google.cloud.billing.v1.BillingAccount.Builder builderForValue) { @@ -666,8 +593,6 @@ public Builder setBillingAccount( return this; } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -675,15 +600,13 @@ public Builder setBillingAccount(
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBillingAccount(com.google.cloud.billing.v1.BillingAccount value) { if (billingAccountBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && billingAccount_ != null - && billingAccount_ != com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + billingAccount_ != null && + billingAccount_ != com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()) { getBillingAccountBuilder().mergeFrom(value); } else { billingAccount_ = value; @@ -696,8 +619,6 @@ public Builder mergeBillingAccount(com.google.cloud.billing.v1.BillingAccount va return this; } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -705,9 +626,7 @@ public Builder mergeBillingAccount(com.google.cloud.billing.v1.BillingAccount va
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBillingAccount() { bitField0_ = (bitField0_ & ~0x00000001); @@ -720,8 +639,6 @@ public Builder clearBillingAccount() { return this; } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -729,9 +646,7 @@ public Builder clearBillingAccount() {
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountBuilder() { bitField0_ |= 0x00000001; @@ -739,8 +654,6 @@ public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountBuild return getBillingAccountFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -748,22 +661,17 @@ public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountBuild
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder() { if (billingAccountBuilder_ != null) { return billingAccountBuilder_.getMessageOrBuilder(); } else { - return billingAccount_ == null - ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() - : billingAccount_; + return billingAccount_ == null ? + com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_; } } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -771,22 +679,17 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBu
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, - com.google.cloud.billing.v1.BillingAccount.Builder, - com.google.cloud.billing.v1.BillingAccountOrBuilder> + com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> getBillingAccountFieldBuilder() { if (billingAccountBuilder_ == null) { - billingAccountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, - com.google.cloud.billing.v1.BillingAccount.Builder, - com.google.cloud.billing.v1.BillingAccountOrBuilder>( - getBillingAccount(), getParentForChildren(), isClean()); + billingAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder>( + getBillingAccount(), + getParentForChildren(), + isClean()); billingAccount_ = null; } return billingAccountBuilder_; @@ -794,8 +697,6 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBu private java.lang.Object parent_ = ""; /** - * - * *
      * Optional. The parent to create a billing account from.
      * Format:
@@ -806,13 +707,13 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBu
      * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -821,8 +722,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Optional. The parent to create a billing account from.
      * Format:
@@ -833,14 +732,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -848,8 +748,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Optional. The parent to create a billing account from.
      * Format:
@@ -860,22 +758,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The parent to create a billing account from.
      * Format:
@@ -886,7 +780,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -896,8 +789,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Optional. The parent to create a billing account from.
      * Format:
@@ -908,23 +799,21 @@ public Builder clearParent() {
      * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -934,12 +823,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.CreateBillingAccountRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.CreateBillingAccountRequest) private static final com.google.cloud.billing.v1.CreateBillingAccountRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.CreateBillingAccountRequest(); } @@ -948,27 +837,27 @@ public static com.google.cloud.billing.v1.CreateBillingAccountRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBillingAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBillingAccountRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -983,4 +872,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.billing.v1.CreateBillingAccountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java similarity index 65% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java index 14f080a1595e..df3feca6df92 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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 CreateBillingAccountRequestOrBuilder - extends +public interface CreateBillingAccountRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.CreateBillingAccountRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -33,16 +15,11 @@ public interface CreateBillingAccountRequestOrBuilder
    * account.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the billingAccount field is set. */ boolean hasBillingAccount(); /** - * - * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -50,16 +27,11 @@ public interface CreateBillingAccountRequestOrBuilder
    * account.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The billingAccount. */ com.google.cloud.billing.v1.BillingAccount getBillingAccount(); /** - * - * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -67,15 +39,11 @@ public interface CreateBillingAccountRequestOrBuilder
    * account.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder(); /** - * - * *
    * Optional. The parent to create a billing account from.
    * Format:
@@ -86,13 +54,10 @@ public interface CreateBillingAccountRequestOrBuilder
    * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Optional. The parent to create a billing account from.
    * Format:
@@ -103,8 +68,8 @@ public interface CreateBillingAccountRequestOrBuilder
    * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java similarity index 71% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java index ad5a12f45619..9d02367334db 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java @@ -1,81 +1,60 @@ -/* - * 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; /** - * - * *
  * Encapsulates the geographic taxonomy data for a sku.
  * 
* * Protobuf type {@code google.cloud.billing.v1.GeoTaxonomy} */ -public final class GeoTaxonomy extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GeoTaxonomy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.GeoTaxonomy) GeoTaxonomyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GeoTaxonomy.newBuilder() to construct. private GeoTaxonomy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GeoTaxonomy() { type_ = 0; - regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + regions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GeoTaxonomy(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_GeoTaxonomy_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_GeoTaxonomy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.GeoTaxonomy.class, - com.google.cloud.billing.v1.GeoTaxonomy.Builder.class); + com.google.cloud.billing.v1.GeoTaxonomy.class, com.google.cloud.billing.v1.GeoTaxonomy.Builder.class); } /** - * - * *
    * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
    * 
* * Protobuf enum {@code google.cloud.billing.v1.GeoTaxonomy.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The type is not specified.
      * 
@@ -84,8 +63,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * The sku is global in nature, e.g. a license sku. Global skus are
      * available in all regions, and so have an empty region list.
@@ -95,8 +72,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     GLOBAL(1),
     /**
-     *
-     *
      * 
      * The sku is available in a specific region, e.g. "us-west2".
      * 
@@ -105,8 +80,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ REGIONAL(2), /** - * - * *
      * The sku is associated with multiple regions, e.g. "us-west2" and
      * "us-east1".
@@ -119,8 +92,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * The type is not specified.
      * 
@@ -129,8 +100,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The sku is global in nature, e.g. a license sku. Global skus are
      * available in all regions, and so have an empty region list.
@@ -140,8 +109,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int GLOBAL_VALUE = 1;
     /**
-     *
-     *
      * 
      * The sku is available in a specific region, e.g. "us-west2".
      * 
@@ -150,8 +117,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REGIONAL_VALUE = 2; /** - * - * *
      * The sku is associated with multiple regions, e.g. "us-west2" and
      * "us-east1".
@@ -161,6 +126,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MULTI_REGIONAL_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -185,51 +151,50 @@ public static Type valueOf(int value) {
      */
     public static Type forNumber(int value) {
       switch (value) {
-        case 0:
-          return TYPE_UNSPECIFIED;
-        case 1:
-          return GLOBAL;
-        case 2:
-          return REGIONAL;
-        case 3:
-          return MULTI_REGIONAL;
-        default:
-          return null;
+        case 0: return TYPE_UNSPECIFIED;
+        case 1: return GLOBAL;
+        case 2: return REGIONAL;
+        case 3: return MULTI_REGIONAL;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Type> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Type findValueByNumber(int number) {
+              return Type.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Type findValueByNumber(int number) {
-            return Type.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.GeoTaxonomy.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Type[] VALUES = values();
 
-    public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Type 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;
@@ -249,83 +214,65 @@ private Type(int value) {
   public static final int TYPE_FIELD_NUMBER = 1;
   private int type_ = 0;
   /**
-   *
-   *
    * 
    * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.billing.v1.GeoTaxonomy.Type getType() { - com.google.cloud.billing.v1.GeoTaxonomy.Type result = - com.google.cloud.billing.v1.GeoTaxonomy.Type.forNumber(type_); + @java.lang.Override public com.google.cloud.billing.v1.GeoTaxonomy.Type getType() { + com.google.cloud.billing.v1.GeoTaxonomy.Type result = com.google.cloud.billing.v1.GeoTaxonomy.Type.forNumber(type_); return result == null ? com.google.cloud.billing.v1.GeoTaxonomy.Type.UNRECOGNIZED : result; } public static final int REGIONS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; - * * @return A list containing the regions. */ - public com.google.protobuf.ProtocolStringList getRegionsList() { + public com.google.protobuf.ProtocolStringList + getRegionsList() { return regions_; } /** - * - * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; - * * @return The count of regions. */ public int getRegionsCount() { return regions_.size(); } /** - * - * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; - * * @param index The index of the element to return. * @return The regions at the given index. */ @@ -333,24 +280,21 @@ public java.lang.String getRegions(int index) { return regions_.get(index); } /** - * - * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; - * * @param index The index of the value to return. * @return The bytes of the regions at the given index. */ - public com.google.protobuf.ByteString getRegionsBytes(int index) { + public com.google.protobuf.ByteString + getRegionsBytes(int index) { return regions_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -362,7 +306,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (type_ != com.google.cloud.billing.v1.GeoTaxonomy.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } @@ -379,7 +324,8 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.billing.v1.GeoTaxonomy.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); } { int dataSize = 0; @@ -397,7 +343,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.GeoTaxonomy)) { return super.equals(obj); @@ -405,7 +351,8 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.billing.v1.GeoTaxonomy other = (com.google.cloud.billing.v1.GeoTaxonomy) obj; if (type_ != other.type_) return false; - if (!getRegionsList().equals(other.getRegionsList())) return false; + if (!getRegionsList() + .equals(other.getRegionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -428,149 +375,146 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.GeoTaxonomy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.GeoTaxonomy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.GeoTaxonomy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.GeoTaxonomy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Encapsulates the geographic taxonomy data for a sku.
    * 
* * Protobuf type {@code google.cloud.billing.v1.GeoTaxonomy} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.GeoTaxonomy) com.google.cloud.billing.v1.GeoTaxonomyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_GeoTaxonomy_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_GeoTaxonomy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.GeoTaxonomy.class, - com.google.cloud.billing.v1.GeoTaxonomy.Builder.class); + com.google.cloud.billing.v1.GeoTaxonomy.class, com.google.cloud.billing.v1.GeoTaxonomy.Builder.class); } // Construct using com.google.cloud.billing.v1.GeoTaxonomy.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 0; - regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + regions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor; } @java.lang.Override @@ -589,11 +533,8 @@ public com.google.cloud.billing.v1.GeoTaxonomy build() { @java.lang.Override public com.google.cloud.billing.v1.GeoTaxonomy buildPartial() { - com.google.cloud.billing.v1.GeoTaxonomy result = - new com.google.cloud.billing.v1.GeoTaxonomy(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.v1.GeoTaxonomy result = new com.google.cloud.billing.v1.GeoTaxonomy(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -613,39 +554,38 @@ private void buildPartial0(com.google.cloud.billing.v1.GeoTaxonomy result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.GeoTaxonomy) { - return mergeFrom((com.google.cloud.billing.v1.GeoTaxonomy) other); + return mergeFrom((com.google.cloud.billing.v1.GeoTaxonomy)other); } else { super.mergeFrom(other); return this; @@ -693,26 +633,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureRegionsIsMutable(); - regions_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRegionsIsMutable(); + regions_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -722,34 +659,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int type_ = 0; /** - * - * *
      * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -760,31 +689,24 @@ public Builder setTypeValue(int value) { return this; } /** - * - * *
      * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; - * * @return The type. */ @java.lang.Override public com.google.cloud.billing.v1.GeoTaxonomy.Type getType() { - com.google.cloud.billing.v1.GeoTaxonomy.Type result = - com.google.cloud.billing.v1.GeoTaxonomy.Type.forNumber(type_); + com.google.cloud.billing.v1.GeoTaxonomy.Type result = com.google.cloud.billing.v1.GeoTaxonomy.Type.forNumber(type_); return result == null ? com.google.cloud.billing.v1.GeoTaxonomy.Type.UNRECOGNIZED : result; } /** - * - * *
      * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; - * * @param value The type to set. * @return This builder for chaining. */ @@ -798,14 +720,11 @@ public Builder setType(com.google.cloud.billing.v1.GeoTaxonomy.Type value) { return this; } /** - * - * *
      * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; - * * @return This builder for chaining. */ public Builder clearType() { @@ -817,7 +736,6 @@ public Builder clearType() { private com.google.protobuf.LazyStringArrayList regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureRegionsIsMutable() { if (!regions_.isModifiable()) { regions_ = new com.google.protobuf.LazyStringArrayList(regions_); @@ -825,46 +743,38 @@ private void ensureRegionsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; - * * @return A list containing the regions. */ - public com.google.protobuf.ProtocolStringList getRegionsList() { + public com.google.protobuf.ProtocolStringList + getRegionsList() { regions_.makeImmutable(); return regions_; } /** - * - * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; - * * @return The count of regions. */ public int getRegionsCount() { return regions_.size(); } /** - * - * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; - * * @param index The index of the element to return. * @return The regions at the given index. */ @@ -872,39 +782,33 @@ public java.lang.String getRegions(int index) { return regions_.get(index); } /** - * - * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; - * * @param index The index of the value to return. * @return The bytes of the regions at the given index. */ - public com.google.protobuf.ByteString getRegionsBytes(int index) { + public com.google.protobuf.ByteString + getRegionsBytes(int index) { return regions_.getByteString(index); } /** - * - * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; - * * @param index The index to set the value at. * @param value The regions to set. * @return This builder for chaining. */ - public Builder setRegions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRegions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.set(index, value); bitField0_ |= 0x00000002; @@ -912,22 +816,18 @@ public Builder setRegions(int index, java.lang.String value) { return this; } /** - * - * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; - * * @param value The regions to add. * @return This builder for chaining. */ - public Builder addRegions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addRegions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.add(value); bitField0_ |= 0x00000002; @@ -935,61 +835,53 @@ public Builder addRegions(java.lang.String value) { return this; } /** - * - * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; - * * @param values The regions to add. * @return This builder for chaining. */ - public Builder addAllRegions(java.lang.Iterable values) { + public Builder addAllRegions( + java.lang.Iterable values) { ensureRegionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, regions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, regions_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; - * * @return This builder for chaining. */ public Builder clearRegions() { - regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + regions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; - * * @param value The bytes of the regions to add. * @return This builder for chaining. */ - public Builder addRegionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addRegionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRegionsIsMutable(); regions_.add(value); @@ -997,9 +889,9 @@ public Builder addRegionsBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1009,12 +901,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.GeoTaxonomy) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.GeoTaxonomy) private static final com.google.cloud.billing.v1.GeoTaxonomy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.GeoTaxonomy(); } @@ -1023,27 +915,27 @@ public static com.google.cloud.billing.v1.GeoTaxonomy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GeoTaxonomy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoTaxonomy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1058,4 +950,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.GeoTaxonomy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java similarity index 70% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java index d760f0f9020d..ba34e758c02d 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java @@ -1,105 +1,73 @@ -/* - * 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 interface GeoTaxonomyOrBuilder - extends +public interface GeoTaxonomyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.GeoTaxonomy) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; - * * @return The type. */ com.google.cloud.billing.v1.GeoTaxonomy.Type getType(); /** - * - * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; - * * @return A list containing the regions. */ - java.util.List getRegionsList(); + java.util.List + getRegionsList(); /** - * - * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; - * * @return The count of regions. */ int getRegionsCount(); /** - * - * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; - * * @param index The index of the element to return. * @return The regions at the given index. */ java.lang.String getRegions(int index); /** - * - * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; - * * @param index The index of the value to return. * @return The bytes of the regions at the given index. */ - com.google.protobuf.ByteString getRegionsBytes(int index); + com.google.protobuf.ByteString + getRegionsBytes(int index); } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java similarity index 62% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java index b5d332003fe8..8d73a50c88ca 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java @@ -1,83 +1,58 @@ -/* - * 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; /** - * - * *
  * Request message for `GetBillingAccount`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.GetBillingAccountRequest} */ -public final class GetBillingAccountRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetBillingAccountRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.GetBillingAccountRequest) GetBillingAccountRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetBillingAccountRequest.newBuilder() to construct. private GetBillingAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetBillingAccountRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetBillingAccountRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.GetBillingAccountRequest.class, - com.google.cloud.billing.v1.GetBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.GetBillingAccountRequest.class, com.google.cloud.billing.v1.GetBillingAccountRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.GetBillingAccountRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.GetBillingAccountRequest other = - (com.google.cloud.billing.v1.GetBillingAccountRequest) obj; + com.google.cloud.billing.v1.GetBillingAccountRequest other = (com.google.cloud.billing.v1.GetBillingAccountRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,135 +157,131 @@ public int hashCode() { } public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.GetBillingAccountRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.GetBillingAccountRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.GetBillingAccountRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.GetBillingAccountRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GetBillingAccount`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.GetBillingAccountRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.GetBillingAccountRequest) com.google.cloud.billing.v1.GetBillingAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.GetBillingAccountRequest.class, - com.google.cloud.billing.v1.GetBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.GetBillingAccountRequest.class, com.google.cloud.billing.v1.GetBillingAccountRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.GetBillingAccountRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor; } @java.lang.Override @@ -343,11 +312,8 @@ public com.google.cloud.billing.v1.GetBillingAccountRequest build() { @java.lang.Override public com.google.cloud.billing.v1.GetBillingAccountRequest buildPartial() { - com.google.cloud.billing.v1.GetBillingAccountRequest result = - new com.google.cloud.billing.v1.GetBillingAccountRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.v1.GetBillingAccountRequest result = new com.google.cloud.billing.v1.GetBillingAccountRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -363,39 +329,38 @@ private void buildPartial0(com.google.cloud.billing.v1.GetBillingAccountRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.GetBillingAccountRequest) { - return mergeFrom((com.google.cloud.billing.v1.GetBillingAccountRequest) other); + return mergeFrom((com.google.cloud.billing.v1.GetBillingAccountRequest)other); } else { super.mergeFrom(other); return this; @@ -403,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.GetBillingAccountRequest other) { - if (other == com.google.cloud.billing.v1.GetBillingAccountRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.v1.GetBillingAccountRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -436,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -488,24 +445,21 @@ public 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -513,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -557,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -593,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.GetBillingAccountRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.GetBillingAccountRequest) private static final com.google.cloud.billing.v1.GetBillingAccountRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.GetBillingAccountRequest(); } @@ -607,27 +544,27 @@ public static com.google.cloud.billing.v1.GetBillingAccountRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBillingAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBillingAccountRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -642,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.GetBillingAccountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java new file mode 100644 index 000000000000..7a1e85b205dc --- /dev/null +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java @@ -0,0 +1,31 @@ +// 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/GetProjectBillingInfoRequest.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java similarity index 62% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java index 15c4d8fab4fc..6430ca9c560b 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java @@ -1,83 +1,58 @@ -/* - * 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; /** - * - * *
  * Request message for `GetProjectBillingInfo`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.GetProjectBillingInfoRequest} */ -public final class GetProjectBillingInfoRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetProjectBillingInfoRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.GetProjectBillingInfoRequest) GetProjectBillingInfoRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetProjectBillingInfoRequest.newBuilder() to construct. private GetProjectBillingInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetProjectBillingInfoRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetProjectBillingInfoRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.GetProjectBillingInfoRequest.class, - com.google.cloud.billing.v1.GetProjectBillingInfoRequest.Builder.class); + com.google.cloud.billing.v1.GetProjectBillingInfoRequest.class, com.google.cloud.billing.v1.GetProjectBillingInfoRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -86,32 +61,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +129,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.GetProjectBillingInfoRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.GetProjectBillingInfoRequest other = - (com.google.cloud.billing.v1.GetProjectBillingInfoRequest) obj; + com.google.cloud.billing.v1.GetProjectBillingInfoRequest other = (com.google.cloud.billing.v1.GetProjectBillingInfoRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ public int hashCode() { } public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.billing.v1.GetProjectBillingInfoRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.v1.GetProjectBillingInfoRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GetProjectBillingInfo`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.GetProjectBillingInfoRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.GetProjectBillingInfoRequest) com.google.cloud.billing.v1.GetProjectBillingInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.GetProjectBillingInfoRequest.class, - com.google.cloud.billing.v1.GetProjectBillingInfoRequest.Builder.class); + com.google.cloud.billing.v1.GetProjectBillingInfoRequest.class, com.google.cloud.billing.v1.GetProjectBillingInfoRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.GetProjectBillingInfoRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor; } @java.lang.Override @@ -344,11 +312,8 @@ public com.google.cloud.billing.v1.GetProjectBillingInfoRequest build() { @java.lang.Override public com.google.cloud.billing.v1.GetProjectBillingInfoRequest buildPartial() { - com.google.cloud.billing.v1.GetProjectBillingInfoRequest result = - new com.google.cloud.billing.v1.GetProjectBillingInfoRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.v1.GetProjectBillingInfoRequest result = new com.google.cloud.billing.v1.GetProjectBillingInfoRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,39 +329,38 @@ private void buildPartial0(com.google.cloud.billing.v1.GetProjectBillingInfoRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.GetProjectBillingInfoRequest) { - return mergeFrom((com.google.cloud.billing.v1.GetProjectBillingInfoRequest) other); + return mergeFrom((com.google.cloud.billing.v1.GetProjectBillingInfoRequest)other); } else { super.mergeFrom(other); return this; @@ -404,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.GetProjectBillingInfoRequest other) { - if (other == com.google.cloud.billing.v1.GetProjectBillingInfoRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.v1.GetProjectBillingInfoRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -437,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -489,24 +445,21 @@ public 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -514,41 +467,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -558,33 +500,27 @@ public Builder clearName() { return this; } /** - * - * *
      * 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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.GetProjectBillingInfoRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.GetProjectBillingInfoRequest) private static final com.google.cloud.billing.v1.GetProjectBillingInfoRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.GetProjectBillingInfoRequest(); } @@ -608,27 +544,27 @@ public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProjectBillingInfoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProjectBillingInfoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +579,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.billing.v1.GetProjectBillingInfoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java new file mode 100644 index 000000000000..61107c01acaa --- /dev/null +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java @@ -0,0 +1,31 @@ +// 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/ListBillingAccountsRequest.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java similarity index 73% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java index 7be373e0d517..91dbfe97027c 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.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_billing.proto package com.google.cloud.billing.v1; /** - * - * *
  * Request message for `ListBillingAccounts`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListBillingAccountsRequest} */ -public final class ListBillingAccountsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBillingAccountsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListBillingAccountsRequest) ListBillingAccountsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBillingAccountsRequest.newBuilder() to construct. private ListBillingAccountsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBillingAccountsRequest() { pageToken_ = ""; filter_ = ""; @@ -45,37 +27,33 @@ private ListBillingAccountsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBillingAccountsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListBillingAccountsRequest.class, - com.google.cloud.billing.v1.ListBillingAccountsRequest.Builder.class); + com.google.cloud.billing.v1.ListBillingAccountsRequest.class, com.google.cloud.billing.v1.ListBillingAccountsRequest.Builder.class); } public static final int PAGE_SIZE_FIELD_NUMBER = 1; private int pageSize_ = 0; /** - * - * *
    * Requested page size. The maximum page size is 100; this is also the
    * default.
    * 
* * int32 page_size = 1; - * * @return The pageSize. */ @java.lang.Override @@ -84,12 +62,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -97,7 +72,6 @@ public int getPageSize() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -106,15 +80,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -122,15 +95,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -139,12 +113,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Options for how to filter the returned billing accounts.
    * This only supports filtering for
@@ -156,7 +127,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 3; - * * @return The filter. */ @java.lang.Override @@ -165,15 +135,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Options for how to filter the returned billing accounts.
    * This only supports filtering for
@@ -185,15 +154,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -202,12 +172,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PARENT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Optional. The parent resource to list billing accounts from.
    * Format:
@@ -218,7 +185,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The parent. */ @java.lang.Override @@ -227,15 +193,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Optional. The parent resource to list billing accounts from.
    * Format:
@@ -246,15 +211,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -263,7 +229,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,7 +240,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -298,7 +264,8 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); @@ -317,18 +284,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListBillingAccountsRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListBillingAccountsRequest other = - (com.google.cloud.billing.v1.ListBillingAccountsRequest) obj; - - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getParent().equals(other.getParent())) return false; + com.google.cloud.billing.v1.ListBillingAccountsRequest other = (com.google.cloud.billing.v1.ListBillingAccountsRequest) obj; + + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -354,136 +324,131 @@ public int hashCode() { } public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.billing.v1.ListBillingAccountsRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.v1.ListBillingAccountsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `ListBillingAccounts`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListBillingAccountsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListBillingAccountsRequest) com.google.cloud.billing.v1.ListBillingAccountsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListBillingAccountsRequest.class, - com.google.cloud.billing.v1.ListBillingAccountsRequest.Builder.class); + com.google.cloud.billing.v1.ListBillingAccountsRequest.class, com.google.cloud.billing.v1.ListBillingAccountsRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.ListBillingAccountsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +461,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor; } @java.lang.Override @@ -517,11 +482,8 @@ public com.google.cloud.billing.v1.ListBillingAccountsRequest build() { @java.lang.Override public com.google.cloud.billing.v1.ListBillingAccountsRequest buildPartial() { - com.google.cloud.billing.v1.ListBillingAccountsRequest result = - new com.google.cloud.billing.v1.ListBillingAccountsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.v1.ListBillingAccountsRequest result = new com.google.cloud.billing.v1.ListBillingAccountsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -546,39 +508,38 @@ private void buildPartial0(com.google.cloud.billing.v1.ListBillingAccountsReques public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListBillingAccountsRequest) { - return mergeFrom((com.google.cloud.billing.v1.ListBillingAccountsRequest) other); + return mergeFrom((com.google.cloud.billing.v1.ListBillingAccountsRequest)other); } else { super.mergeFrom(other); return this; @@ -586,8 +547,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListBillingAccountsRequest other) { - if (other == com.google.cloud.billing.v1.ListBillingAccountsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.v1.ListBillingAccountsRequest.getDefaultInstance()) return this; if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } @@ -632,37 +592,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -672,20 +627,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Requested page size. The maximum page size is 100; this is also the
      * default.
      * 
* * int32 page_size = 1; - * * @return The pageSize. */ @java.lang.Override @@ -693,15 +644,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. The maximum page size is 100; this is also the
      * default.
      * 
* * int32 page_size = 1; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -713,15 +661,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Requested page size. The maximum page size is 100; this is also the
      * default.
      * 
* * int32 page_size = 1; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -733,8 +678,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -742,13 +685,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -757,8 +700,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -766,14 +707,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -781,8 +723,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -790,22 +730,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -813,7 +749,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -823,8 +758,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -832,14 +765,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -849,8 +780,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Options for how to filter the returned billing accounts.
      * This only supports filtering for
@@ -862,13 +791,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 3; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -877,8 +806,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Options for how to filter the returned billing accounts.
      * This only supports filtering for
@@ -890,14 +817,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -905,8 +833,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Options for how to filter the returned billing accounts.
      * This only supports filtering for
@@ -918,22 +844,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 3; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Options for how to filter the returned billing accounts.
      * This only supports filtering for
@@ -945,7 +867,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 3; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -955,8 +876,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Options for how to filter the returned billing accounts.
      * This only supports filtering for
@@ -968,14 +887,12 @@ public Builder clearFilter() {
      * 
* * string filter = 3; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000004; @@ -985,8 +902,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
      * Optional. The parent resource to list billing accounts from.
      * Format:
@@ -997,13 +912,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1012,8 +927,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Optional. The parent resource to list billing accounts from.
      * Format:
@@ -1024,14 +937,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1039,8 +953,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Optional. The parent resource to list billing accounts from.
      * Format:
@@ -1051,22 +963,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. The parent resource to list billing accounts from.
      * Format:
@@ -1077,7 +985,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -1087,8 +994,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Optional. The parent resource to list billing accounts from.
      * Format:
@@ -1099,23 +1004,21 @@ public Builder clearParent() {
      * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1125,12 +1028,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListBillingAccountsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListBillingAccountsRequest) private static final com.google.cloud.billing.v1.ListBillingAccountsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListBillingAccountsRequest(); } @@ -1139,27 +1042,27 @@ public static com.google.cloud.billing.v1.ListBillingAccountsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBillingAccountsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBillingAccountsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1174,4 +1077,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.billing.v1.ListBillingAccountsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java similarity index 77% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java index 4fef7fe19e50..51a1eb401551 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java @@ -1,45 +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_billing.proto package com.google.cloud.billing.v1; -public interface ListBillingAccountsRequestOrBuilder - extends +public interface ListBillingAccountsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListBillingAccountsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Requested page size. The maximum page size is 100; this is also the
    * default.
    * 
* * int32 page_size = 1; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -47,13 +26,10 @@ public interface ListBillingAccountsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -61,14 +37,12 @@ public interface ListBillingAccountsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Options for how to filter the returned billing accounts.
    * This only supports filtering for
@@ -80,13 +54,10 @@ public interface ListBillingAccountsRequestOrBuilder
    * 
* * string filter = 3; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Options for how to filter the returned billing accounts.
    * This only supports filtering for
@@ -98,14 +69,12 @@ public interface ListBillingAccountsRequestOrBuilder
    * 
* * string filter = 3; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. The parent resource to list billing accounts from.
    * Format:
@@ -116,13 +85,10 @@ public interface ListBillingAccountsRequestOrBuilder
    * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Optional. The parent resource to list billing accounts from.
    * Format:
@@ -133,8 +99,8 @@ public interface ListBillingAccountsRequestOrBuilder
    * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java similarity index 72% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java index 893a40bbd660..bf7eaa480d55 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.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_billing.proto package com.google.cloud.billing.v1; /** - * - * *
  * Response message for `ListBillingAccounts`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListBillingAccountsResponse} */ -public final class ListBillingAccountsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListBillingAccountsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListBillingAccountsResponse) ListBillingAccountsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListBillingAccountsResponse.newBuilder() to construct. private ListBillingAccountsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListBillingAccountsResponse() { billingAccounts_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListBillingAccountsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBillingAccountsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListBillingAccountsResponse.class, - com.google.cloud.billing.v1.ListBillingAccountsResponse.Builder.class); + com.google.cloud.billing.v1.ListBillingAccountsResponse.class, com.google.cloud.billing.v1.ListBillingAccountsResponse.Builder.class); } public static final int BILLING_ACCOUNTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List billingAccounts_; /** - * - * *
    * A list of billing accounts.
    * 
@@ -81,8 +59,6 @@ public java.util.List getBillingAcco return billingAccounts_; } /** - * - * *
    * A list of billing accounts.
    * 
@@ -90,13 +66,11 @@ public java.util.List getBillingAcco * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBillingAccountsOrBuilderList() { return billingAccounts_; } /** - * - * *
    * A list of billing accounts.
    * 
@@ -108,8 +82,6 @@ public int getBillingAccountsCount() { return billingAccounts_.size(); } /** - * - * *
    * A list of billing accounts.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccounts(int index) return billingAccounts_.get(index); } /** - * - * *
    * A list of billing accounts.
    * 
@@ -136,12 +106,9 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -149,7 +116,6 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -158,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -174,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -191,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < billingAccounts_.size(); i++) { output.writeMessage(1, billingAccounts_.get(i)); } @@ -220,7 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < billingAccounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, billingAccounts_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, billingAccounts_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -233,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListBillingAccountsResponse)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListBillingAccountsResponse other = - (com.google.cloud.billing.v1.ListBillingAccountsResponse) obj; + com.google.cloud.billing.v1.ListBillingAccountsResponse other = (com.google.cloud.billing.v1.ListBillingAccountsResponse) obj; - if (!getBillingAccountsList().equals(other.getBillingAccountsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getBillingAccountsList() + .equals(other.getBillingAccountsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,136 +234,131 @@ public int hashCode() { } public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.billing.v1.ListBillingAccountsResponse prototype) { + public static Builder newBuilder(com.google.cloud.billing.v1.ListBillingAccountsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for `ListBillingAccounts`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListBillingAccountsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListBillingAccountsResponse) com.google.cloud.billing.v1.ListBillingAccountsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListBillingAccountsResponse.class, - com.google.cloud.billing.v1.ListBillingAccountsResponse.Builder.class); + com.google.cloud.billing.v1.ListBillingAccountsResponse.class, com.google.cloud.billing.v1.ListBillingAccountsResponse.Builder.class); } // Construct using com.google.cloud.billing.v1.ListBillingAccountsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor; } @java.lang.Override @@ -433,18 +396,14 @@ public com.google.cloud.billing.v1.ListBillingAccountsResponse build() { @java.lang.Override public com.google.cloud.billing.v1.ListBillingAccountsResponse buildPartial() { - com.google.cloud.billing.v1.ListBillingAccountsResponse result = - new com.google.cloud.billing.v1.ListBillingAccountsResponse(this); + com.google.cloud.billing.v1.ListBillingAccountsResponse result = new com.google.cloud.billing.v1.ListBillingAccountsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.billing.v1.ListBillingAccountsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.billing.v1.ListBillingAccountsResponse result) { if (billingAccountsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { billingAccounts_ = java.util.Collections.unmodifiableList(billingAccounts_); @@ -467,39 +426,38 @@ private void buildPartial0(com.google.cloud.billing.v1.ListBillingAccountsRespon public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListBillingAccountsResponse) { - return mergeFrom((com.google.cloud.billing.v1.ListBillingAccountsResponse) other); + return mergeFrom((com.google.cloud.billing.v1.ListBillingAccountsResponse)other); } else { super.mergeFrom(other); return this; @@ -507,8 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListBillingAccountsResponse other) { - if (other == com.google.cloud.billing.v1.ListBillingAccountsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.v1.ListBillingAccountsResponse.getDefaultInstance()) return this; if (billingAccountsBuilder_ == null) { if (!other.billingAccounts_.isEmpty()) { if (billingAccounts_.isEmpty()) { @@ -527,10 +484,9 @@ public Builder mergeFrom(com.google.cloud.billing.v1.ListBillingAccountsResponse billingAccountsBuilder_ = null; billingAccounts_ = other.billingAccounts_; bitField0_ = (bitField0_ & ~0x00000001); - billingAccountsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBillingAccountsFieldBuilder() - : null; + billingAccountsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBillingAccountsFieldBuilder() : null; } else { billingAccountsBuilder_.addAllMessages(other.billingAccounts_); } @@ -567,32 +523,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.billing.v1.BillingAccount m = - input.readMessage( - com.google.cloud.billing.v1.BillingAccount.parser(), extensionRegistry); - if (billingAccountsBuilder_ == null) { - ensureBillingAccountsIsMutable(); - billingAccounts_.add(m); - } else { - billingAccountsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.billing.v1.BillingAccount m = + input.readMessage( + com.google.cloud.billing.v1.BillingAccount.parser(), + extensionRegistry); + if (billingAccountsBuilder_ == null) { + ensureBillingAccountsIsMutable(); + billingAccounts_.add(m); + } else { + billingAccountsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -602,29 +556,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List billingAccounts_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBillingAccountsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - billingAccounts_ = - new java.util.ArrayList(billingAccounts_); + billingAccounts_ = new java.util.ArrayList(billingAccounts_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, - com.google.cloud.billing.v1.BillingAccount.Builder, - com.google.cloud.billing.v1.BillingAccountOrBuilder> - billingAccountsBuilder_; + com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> billingAccountsBuilder_; /** - * - * *
      * A list of billing accounts.
      * 
@@ -639,8 +585,6 @@ public java.util.List getBillingAcco } } /** - * - * *
      * A list of billing accounts.
      * 
@@ -655,8 +599,6 @@ public int getBillingAccountsCount() { } } /** - * - * *
      * A list of billing accounts.
      * 
@@ -671,15 +613,14 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccounts(int index) } } /** - * - * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public Builder setBillingAccounts(int index, com.google.cloud.billing.v1.BillingAccount value) { + public Builder setBillingAccounts( + int index, com.google.cloud.billing.v1.BillingAccount value) { if (billingAccountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,8 +634,6 @@ public Builder setBillingAccounts(int index, com.google.cloud.billing.v1.Billing return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -713,8 +652,6 @@ public Builder setBillingAccounts( return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -735,15 +672,14 @@ public Builder addBillingAccounts(com.google.cloud.billing.v1.BillingAccount val return this; } /** - * - * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public Builder addBillingAccounts(int index, com.google.cloud.billing.v1.BillingAccount value) { + public Builder addBillingAccounts( + int index, com.google.cloud.billing.v1.BillingAccount value) { if (billingAccountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -757,8 +693,6 @@ public Builder addBillingAccounts(int index, com.google.cloud.billing.v1.Billing return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -777,8 +711,6 @@ public Builder addBillingAccounts( return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -797,8 +729,6 @@ public Builder addBillingAccounts( return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -809,7 +739,8 @@ public Builder addAllBillingAccounts( java.lang.Iterable values) { if (billingAccountsBuilder_ == null) { ensureBillingAccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, billingAccounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, billingAccounts_); onChanged(); } else { billingAccountsBuilder_.addAllMessages(values); @@ -817,8 +748,6 @@ public Builder addAllBillingAccounts( return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -836,8 +765,6 @@ public Builder clearBillingAccounts() { return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -855,20 +782,17 @@ public Builder removeBillingAccounts(int index) { return this; } /** - * - * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountsBuilder(int index) { + public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountsBuilder( + int index) { return getBillingAccountsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of billing accounts.
      * 
@@ -878,22 +802,19 @@ public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountsBuil public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrBuilder( int index) { if (billingAccountsBuilder_ == null) { - return billingAccounts_.get(index); - } else { + return billingAccounts_.get(index); } else { return billingAccountsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public java.util.List - getBillingAccountsOrBuilderList() { + public java.util.List + getBillingAccountsOrBuilderList() { if (billingAccountsBuilder_ != null) { return billingAccountsBuilder_.getMessageOrBuilderList(); } else { @@ -901,8 +822,6 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB } } /** - * - * *
      * A list of billing accounts.
      * 
@@ -910,47 +829,38 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ public com.google.cloud.billing.v1.BillingAccount.Builder addBillingAccountsBuilder() { - return getBillingAccountsFieldBuilder() - .addBuilder(com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()); + return getBillingAccountsFieldBuilder().addBuilder( + com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()); } /** - * - * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public com.google.cloud.billing.v1.BillingAccount.Builder addBillingAccountsBuilder(int index) { - return getBillingAccountsFieldBuilder() - .addBuilder(index, com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()); + public com.google.cloud.billing.v1.BillingAccount.Builder addBillingAccountsBuilder( + int index) { + return getBillingAccountsFieldBuilder().addBuilder( + index, com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()); } /** - * - * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public java.util.List - getBillingAccountsBuilderList() { + public java.util.List + getBillingAccountsBuilderList() { return getBillingAccountsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, - com.google.cloud.billing.v1.BillingAccount.Builder, - com.google.cloud.billing.v1.BillingAccountOrBuilder> + com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> getBillingAccountsFieldBuilder() { if (billingAccountsBuilder_ == null) { - billingAccountsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, - com.google.cloud.billing.v1.BillingAccount.Builder, - com.google.cloud.billing.v1.BillingAccountOrBuilder>( + billingAccountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder>( billingAccounts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -962,8 +872,6 @@ public com.google.cloud.billing.v1.BillingAccount.Builder addBillingAccountsBuil private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -971,13 +879,13 @@ public com.google.cloud.billing.v1.BillingAccount.Builder addBillingAccountsBuil
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -986,8 +894,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -995,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1010,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -1019,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -1042,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1052,8 +952,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -1061,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1087,12 +983,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListBillingAccountsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListBillingAccountsResponse) private static final com.google.cloud.billing.v1.ListBillingAccountsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListBillingAccountsResponse(); } @@ -1101,27 +997,27 @@ public static com.google.cloud.billing.v1.ListBillingAccountsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBillingAccountsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBillingAccountsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1136,4 +1032,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.billing.v1.ListBillingAccountsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java similarity index 69% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java index 04d96fe6669d..6315edcd99b1 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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 ListBillingAccountsResponseOrBuilder - extends +public interface ListBillingAccountsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListBillingAccountsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of billing accounts.
    * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - java.util.List getBillingAccountsList(); + java.util.List + getBillingAccountsList(); /** - * - * *
    * A list of billing accounts.
    * 
@@ -44,8 +25,6 @@ public interface ListBillingAccountsResponseOrBuilder */ com.google.cloud.billing.v1.BillingAccount getBillingAccounts(int index); /** - * - * *
    * A list of billing accounts.
    * 
@@ -54,30 +33,25 @@ public interface ListBillingAccountsResponseOrBuilder */ int getBillingAccountsCount(); /** - * - * *
    * A list of billing accounts.
    * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - java.util.List + java.util.List getBillingAccountsOrBuilderList(); /** - * - * *
    * A list of billing accounts.
    * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrBuilder(int index); + com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrBuilder( + int index); /** - * - * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -85,13 +59,10 @@ public interface ListBillingAccountsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -99,8 +70,8 @@ public interface ListBillingAccountsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java similarity index 67% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java index 65d5902f905a..99e9b7ccb929 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.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_billing.proto package com.google.cloud.billing.v1; /** - * - * *
  * Request message for `ListProjectBillingInfo`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListProjectBillingInfoRequest} */ -public final class ListProjectBillingInfoRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProjectBillingInfoRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListProjectBillingInfoRequest) ListProjectBillingInfoRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProjectBillingInfoRequest.newBuilder() to construct. private ListProjectBillingInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProjectBillingInfoRequest() { name_ = ""; pageToken_ = ""; @@ -44,42 +26,35 @@ private ListProjectBillingInfoRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProjectBillingInfoRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListProjectBillingInfoRequest.class, - com.google.cloud.billing.v1.ListProjectBillingInfoRequest.Builder.class); + com.google.cloud.billing.v1.ListProjectBillingInfoRequest.class, com.google.cloud.billing.v1.ListProjectBillingInfoRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the billing account associated with the
    * projects that you want to list. For example,
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -88,33 +63,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the billing account associated with the
    * projects that you want to list. For example,
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,15 +98,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Requested page size. The maximum page size is 100; this is also the
    * default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -142,12 +112,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -155,7 +122,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -164,15 +130,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -180,15 +145,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -197,7 +163,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +174,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -232,7 +198,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -245,17 +212,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListProjectBillingInfoRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListProjectBillingInfoRequest other = - (com.google.cloud.billing.v1.ListProjectBillingInfoRequest) obj; + com.google.cloud.billing.v1.ListProjectBillingInfoRequest other = (com.google.cloud.billing.v1.ListProjectBillingInfoRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -279,136 +248,131 @@ public int hashCode() { } public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.billing.v1.ListProjectBillingInfoRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.v1.ListProjectBillingInfoRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `ListProjectBillingInfo`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListProjectBillingInfoRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListProjectBillingInfoRequest) com.google.cloud.billing.v1.ListProjectBillingInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListProjectBillingInfoRequest.class, - com.google.cloud.billing.v1.ListProjectBillingInfoRequest.Builder.class); + com.google.cloud.billing.v1.ListProjectBillingInfoRequest.class, com.google.cloud.billing.v1.ListProjectBillingInfoRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.ListProjectBillingInfoRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor; } @java.lang.Override @@ -441,11 +405,8 @@ public com.google.cloud.billing.v1.ListProjectBillingInfoRequest build() { @java.lang.Override public com.google.cloud.billing.v1.ListProjectBillingInfoRequest buildPartial() { - com.google.cloud.billing.v1.ListProjectBillingInfoRequest result = - new com.google.cloud.billing.v1.ListProjectBillingInfoRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.v1.ListProjectBillingInfoRequest result = new com.google.cloud.billing.v1.ListProjectBillingInfoRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -467,39 +428,38 @@ private void buildPartial0(com.google.cloud.billing.v1.ListProjectBillingInfoReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListProjectBillingInfoRequest) { - return mergeFrom((com.google.cloud.billing.v1.ListProjectBillingInfoRequest) other); + return mergeFrom((com.google.cloud.billing.v1.ListProjectBillingInfoRequest)other); } else { super.mergeFrom(other); return this; @@ -507,8 +467,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListProjectBillingInfoRequest other) { - if (other == com.google.cloud.billing.v1.ListProjectBillingInfoRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.v1.ListProjectBillingInfoRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -548,31 +507,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -582,29 +537,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the billing account associated with the
      * projects that you want to list. For example,
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -613,25 +563,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the billing account associated with the
      * projects that you want to list. For example,
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -639,43 +586,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the billing account associated with the
      * projects that you want to list. For example,
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the billing account associated with the
      * projects that you want to list. For example,
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -685,25 +621,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the billing account associated with the
      * projects that you want to list. For example,
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -711,17 +641,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Requested page size. The maximum page size is 100; this is also the
      * default.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -729,15 +656,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. The maximum page size is 100; this is also the
      * default.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -749,15 +673,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Requested page size. The maximum page size is 100; this is also the
      * default.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -769,8 +690,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -778,13 +697,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -793,8 +712,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -802,14 +719,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -817,8 +735,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -826,22 +742,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -849,7 +761,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -859,8 +770,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -868,23 +777,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -894,12 +801,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListProjectBillingInfoRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListProjectBillingInfoRequest) private static final com.google.cloud.billing.v1.ListProjectBillingInfoRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListProjectBillingInfoRequest(); } @@ -908,27 +815,27 @@ public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProjectBillingInfoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProjectBillingInfoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -943,4 +850,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.billing.v1.ListProjectBillingInfoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java similarity index 61% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java index d9c193277cdf..381aa730d919 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java @@ -1,78 +1,48 @@ -/* - * 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 ListProjectBillingInfoRequestOrBuilder - extends +public interface ListProjectBillingInfoRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListProjectBillingInfoRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the billing account associated with the
    * projects that you want to list. For example,
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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 associated with the
    * projects that you want to list. For example,
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Requested page size. The maximum page size is 100; this is also the
    * default.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -80,13 +50,10 @@ public interface ListProjectBillingInfoRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -94,8 +61,8 @@ public interface ListProjectBillingInfoRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java similarity index 74% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java index 2197fb89227c..5890bc05a811 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java @@ -1,43 +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_billing.proto package com.google.cloud.billing.v1; /** - * - * *
  * Request message for `ListProjectBillingInfoResponse`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListProjectBillingInfoResponse} */ -public final class ListProjectBillingInfoResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListProjectBillingInfoResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListProjectBillingInfoResponse) ListProjectBillingInfoResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListProjectBillingInfoResponse.newBuilder() to construct. - private ListProjectBillingInfoResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListProjectBillingInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListProjectBillingInfoResponse() { projectBillingInfo_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +26,28 @@ private ListProjectBillingInfoResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProjectBillingInfoResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListProjectBillingInfoResponse.class, - com.google.cloud.billing.v1.ListProjectBillingInfoResponse.Builder.class); + com.google.cloud.billing.v1.ListProjectBillingInfoResponse.class, com.google.cloud.billing.v1.ListProjectBillingInfoResponse.Builder.class); } public static final int PROJECT_BILLING_INFO_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List projectBillingInfo_; /** - * - * *
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -79,13 +56,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
    */
   @java.lang.Override
-  public java.util.List
-      getProjectBillingInfoList() {
+  public java.util.List getProjectBillingInfoList() {
     return projectBillingInfo_;
   }
   /**
-   *
-   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -94,13 +68,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getProjectBillingInfoOrBuilderList() {
     return projectBillingInfo_;
   }
   /**
-   *
-   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -113,8 +85,6 @@ public int getProjectBillingInfoCount() {
     return projectBillingInfo_.size();
   }
   /**
-   *
-   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -127,8 +97,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(int
     return projectBillingInfo_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -143,12 +111,9 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
-   *
-   *
    * 
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -156,7 +121,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -165,15 +129,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -181,15 +144,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -198,7 +162,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < projectBillingInfo_.size(); i++) { output.writeMessage(1, projectBillingInfo_.get(i)); } @@ -227,8 +191,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < projectBillingInfo_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, projectBillingInfo_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, projectBillingInfo_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -241,16 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListProjectBillingInfoResponse)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListProjectBillingInfoResponse other = - (com.google.cloud.billing.v1.ListProjectBillingInfoResponse) obj; + com.google.cloud.billing.v1.ListProjectBillingInfoResponse other = (com.google.cloud.billing.v1.ListProjectBillingInfoResponse) obj; - if (!getProjectBillingInfoList().equals(other.getProjectBillingInfoList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getProjectBillingInfoList() + .equals(other.getProjectBillingInfoList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -274,136 +239,131 @@ public int hashCode() { } public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.billing.v1.ListProjectBillingInfoResponse prototype) { + public static Builder newBuilder(com.google.cloud.billing.v1.ListProjectBillingInfoResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `ListProjectBillingInfoResponse`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListProjectBillingInfoResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListProjectBillingInfoResponse) com.google.cloud.billing.v1.ListProjectBillingInfoResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListProjectBillingInfoResponse.class, - com.google.cloud.billing.v1.ListProjectBillingInfoResponse.Builder.class); + com.google.cloud.billing.v1.ListProjectBillingInfoResponse.class, com.google.cloud.billing.v1.ListProjectBillingInfoResponse.Builder.class); } // Construct using com.google.cloud.billing.v1.ListProjectBillingInfoResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor; } @java.lang.Override @@ -441,18 +401,14 @@ public com.google.cloud.billing.v1.ListProjectBillingInfoResponse build() { @java.lang.Override public com.google.cloud.billing.v1.ListProjectBillingInfoResponse buildPartial() { - com.google.cloud.billing.v1.ListProjectBillingInfoResponse result = - new com.google.cloud.billing.v1.ListProjectBillingInfoResponse(this); + com.google.cloud.billing.v1.ListProjectBillingInfoResponse result = new com.google.cloud.billing.v1.ListProjectBillingInfoResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.billing.v1.ListProjectBillingInfoResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.billing.v1.ListProjectBillingInfoResponse result) { if (projectBillingInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { projectBillingInfo_ = java.util.Collections.unmodifiableList(projectBillingInfo_); @@ -475,39 +431,38 @@ private void buildPartial0(com.google.cloud.billing.v1.ListProjectBillingInfoRes public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListProjectBillingInfoResponse) { - return mergeFrom((com.google.cloud.billing.v1.ListProjectBillingInfoResponse) other); + return mergeFrom((com.google.cloud.billing.v1.ListProjectBillingInfoResponse)other); } else { super.mergeFrom(other); return this; @@ -515,8 +470,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListProjectBillingInfoResponse other) { - if (other == com.google.cloud.billing.v1.ListProjectBillingInfoResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.v1.ListProjectBillingInfoResponse.getDefaultInstance()) return this; if (projectBillingInfoBuilder_ == null) { if (!other.projectBillingInfo_.isEmpty()) { if (projectBillingInfo_.isEmpty()) { @@ -535,10 +489,9 @@ public Builder mergeFrom(com.google.cloud.billing.v1.ListProjectBillingInfoRespo projectBillingInfoBuilder_ = null; projectBillingInfo_ = other.projectBillingInfo_; bitField0_ = (bitField0_ & ~0x00000001); - projectBillingInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProjectBillingInfoFieldBuilder() - : null; + projectBillingInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProjectBillingInfoFieldBuilder() : null; } else { projectBillingInfoBuilder_.addAllMessages(other.projectBillingInfo_); } @@ -575,32 +528,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.billing.v1.ProjectBillingInfo m = - input.readMessage( - com.google.cloud.billing.v1.ProjectBillingInfo.parser(), extensionRegistry); - if (projectBillingInfoBuilder_ == null) { - ensureProjectBillingInfoIsMutable(); - projectBillingInfo_.add(m); - } else { - projectBillingInfoBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.billing.v1.ProjectBillingInfo m = + input.readMessage( + com.google.cloud.billing.v1.ProjectBillingInfo.parser(), + extensionRegistry); + if (projectBillingInfoBuilder_ == null) { + ensureProjectBillingInfoIsMutable(); + projectBillingInfo_.add(m); + } else { + projectBillingInfoBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -610,30 +561,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List projectBillingInfo_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureProjectBillingInfoIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - projectBillingInfo_ = - new java.util.ArrayList( - projectBillingInfo_); + projectBillingInfo_ = new java.util.ArrayList(projectBillingInfo_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.ProjectBillingInfo, - com.google.cloud.billing.v1.ProjectBillingInfo.Builder, - com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> - projectBillingInfoBuilder_; + com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> projectBillingInfoBuilder_; /** - * - * *
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -641,8 +583,7 @@ private void ensureProjectBillingInfoIsMutable() {
      *
      * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
      */
-    public java.util.List
-        getProjectBillingInfoList() {
+    public java.util.List getProjectBillingInfoList() {
       if (projectBillingInfoBuilder_ == null) {
         return java.util.Collections.unmodifiableList(projectBillingInfo_);
       } else {
@@ -650,8 +591,6 @@ private void ensureProjectBillingInfoIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -667,8 +606,6 @@ public int getProjectBillingInfoCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -684,8 +621,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(int
       }
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -708,8 +643,6 @@ public Builder setProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -729,8 +662,6 @@ public Builder setProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -752,8 +683,6 @@ public Builder addProjectBillingInfo(com.google.cloud.billing.v1.ProjectBillingI
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -776,8 +705,6 @@ public Builder addProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -797,8 +724,6 @@ public Builder addProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -818,8 +743,6 @@ public Builder addProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -831,7 +754,8 @@ public Builder addAllProjectBillingInfo(
         java.lang.Iterable values) {
       if (projectBillingInfoBuilder_ == null) {
         ensureProjectBillingInfoIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectBillingInfo_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, projectBillingInfo_);
         onChanged();
       } else {
         projectBillingInfoBuilder_.addAllMessages(values);
@@ -839,8 +763,6 @@ public Builder addAllProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -859,8 +781,6 @@ public Builder clearProjectBillingInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -879,8 +799,6 @@ public Builder removeProjectBillingInfo(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -893,8 +811,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder getProjectBillingI
       return getProjectBillingInfoFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -905,14 +821,11 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder getProjectBillingI
     public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder(
         int index) {
       if (projectBillingInfoBuilder_ == null) {
-        return projectBillingInfo_.get(index);
-      } else {
+        return projectBillingInfo_.get(index);  } else {
         return projectBillingInfoBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -920,8 +833,8 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
      *
      * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
      */
-    public java.util.List
-        getProjectBillingInfoOrBuilderList() {
+    public java.util.List 
+         getProjectBillingInfoOrBuilderList() {
       if (projectBillingInfoBuilder_ != null) {
         return projectBillingInfoBuilder_.getMessageOrBuilderList();
       } else {
@@ -929,8 +842,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
       }
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -939,12 +850,10 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
      * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
      */
     public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingInfoBuilder() {
-      return getProjectBillingInfoFieldBuilder()
-          .addBuilder(com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance());
+      return getProjectBillingInfoFieldBuilder().addBuilder(
+          com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -954,12 +863,10 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingI
      */
     public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingInfoBuilder(
         int index) {
-      return getProjectBillingInfoFieldBuilder()
-          .addBuilder(index, com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance());
+      return getProjectBillingInfoFieldBuilder().addBuilder(
+          index, com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -967,22 +874,16 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingI
      *
      * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
      */
-    public java.util.List
-        getProjectBillingInfoBuilderList() {
+    public java.util.List 
+         getProjectBillingInfoBuilderList() {
       return getProjectBillingInfoFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.billing.v1.ProjectBillingInfo,
-            com.google.cloud.billing.v1.ProjectBillingInfo.Builder,
-            com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>
+        com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> 
         getProjectBillingInfoFieldBuilder() {
       if (projectBillingInfoBuilder_ == null) {
-        projectBillingInfoBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.billing.v1.ProjectBillingInfo,
-                com.google.cloud.billing.v1.ProjectBillingInfo.Builder,
-                com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>(
+        projectBillingInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>(
                 projectBillingInfo_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -994,8 +895,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingI
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -1003,13 +902,13 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingI
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1018,8 +917,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -1027,14 +924,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1042,8 +940,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -1051,22 +947,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -1074,7 +966,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1084,8 +975,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -1093,23 +982,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1119,12 +1006,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListProjectBillingInfoResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListProjectBillingInfoResponse) private static final com.google.cloud.billing.v1.ListProjectBillingInfoResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListProjectBillingInfoResponse(); } @@ -1133,27 +1020,27 @@ public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProjectBillingInfoResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProjectBillingInfoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1168,4 +1055,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.billing.v1.ListProjectBillingInfoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java similarity index 75% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java index 3c1ec5c7b538..76816d2b55dd 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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 ListProjectBillingInfoResponseOrBuilder - extends +public interface ListProjectBillingInfoResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListProjectBillingInfoResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -33,10 +15,9 @@ public interface ListProjectBillingInfoResponseOrBuilder
    *
    * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
    */
-  java.util.List getProjectBillingInfoList();
+  java.util.List 
+      getProjectBillingInfoList();
   /**
-   *
-   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -46,8 +27,6 @@ public interface ListProjectBillingInfoResponseOrBuilder
    */
   com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(int index);
   /**
-   *
-   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -57,8 +36,6 @@ public interface ListProjectBillingInfoResponseOrBuilder
    */
   int getProjectBillingInfoCount();
   /**
-   *
-   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -66,11 +43,9 @@ public interface ListProjectBillingInfoResponseOrBuilder
    *
    * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
    */
-  java.util.List
+  java.util.List 
       getProjectBillingInfoOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -78,11 +53,10 @@ public interface ListProjectBillingInfoResponseOrBuilder
    *
    * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
    */
-  com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder(int index);
+  com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -90,13 +64,10 @@ public interface ListProjectBillingInfoResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -104,8 +75,8 @@ public interface ListProjectBillingInfoResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java similarity index 68% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java index 8b8c2e613d80..1539edc1e846 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java @@ -1,78 +1,56 @@ -/* - * 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; /** - * - * *
  * Request message for `ListServices`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListServicesRequest} */ -public final class ListServicesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListServicesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListServicesRequest) ListServicesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListServicesRequest.newBuilder() to construct. private ListServicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListServicesRequest() { pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListServicesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListServicesRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListServicesRequest.class, - com.google.cloud.billing.v1.ListServicesRequest.Builder.class); + com.google.cloud.billing.v1.ListServicesRequest.class, com.google.cloud.billing.v1.ListServicesRequest.Builder.class); } public static final int PAGE_SIZE_FIELD_NUMBER = 1; private int pageSize_ = 0; /** - * - * *
    * Requested page size. Defaults to 5000.
    * 
* * int32 page_size = 1; - * * @return The pageSize. */ @java.lang.Override @@ -81,12 +59,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListServices`
@@ -94,7 +69,6 @@ public int getPageSize() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -103,15 +77,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListServices`
@@ -119,15 +92,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -136,7 +110,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -165,7 +139,8 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); @@ -178,16 +153,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListServicesRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListServicesRequest other = - (com.google.cloud.billing.v1.ListServicesRequest) obj; + com.google.cloud.billing.v1.ListServicesRequest other = (com.google.cloud.billing.v1.ListServicesRequest) obj; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -208,136 +184,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.ListServicesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListServicesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListServicesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListServicesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListServicesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListServicesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.ListServicesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `ListServices`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListServicesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListServicesRequest) com.google.cloud.billing.v1.ListServicesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListServicesRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListServicesRequest.class, - com.google.cloud.billing.v1.ListServicesRequest.Builder.class); + com.google.cloud.billing.v1.ListServicesRequest.class, com.google.cloud.billing.v1.ListServicesRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.ListServicesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -348,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor; } @java.lang.Override @@ -369,11 +341,8 @@ public com.google.cloud.billing.v1.ListServicesRequest build() { @java.lang.Override public com.google.cloud.billing.v1.ListServicesRequest buildPartial() { - com.google.cloud.billing.v1.ListServicesRequest result = - new com.google.cloud.billing.v1.ListServicesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.v1.ListServicesRequest result = new com.google.cloud.billing.v1.ListServicesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -392,39 +361,38 @@ private void buildPartial0(com.google.cloud.billing.v1.ListServicesRequest resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListServicesRequest) { - return mergeFrom((com.google.cloud.billing.v1.ListServicesRequest) other); + return mergeFrom((com.google.cloud.billing.v1.ListServicesRequest)other); } else { super.mergeFrom(other); return this; @@ -432,8 +400,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListServicesRequest other) { - if (other == com.google.cloud.billing.v1.ListServicesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.v1.ListServicesRequest.getDefaultInstance()) return this; if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } @@ -468,25 +435,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -496,19 +460,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 1; - * * @return The pageSize. */ @java.lang.Override @@ -516,14 +476,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 1; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -535,14 +492,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 1; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -554,8 +508,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListServices`
@@ -563,13 +515,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -578,8 +530,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListServices`
@@ -587,14 +537,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -602,8 +553,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListServices`
@@ -611,22 +560,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListServices`
@@ -634,7 +579,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -644,8 +588,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListServices`
@@ -653,23 +595,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -679,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListServicesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListServicesRequest) private static final com.google.cloud.billing.v1.ListServicesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListServicesRequest(); } @@ -693,27 +633,27 @@ public static com.google.cloud.billing.v1.ListServicesRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServicesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServicesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -728,4 +668,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListServicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java similarity index 60% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java index 53d723a434cc..021861745f5d 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java @@ -1,44 +1,23 @@ -/* - * 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 interface ListServicesRequestOrBuilder - extends +public interface ListServicesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListServicesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Requested page size. Defaults to 5000.
    * 
* * int32 page_size = 1; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListServices`
@@ -46,13 +25,10 @@ public interface ListServicesRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListServices`
@@ -60,8 +36,8 @@ public interface ListServicesRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java similarity index 71% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java index c9bc8e9674ea..c2d7c1a2905e 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.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; /** - * - * *
  * Response message for `ListServices`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListServicesResponse} */ -public final class ListServicesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListServicesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListServicesResponse) ListServicesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListServicesResponse.newBuilder() to construct. private ListServicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListServicesResponse() { services_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListServicesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListServicesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListServicesResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListServicesResponse.class, - com.google.cloud.billing.v1.ListServicesResponse.Builder.class); + com.google.cloud.billing.v1.ListServicesResponse.class, com.google.cloud.billing.v1.ListServicesResponse.Builder.class); } public static final int SERVICES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List services_; /** - * - * *
    * A list of services.
    * 
@@ -81,8 +59,6 @@ public java.util.List getServicesList() { return services_; } /** - * - * *
    * A list of services.
    * 
@@ -90,13 +66,11 @@ public java.util.List getServicesList() { * repeated .google.cloud.billing.v1.Service services = 1; */ @java.lang.Override - public java.util.List + public java.util.List getServicesOrBuilderList() { return services_; } /** - * - * *
    * A list of services.
    * 
@@ -108,8 +82,6 @@ public int getServicesCount() { return services_.size(); } /** - * - * *
    * A list of services.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.billing.v1.Service getServices(int index) { return services_.get(index); } /** - * - * *
    * A list of services.
    * 
@@ -130,17 +100,15 @@ public com.google.cloud.billing.v1.Service getServices(int index) { * repeated .google.cloud.billing.v1.Service services = 1; */ @java.lang.Override - public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int index) { + public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder( + int index) { return services_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListServices` again with the `page_token` field set to this
@@ -148,7 +116,6 @@ public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int ind
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListServices` again with the `page_token` field set to this
@@ -173,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -190,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < services_.size(); i++) { output.writeMessage(1, services_.get(i)); } @@ -219,7 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < services_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, services_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, services_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -232,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListServicesResponse)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListServicesResponse other = - (com.google.cloud.billing.v1.ListServicesResponse) obj; + com.google.cloud.billing.v1.ListServicesResponse other = (com.google.cloud.billing.v1.ListServicesResponse) obj; - if (!getServicesList().equals(other.getServicesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getServicesList() + .equals(other.getServicesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,136 +233,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.ListServicesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListServicesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListServicesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListServicesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListServicesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListServicesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.ListServicesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for `ListServices`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListServicesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListServicesResponse) com.google.cloud.billing.v1.ListServicesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListServicesResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListServicesResponse.class, - com.google.cloud.billing.v1.ListServicesResponse.Builder.class); + com.google.cloud.billing.v1.ListServicesResponse.class, com.google.cloud.billing.v1.ListServicesResponse.Builder.class); } // Construct using com.google.cloud.billing.v1.ListServicesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor; } @java.lang.Override @@ -431,18 +396,14 @@ public com.google.cloud.billing.v1.ListServicesResponse build() { @java.lang.Override public com.google.cloud.billing.v1.ListServicesResponse buildPartial() { - com.google.cloud.billing.v1.ListServicesResponse result = - new com.google.cloud.billing.v1.ListServicesResponse(this); + com.google.cloud.billing.v1.ListServicesResponse result = new com.google.cloud.billing.v1.ListServicesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.billing.v1.ListServicesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.billing.v1.ListServicesResponse result) { if (servicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { services_ = java.util.Collections.unmodifiableList(services_); @@ -465,39 +426,38 @@ private void buildPartial0(com.google.cloud.billing.v1.ListServicesResponse resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListServicesResponse) { - return mergeFrom((com.google.cloud.billing.v1.ListServicesResponse) other); + return mergeFrom((com.google.cloud.billing.v1.ListServicesResponse)other); } else { super.mergeFrom(other); return this; @@ -505,8 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListServicesResponse other) { - if (other == com.google.cloud.billing.v1.ListServicesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.v1.ListServicesResponse.getDefaultInstance()) return this; if (servicesBuilder_ == null) { if (!other.services_.isEmpty()) { if (services_.isEmpty()) { @@ -525,10 +484,9 @@ public Builder mergeFrom(com.google.cloud.billing.v1.ListServicesResponse other) servicesBuilder_ = null; services_ = other.services_; bitField0_ = (bitField0_ & ~0x00000001); - servicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getServicesFieldBuilder() - : null; + servicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getServicesFieldBuilder() : null; } else { servicesBuilder_.addAllMessages(other.services_); } @@ -565,32 +523,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.billing.v1.Service m = - input.readMessage( - com.google.cloud.billing.v1.Service.parser(), extensionRegistry); - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.add(m); - } else { - servicesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.billing.v1.Service m = + input.readMessage( + com.google.cloud.billing.v1.Service.parser(), + extensionRegistry); + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + services_.add(m); + } else { + servicesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -600,28 +556,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List services_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureServicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { services_ = new java.util.ArrayList(services_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Service, - com.google.cloud.billing.v1.Service.Builder, - com.google.cloud.billing.v1.ServiceOrBuilder> - servicesBuilder_; + com.google.cloud.billing.v1.Service, com.google.cloud.billing.v1.Service.Builder, com.google.cloud.billing.v1.ServiceOrBuilder> servicesBuilder_; /** - * - * *
      * A list of services.
      * 
@@ -636,8 +585,6 @@ public java.util.List getServicesList() { } } /** - * - * *
      * A list of services.
      * 
@@ -652,8 +599,6 @@ public int getServicesCount() { } } /** - * - * *
      * A list of services.
      * 
@@ -668,15 +613,14 @@ public com.google.cloud.billing.v1.Service getServices(int index) { } } /** - * - * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public Builder setServices(int index, com.google.cloud.billing.v1.Service value) { + public Builder setServices( + int index, com.google.cloud.billing.v1.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -690,8 +634,6 @@ public Builder setServices(int index, com.google.cloud.billing.v1.Service value) return this; } /** - * - * *
      * A list of services.
      * 
@@ -710,8 +652,6 @@ public Builder setServices( return this; } /** - * - * *
      * A list of services.
      * 
@@ -732,15 +672,14 @@ public Builder addServices(com.google.cloud.billing.v1.Service value) { return this; } /** - * - * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public Builder addServices(int index, com.google.cloud.billing.v1.Service value) { + public Builder addServices( + int index, com.google.cloud.billing.v1.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -754,15 +693,14 @@ public Builder addServices(int index, com.google.cloud.billing.v1.Service value) return this; } /** - * - * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public Builder addServices(com.google.cloud.billing.v1.Service.Builder builderForValue) { + public Builder addServices( + com.google.cloud.billing.v1.Service.Builder builderForValue) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); services_.add(builderForValue.build()); @@ -773,8 +711,6 @@ public Builder addServices(com.google.cloud.billing.v1.Service.Builder builderFo return this; } /** - * - * *
      * A list of services.
      * 
@@ -793,8 +729,6 @@ public Builder addServices( return this; } /** - * - * *
      * A list of services.
      * 
@@ -805,7 +739,8 @@ public Builder addAllServices( java.lang.Iterable values) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, services_); onChanged(); } else { servicesBuilder_.addAllMessages(values); @@ -813,8 +748,6 @@ public Builder addAllServices( return this; } /** - * - * *
      * A list of services.
      * 
@@ -832,8 +765,6 @@ public Builder clearServices() { return this; } /** - * - * *
      * A list of services.
      * 
@@ -851,44 +782,39 @@ public Builder removeServices(int index) { return this; } /** - * - * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public com.google.cloud.billing.v1.Service.Builder getServicesBuilder(int index) { + public com.google.cloud.billing.v1.Service.Builder getServicesBuilder( + int index) { return getServicesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int index) { + public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder( + int index) { if (servicesBuilder_ == null) { - return services_.get(index); - } else { + return services_.get(index); } else { return servicesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public java.util.List - getServicesOrBuilderList() { + public java.util.List + getServicesOrBuilderList() { if (servicesBuilder_ != null) { return servicesBuilder_.getMessageOrBuilderList(); } else { @@ -896,8 +822,6 @@ public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int ind } } /** - * - * *
      * A list of services.
      * 
@@ -905,47 +829,42 @@ public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int ind * repeated .google.cloud.billing.v1.Service services = 1; */ public com.google.cloud.billing.v1.Service.Builder addServicesBuilder() { - return getServicesFieldBuilder() - .addBuilder(com.google.cloud.billing.v1.Service.getDefaultInstance()); + return getServicesFieldBuilder().addBuilder( + com.google.cloud.billing.v1.Service.getDefaultInstance()); } /** - * - * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public com.google.cloud.billing.v1.Service.Builder addServicesBuilder(int index) { - return getServicesFieldBuilder() - .addBuilder(index, com.google.cloud.billing.v1.Service.getDefaultInstance()); + public com.google.cloud.billing.v1.Service.Builder addServicesBuilder( + int index) { + return getServicesFieldBuilder().addBuilder( + index, com.google.cloud.billing.v1.Service.getDefaultInstance()); } /** - * - * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public java.util.List getServicesBuilderList() { + public java.util.List + getServicesBuilderList() { return getServicesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Service, - com.google.cloud.billing.v1.Service.Builder, - com.google.cloud.billing.v1.ServiceOrBuilder> + com.google.cloud.billing.v1.Service, com.google.cloud.billing.v1.Service.Builder, com.google.cloud.billing.v1.ServiceOrBuilder> getServicesFieldBuilder() { if (servicesBuilder_ == null) { - servicesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Service, - com.google.cloud.billing.v1.Service.Builder, - com.google.cloud.billing.v1.ServiceOrBuilder>( - services_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.v1.Service, com.google.cloud.billing.v1.Service.Builder, com.google.cloud.billing.v1.ServiceOrBuilder>( + services_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); services_ = null; } return servicesBuilder_; @@ -953,8 +872,6 @@ public java.util.List getServicesBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListServices` again with the `page_token` field set to this
@@ -962,13 +879,13 @@ public java.util.List getServicesBu
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -977,8 +894,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListServices` again with the `page_token` field set to this
@@ -986,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1001,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListServices` again with the `page_token` field set to this
@@ -1010,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListServices` again with the `page_token` field set to this
@@ -1033,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1043,8 +952,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListServices` again with the `page_token` field set to this
@@ -1052,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1078,12 +983,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListServicesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListServicesResponse) private static final com.google.cloud.billing.v1.ListServicesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListServicesResponse(); } @@ -1092,27 +997,27 @@ public static com.google.cloud.billing.v1.ListServicesResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServicesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1127,4 +1032,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListServicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java similarity index 67% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java index cb23fc10ebdd..72fed9545291 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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 interface ListServicesResponseOrBuilder - extends +public interface ListServicesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListServicesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of services.
    * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - java.util.List getServicesList(); + java.util.List + getServicesList(); /** - * - * *
    * A list of services.
    * 
@@ -44,8 +25,6 @@ public interface ListServicesResponseOrBuilder */ com.google.cloud.billing.v1.Service getServices(int index); /** - * - * *
    * A list of services.
    * 
@@ -54,29 +33,25 @@ public interface ListServicesResponseOrBuilder */ int getServicesCount(); /** - * - * *
    * A list of services.
    * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - java.util.List getServicesOrBuilderList(); + java.util.List + getServicesOrBuilderList(); /** - * - * *
    * A list of services.
    * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int index); + com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder( + int index); /** - * - * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListServices` again with the `page_token` field set to this
@@ -84,13 +59,10 @@ public interface ListServicesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListServices` again with the `page_token` field set to this
@@ -98,8 +70,8 @@ public interface ListServicesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java similarity index 75% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java index 8412391181da..24ff208c6352 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.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; /** - * - * *
  * Request message for `ListSkus`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListSkusRequest} */ -public final class ListSkusRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSkusRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListSkusRequest) ListSkusRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSkusRequest.newBuilder() to construct. private ListSkusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSkusRequest() { parent_ = ""; currencyCode_ = ""; @@ -45,41 +27,34 @@ private ListSkusRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSkusRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListSkusRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListSkusRequest.class, - com.google.cloud.billing.v1.ListSkusRequest.Builder.class); + com.google.cloud.billing.v1.ListSkusRequest.class, com.google.cloud.billing.v1.ListSkusRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The name of the service.
    * Example: "services/DA34-426B-A397"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -88,32 +63,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the service.
    * Example: "services/DA34-426B-A397"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -124,8 +97,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -136,7 +107,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -144,8 +114,6 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -156,7 +124,6 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ @java.lang.Override @@ -164,8 +131,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -185,8 +150,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
   public static final int END_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Timestamp endTime_;
   /**
-   *
-   *
    * 
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -197,7 +160,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -205,8 +167,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -217,7 +177,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ @java.lang.Override @@ -225,8 +184,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -244,12 +201,9 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   public static final int CURRENCY_CODE_FIELD_NUMBER = 4;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object currencyCode_ = "";
   /**
-   *
-   *
    * 
    * The ISO 4217 currency code for the pricing info in the response proto.
    * Will use the conversion rate as of start_time.
@@ -257,7 +211,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * string currency_code = 4; - * * @return The currencyCode. */ @java.lang.Override @@ -266,15 +219,14 @@ public java.lang.String getCurrencyCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** - * - * *
    * The ISO 4217 currency code for the pricing info in the response proto.
    * Will use the conversion rate as of start_time.
@@ -282,15 +234,16 @@ public java.lang.String getCurrencyCode() {
    * 
* * string currency_code = 4; - * * @return The bytes for currencyCode. */ @java.lang.Override - public com.google.protobuf.ByteString getCurrencyCodeBytes() { + public com.google.protobuf.ByteString + getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -301,14 +254,11 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 5; private int pageSize_ = 0; /** - * - * *
    * Requested page size. Defaults to 5000.
    * 
* * int32 page_size = 5; - * * @return The pageSize. */ @java.lang.Override @@ -317,12 +267,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListSkus`
@@ -330,7 +277,6 @@ public int getPageSize() {
    * 
* * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -339,15 +285,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListSkus`
@@ -355,15 +300,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -372,7 +318,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -384,7 +329,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -416,16 +362,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currencyCode_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -438,26 +387,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListSkusRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListSkusRequest other = - (com.google.cloud.billing.v1.ListSkusRequest) obj; + com.google.cloud.billing.v1.ListSkusRequest other = (com.google.cloud.billing.v1.ListSkusRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getCurrencyCode() + .equals(other.getCurrencyCode())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -490,136 +444,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.ListSkusRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListSkusRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListSkusRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListSkusRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListSkusRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListSkusRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.ListSkusRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `ListSkus`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListSkusRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListSkusRequest) com.google.cloud.billing.v1.ListSkusRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListSkusRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListSkusRequest.class, - com.google.cloud.billing.v1.ListSkusRequest.Builder.class); + com.google.cloud.billing.v1.ListSkusRequest.class, com.google.cloud.billing.v1.ListSkusRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.ListSkusRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -642,9 +592,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor; } @java.lang.Override @@ -663,11 +613,8 @@ public com.google.cloud.billing.v1.ListSkusRequest build() { @java.lang.Override public com.google.cloud.billing.v1.ListSkusRequest buildPartial() { - com.google.cloud.billing.v1.ListSkusRequest result = - new com.google.cloud.billing.v1.ListSkusRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.v1.ListSkusRequest result = new com.google.cloud.billing.v1.ListSkusRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -678,10 +625,14 @@ private void buildPartial0(com.google.cloud.billing.v1.ListSkusRequest result) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.currencyCode_ = currencyCode_; @@ -698,39 +649,38 @@ private void buildPartial0(com.google.cloud.billing.v1.ListSkusRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListSkusRequest) { - return mergeFrom((com.google.cloud.billing.v1.ListSkusRequest) other); + return mergeFrom((com.google.cloud.billing.v1.ListSkusRequest)other); } else { super.mergeFrom(other); return this; @@ -789,49 +739,46 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - currencyCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + currencyCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -841,28 +788,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the service.
      * Example: "services/DA34-426B-A397"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -871,24 +813,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the service.
      * Example: "services/DA34-426B-A397"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -896,41 +835,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the service.
      * Example: "services/DA34-426B-A397"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the service.
      * Example: "services/DA34-426B-A397"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -940,24 +868,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The name of the service.
      * Example: "services/DA34-426B-A397"
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -967,13 +889,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -984,15 +901,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1003,7 +917,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1014,8 +927,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1041,8 +952,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1054,7 +963,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp start_time = 2;
      */
-    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setStartTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
       } else {
@@ -1065,8 +975,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1080,9 +988,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu
      */
     public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       if (startTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && startTime_ != null
-            && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          startTime_ != null &&
+          startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getStartTimeBuilder().mergeFrom(value);
         } else {
           startTime_ = value;
@@ -1095,8 +1003,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1119,8 +1025,6 @@ public Builder clearStartTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1138,8 +1042,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1155,12 +1057,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+        return startTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1173,17 +1074,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Timestamp start_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getStartTime(), getParentForChildren(), isClean());
+        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getStartTime(),
+                getParentForChildren(),
+                isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
@@ -1191,13 +1089,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp endTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        endTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_;
     /**
-     *
-     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1208,15 +1101,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1227,7 +1117,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1238,8 +1127,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1265,8 +1152,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1278,7 +1163,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1289,8 +1175,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1304,9 +1188,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1319,8 +1203,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1343,8 +1225,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1362,8 +1242,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1379,12 +1257,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1397,17 +1274,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
@@ -1415,8 +1289,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
 
     private java.lang.Object currencyCode_ = "";
     /**
-     *
-     *
      * 
      * The ISO 4217 currency code for the pricing info in the response proto.
      * Will use the conversion rate as of start_time.
@@ -1424,13 +1296,13 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * 
* * string currency_code = 4; - * * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; @@ -1439,8 +1311,6 @@ public java.lang.String getCurrencyCode() { } } /** - * - * *
      * The ISO 4217 currency code for the pricing info in the response proto.
      * Will use the conversion rate as of start_time.
@@ -1448,14 +1318,15 @@ public java.lang.String getCurrencyCode() {
      * 
* * string currency_code = 4; - * * @return The bytes for currencyCode. */ - public com.google.protobuf.ByteString getCurrencyCodeBytes() { + public com.google.protobuf.ByteString + getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -1463,8 +1334,6 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { } } /** - * - * *
      * The ISO 4217 currency code for the pricing info in the response proto.
      * Will use the conversion rate as of start_time.
@@ -1472,22 +1341,18 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() {
      * 
* * string currency_code = 4; - * * @param value The currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCurrencyCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } currencyCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The ISO 4217 currency code for the pricing info in the response proto.
      * Will use the conversion rate as of start_time.
@@ -1495,7 +1360,6 @@ public Builder setCurrencyCode(java.lang.String value) {
      * 
* * string currency_code = 4; - * * @return This builder for chaining. */ public Builder clearCurrencyCode() { @@ -1505,8 +1369,6 @@ public Builder clearCurrencyCode() { return this; } /** - * - * *
      * The ISO 4217 currency code for the pricing info in the response proto.
      * Will use the conversion rate as of start_time.
@@ -1514,14 +1376,12 @@ public Builder clearCurrencyCode() {
      * 
* * string currency_code = 4; - * * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCurrencyCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currencyCode_ = value; bitField0_ |= 0x00000008; @@ -1529,16 +1389,13 @@ public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 5; - * * @return The pageSize. */ @java.lang.Override @@ -1546,14 +1403,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 5; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1565,14 +1419,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 5; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1584,8 +1435,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListSkus`
@@ -1593,13 +1442,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1608,8 +1457,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListSkus`
@@ -1617,14 +1464,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1632,8 +1480,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListSkus`
@@ -1641,22 +1487,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 6; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListSkus`
@@ -1664,7 +1506,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 6; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1674,8 +1515,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListSkus`
@@ -1683,23 +1522,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1709,12 +1546,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListSkusRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListSkusRequest) private static final com.google.cloud.billing.v1.ListSkusRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListSkusRequest(); } @@ -1723,27 +1560,27 @@ public static com.google.cloud.billing.v1.ListSkusRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSkusRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSkusRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1758,4 +1595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListSkusRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java similarity index 80% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java index c166f8a50edd..e9fffd88b5a7 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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 interface ListSkusRequestOrBuilder - extends +public interface ListSkusRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListSkusRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the service.
    * Example: "services/DA34-426B-A397"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the service.
    * Example: "services/DA34-426B-A397"
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -67,13 +40,10 @@ public interface ListSkusRequestOrBuilder
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -84,13 +54,10 @@ public interface ListSkusRequestOrBuilder
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -105,8 +72,6 @@ public interface ListSkusRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -117,13 +82,10 @@ public interface ListSkusRequestOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -134,13 +96,10 @@ public interface ListSkusRequestOrBuilder
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -155,8 +114,6 @@ public interface ListSkusRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The ISO 4217 currency code for the pricing info in the response proto.
    * Will use the conversion rate as of start_time.
@@ -164,13 +121,10 @@ public interface ListSkusRequestOrBuilder
    * 
* * string currency_code = 4; - * * @return The currencyCode. */ java.lang.String getCurrencyCode(); /** - * - * *
    * The ISO 4217 currency code for the pricing info in the response proto.
    * Will use the conversion rate as of start_time.
@@ -178,27 +132,22 @@ public interface ListSkusRequestOrBuilder
    * 
* * string currency_code = 4; - * * @return The bytes for currencyCode. */ - com.google.protobuf.ByteString getCurrencyCodeBytes(); + com.google.protobuf.ByteString + getCurrencyCodeBytes(); /** - * - * *
    * Requested page size. Defaults to 5000.
    * 
* * int32 page_size = 5; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListSkus`
@@ -206,13 +155,10 @@ public interface ListSkusRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListSkus`
@@ -220,8 +166,8 @@ public interface ListSkusRequestOrBuilder
    * 
* * string page_token = 6; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java similarity index 72% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java index 96ffb1a1fdc7..80c7b4f09c22 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.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; /** - * - * *
  * Response message for `ListSkus`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListSkusResponse} */ -public final class ListSkusResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListSkusResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListSkusResponse) ListSkusResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListSkusResponse.newBuilder() to construct. private ListSkusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListSkusResponse() { skus_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,32 +26,28 @@ private ListSkusResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSkusResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListSkusResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListSkusResponse.class, - com.google.cloud.billing.v1.ListSkusResponse.Builder.class); + com.google.cloud.billing.v1.ListSkusResponse.class, com.google.cloud.billing.v1.ListSkusResponse.Builder.class); } public static final int SKUS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List skus_; /** - * - * *
    * The list of public SKUs of the given service.
    * 
@@ -81,8 +59,6 @@ public java.util.List getSkusList() { return skus_; } /** - * - * *
    * The list of public SKUs of the given service.
    * 
@@ -90,12 +66,11 @@ public java.util.List getSkusList() { * repeated .google.cloud.billing.v1.Sku skus = 1; */ @java.lang.Override - public java.util.List getSkusOrBuilderList() { + public java.util.List + getSkusOrBuilderList() { return skus_; } /** - * - * *
    * The list of public SKUs of the given service.
    * 
@@ -107,8 +82,6 @@ public int getSkusCount() { return skus_.size(); } /** - * - * *
    * The list of public SKUs of the given service.
    * 
@@ -120,8 +93,6 @@ public com.google.cloud.billing.v1.Sku getSkus(int index) { return skus_.get(index); } /** - * - * *
    * The list of public SKUs of the given service.
    * 
@@ -129,17 +100,15 @@ public com.google.cloud.billing.v1.Sku getSkus(int index) { * repeated .google.cloud.billing.v1.Sku skus = 1; */ @java.lang.Override - public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index) { + public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder( + int index) { return skus_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListSkus` again with the `page_token` field set to this
@@ -147,7 +116,6 @@ public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListSkus` again with the `page_token` field set to this
@@ -172,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -189,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < skus_.size(); i++) { output.writeMessage(1, skus_.get(i)); } @@ -218,7 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < skus_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, skus_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, skus_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -231,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListSkusResponse)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListSkusResponse other = - (com.google.cloud.billing.v1.ListSkusResponse) obj; + com.google.cloud.billing.v1.ListSkusResponse other = (com.google.cloud.billing.v1.ListSkusResponse) obj; - if (!getSkusList().equals(other.getSkusList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getSkusList() + .equals(other.getSkusList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +233,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.ListSkusResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListSkusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListSkusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListSkusResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListSkusResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListSkusResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.ListSkusResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for `ListSkus`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListSkusResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListSkusResponse) com.google.cloud.billing.v1.ListSkusResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListSkusResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListSkusResponse.class, - com.google.cloud.billing.v1.ListSkusResponse.Builder.class); + com.google.cloud.billing.v1.ListSkusResponse.class, com.google.cloud.billing.v1.ListSkusResponse.Builder.class); } // Construct using com.google.cloud.billing.v1.ListSkusResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor; } @java.lang.Override @@ -430,12 +396,9 @@ public com.google.cloud.billing.v1.ListSkusResponse build() { @java.lang.Override public com.google.cloud.billing.v1.ListSkusResponse buildPartial() { - com.google.cloud.billing.v1.ListSkusResponse result = - new com.google.cloud.billing.v1.ListSkusResponse(this); + com.google.cloud.billing.v1.ListSkusResponse result = new com.google.cloud.billing.v1.ListSkusResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -463,39 +426,38 @@ private void buildPartial0(com.google.cloud.billing.v1.ListSkusResponse result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListSkusResponse) { - return mergeFrom((com.google.cloud.billing.v1.ListSkusResponse) other); + return mergeFrom((com.google.cloud.billing.v1.ListSkusResponse)other); } else { super.mergeFrom(other); return this; @@ -522,10 +484,9 @@ public Builder mergeFrom(com.google.cloud.billing.v1.ListSkusResponse other) { skusBuilder_ = null; skus_ = other.skus_; bitField0_ = (bitField0_ & ~0x00000001); - skusBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSkusFieldBuilder() - : null; + skusBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSkusFieldBuilder() : null; } else { skusBuilder_.addAllMessages(other.skus_); } @@ -562,31 +523,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.billing.v1.Sku m = - input.readMessage(com.google.cloud.billing.v1.Sku.parser(), extensionRegistry); - if (skusBuilder_ == null) { - ensureSkusIsMutable(); - skus_.add(m); - } else { - skusBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.billing.v1.Sku m = + input.readMessage( + com.google.cloud.billing.v1.Sku.parser(), + extensionRegistry); + if (skusBuilder_ == null) { + ensureSkusIsMutable(); + skus_.add(m); + } else { + skusBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -596,28 +556,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List skus_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSkusIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { skus_ = new java.util.ArrayList(skus_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Sku, - com.google.cloud.billing.v1.Sku.Builder, - com.google.cloud.billing.v1.SkuOrBuilder> - skusBuilder_; + com.google.cloud.billing.v1.Sku, com.google.cloud.billing.v1.Sku.Builder, com.google.cloud.billing.v1.SkuOrBuilder> skusBuilder_; /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -632,8 +585,6 @@ public java.util.List getSkusList() { } } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -648,8 +599,6 @@ public int getSkusCount() { } } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -664,15 +613,14 @@ public com.google.cloud.billing.v1.Sku getSkus(int index) { } } /** - * - * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public Builder setSkus(int index, com.google.cloud.billing.v1.Sku value) { + public Builder setSkus( + int index, com.google.cloud.billing.v1.Sku value) { if (skusBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -686,15 +634,14 @@ public Builder setSkus(int index, com.google.cloud.billing.v1.Sku value) { return this; } /** - * - * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public Builder setSkus(int index, com.google.cloud.billing.v1.Sku.Builder builderForValue) { + public Builder setSkus( + int index, com.google.cloud.billing.v1.Sku.Builder builderForValue) { if (skusBuilder_ == null) { ensureSkusIsMutable(); skus_.set(index, builderForValue.build()); @@ -705,8 +652,6 @@ public Builder setSkus(int index, com.google.cloud.billing.v1.Sku.Builder builde return this; } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -727,15 +672,14 @@ public Builder addSkus(com.google.cloud.billing.v1.Sku value) { return this; } /** - * - * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public Builder addSkus(int index, com.google.cloud.billing.v1.Sku value) { + public Builder addSkus( + int index, com.google.cloud.billing.v1.Sku value) { if (skusBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -749,15 +693,14 @@ public Builder addSkus(int index, com.google.cloud.billing.v1.Sku value) { return this; } /** - * - * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public Builder addSkus(com.google.cloud.billing.v1.Sku.Builder builderForValue) { + public Builder addSkus( + com.google.cloud.billing.v1.Sku.Builder builderForValue) { if (skusBuilder_ == null) { ensureSkusIsMutable(); skus_.add(builderForValue.build()); @@ -768,15 +711,14 @@ public Builder addSkus(com.google.cloud.billing.v1.Sku.Builder builderForValue) return this; } /** - * - * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public Builder addSkus(int index, com.google.cloud.billing.v1.Sku.Builder builderForValue) { + public Builder addSkus( + int index, com.google.cloud.billing.v1.Sku.Builder builderForValue) { if (skusBuilder_ == null) { ensureSkusIsMutable(); skus_.add(index, builderForValue.build()); @@ -787,8 +729,6 @@ public Builder addSkus(int index, com.google.cloud.billing.v1.Sku.Builder builde return this; } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -799,7 +739,8 @@ public Builder addAllSkus( java.lang.Iterable values) { if (skusBuilder_ == null) { ensureSkusIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skus_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, skus_); onChanged(); } else { skusBuilder_.addAllMessages(values); @@ -807,8 +748,6 @@ public Builder addAllSkus( return this; } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -826,8 +765,6 @@ public Builder clearSkus() { return this; } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -845,44 +782,39 @@ public Builder removeSkus(int index) { return this; } /** - * - * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public com.google.cloud.billing.v1.Sku.Builder getSkusBuilder(int index) { + public com.google.cloud.billing.v1.Sku.Builder getSkusBuilder( + int index) { return getSkusFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index) { + public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder( + int index) { if (skusBuilder_ == null) { - return skus_.get(index); - } else { + return skus_.get(index); } else { return skusBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public java.util.List - getSkusOrBuilderList() { + public java.util.List + getSkusOrBuilderList() { if (skusBuilder_ != null) { return skusBuilder_.getMessageOrBuilderList(); } else { @@ -890,8 +822,6 @@ public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index) { } } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -899,46 +829,42 @@ public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index) { * repeated .google.cloud.billing.v1.Sku skus = 1; */ public com.google.cloud.billing.v1.Sku.Builder addSkusBuilder() { - return getSkusFieldBuilder().addBuilder(com.google.cloud.billing.v1.Sku.getDefaultInstance()); + return getSkusFieldBuilder().addBuilder( + com.google.cloud.billing.v1.Sku.getDefaultInstance()); } /** - * - * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public com.google.cloud.billing.v1.Sku.Builder addSkusBuilder(int index) { - return getSkusFieldBuilder() - .addBuilder(index, com.google.cloud.billing.v1.Sku.getDefaultInstance()); + public com.google.cloud.billing.v1.Sku.Builder addSkusBuilder( + int index) { + return getSkusFieldBuilder().addBuilder( + index, com.google.cloud.billing.v1.Sku.getDefaultInstance()); } /** - * - * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public java.util.List getSkusBuilderList() { + public java.util.List + getSkusBuilderList() { return getSkusFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Sku, - com.google.cloud.billing.v1.Sku.Builder, - com.google.cloud.billing.v1.SkuOrBuilder> + com.google.cloud.billing.v1.Sku, com.google.cloud.billing.v1.Sku.Builder, com.google.cloud.billing.v1.SkuOrBuilder> getSkusFieldBuilder() { if (skusBuilder_ == null) { - skusBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Sku, - com.google.cloud.billing.v1.Sku.Builder, - com.google.cloud.billing.v1.SkuOrBuilder>( - skus_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + skusBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.v1.Sku, com.google.cloud.billing.v1.Sku.Builder, com.google.cloud.billing.v1.SkuOrBuilder>( + skus_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); skus_ = null; } return skusBuilder_; @@ -946,8 +872,6 @@ public java.util.List getSkusBuilderLis private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListSkus` again with the `page_token` field set to this
@@ -955,13 +879,13 @@ public java.util.List getSkusBuilderLis
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -970,8 +894,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListSkus` again with the `page_token` field set to this
@@ -979,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -994,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListSkus` again with the `page_token` field set to this
@@ -1003,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListSkus` again with the `page_token` field set to this
@@ -1026,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1036,8 +952,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListSkus` again with the `page_token` field set to this
@@ -1045,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1071,12 +983,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListSkusResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListSkusResponse) private static final com.google.cloud.billing.v1.ListSkusResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListSkusResponse(); } @@ -1085,27 +997,27 @@ public static com.google.cloud.billing.v1.ListSkusResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSkusResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSkusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1120,4 +1032,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListSkusResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java similarity index 67% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java index b667ed018427..aeebda347aa9 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * 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 interface ListSkusResponseOrBuilder - extends +public interface ListSkusResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListSkusResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of public SKUs of the given service.
    * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - java.util.List getSkusList(); + java.util.List + getSkusList(); /** - * - * *
    * The list of public SKUs of the given service.
    * 
@@ -44,8 +25,6 @@ public interface ListSkusResponseOrBuilder */ com.google.cloud.billing.v1.Sku getSkus(int index); /** - * - * *
    * The list of public SKUs of the given service.
    * 
@@ -54,29 +33,25 @@ public interface ListSkusResponseOrBuilder */ int getSkusCount(); /** - * - * *
    * The list of public SKUs of the given service.
    * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - java.util.List getSkusOrBuilderList(); + java.util.List + getSkusOrBuilderList(); /** - * - * *
    * The list of public SKUs of the given service.
    * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index); + com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder( + int index); /** - * - * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListSkus` again with the `page_token` field set to this
@@ -84,13 +59,10 @@ public interface ListSkusResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListSkus` again with the `page_token` field set to this
@@ -98,8 +70,8 @@ public interface ListSkusResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequest.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequest.java similarity index 63% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequest.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequest.java index 1d027e051f3c..cb8d5c91793f 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequest.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequest.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_billing.proto package com.google.cloud.billing.v1; /** - * - * *
  * Request message for `MoveBillingAccount` RPC.
  * 
* * Protobuf type {@code google.cloud.billing.v1.MoveBillingAccountRequest} */ -public final class MoveBillingAccountRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MoveBillingAccountRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.MoveBillingAccountRequest) MoveBillingAccountRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MoveBillingAccountRequest.newBuilder() to construct. private MoveBillingAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MoveBillingAccountRequest() { name_ = ""; destinationParent_ = ""; @@ -44,32 +26,28 @@ private MoveBillingAccountRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MoveBillingAccountRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.MoveBillingAccountRequest.class, - com.google.cloud.billing.v1.MoveBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.MoveBillingAccountRequest.class, com.google.cloud.billing.v1.MoveBillingAccountRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the billing account to move.
    * Must be of the form `billingAccounts/{billing_account_id}`.
@@ -77,10 +55,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * always belongs to the same organization as its parent account.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,15 +64,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the billing account to move.
    * Must be of the form `billingAccounts/{billing_account_id}`.
@@ -105,18 +79,17 @@ public java.lang.String getName() {
    * always belongs to the same organization as its parent account.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,22 +98,16 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESTINATION_PARENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object destinationParent_ = ""; /** - * - * *
-   * Required. The resource name of the Organization to reparent
+   * Required. The resource name of the Organization to move
    * 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) = { ... } - * - * + * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The destinationParent. */ @java.lang.Override @@ -149,33 +116,31 @@ public java.lang.String getDestinationParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationParent_ = s; return s; } } /** - * - * *
-   * Required. The resource name of the Organization to reparent
+   * Required. The resource name of the Organization to move
    * 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) = { ... } - * - * + * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for destinationParent. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationParentBytes() { + public com.google.protobuf.ByteString + getDestinationParentBytes() { java.lang.Object ref = destinationParent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationParent_ = b; return b; } else { @@ -184,7 +149,6 @@ public com.google.protobuf.ByteString getDestinationParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,7 +160,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -226,16 +191,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.MoveBillingAccountRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.MoveBillingAccountRequest other = - (com.google.cloud.billing.v1.MoveBillingAccountRequest) obj; + com.google.cloud.billing.v1.MoveBillingAccountRequest other = (com.google.cloud.billing.v1.MoveBillingAccountRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getDestinationParent().equals(other.getDestinationParent())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDestinationParent() + .equals(other.getDestinationParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -257,136 +223,131 @@ public int hashCode() { } public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.billing.v1.MoveBillingAccountRequest prototype) { + public static Builder newBuilder(com.google.cloud.billing.v1.MoveBillingAccountRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `MoveBillingAccount` RPC.
    * 
* * Protobuf type {@code google.cloud.billing.v1.MoveBillingAccountRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.MoveBillingAccountRequest) com.google.cloud.billing.v1.MoveBillingAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.MoveBillingAccountRequest.class, - com.google.cloud.billing.v1.MoveBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.MoveBillingAccountRequest.class, com.google.cloud.billing.v1.MoveBillingAccountRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.MoveBillingAccountRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -397,9 +358,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_descriptor; } @java.lang.Override @@ -418,11 +379,8 @@ public com.google.cloud.billing.v1.MoveBillingAccountRequest build() { @java.lang.Override public com.google.cloud.billing.v1.MoveBillingAccountRequest buildPartial() { - com.google.cloud.billing.v1.MoveBillingAccountRequest result = - new com.google.cloud.billing.v1.MoveBillingAccountRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.v1.MoveBillingAccountRequest result = new com.google.cloud.billing.v1.MoveBillingAccountRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -441,39 +399,38 @@ private void buildPartial0(com.google.cloud.billing.v1.MoveBillingAccountRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.MoveBillingAccountRequest) { - return mergeFrom((com.google.cloud.billing.v1.MoveBillingAccountRequest) other); + return mergeFrom((com.google.cloud.billing.v1.MoveBillingAccountRequest)other); } else { super.mergeFrom(other); return this; @@ -481,8 +438,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.MoveBillingAccountRequest other) { - if (other == com.google.cloud.billing.v1.MoveBillingAccountRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.v1.MoveBillingAccountRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -519,25 +475,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - destinationParent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + destinationParent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -547,13 +500,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the billing account to move.
      * Must be of the form `billingAccounts/{billing_account_id}`.
@@ -561,16 +511,14 @@ public Builder mergeFrom(
      * always belongs to the same organization as its parent account.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -579,8 +527,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the billing account to move.
      * Must be of the form `billingAccounts/{billing_account_id}`.
@@ -588,17 +534,16 @@ public java.lang.String getName() {
      * always belongs to the same organization as its parent account.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -606,8 +551,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the billing account to move.
      * Must be of the form `billingAccounts/{billing_account_id}`.
@@ -615,25 +558,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * always belongs to the same organization as its parent account.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the billing account to move.
      * Must be of the form `billingAccounts/{billing_account_id}`.
@@ -641,10 +578,7 @@ public Builder setName(java.lang.String value) {
      * always belongs to the same organization as its parent account.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -654,8 +588,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the billing account to move.
      * Must be of the form `billingAccounts/{billing_account_id}`.
@@ -663,17 +595,13 @@ public Builder clearName() {
      * always belongs to the same organization as its parent account.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -683,24 +611,20 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object destinationParent_ = ""; /** - * - * *
-     * Required. The resource name of the Organization to reparent
+     * Required. The resource name of the Organization to move
      * 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) = { ... } - * - * + * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The destinationParent. */ public java.lang.String getDestinationParent() { java.lang.Object ref = destinationParent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationParent_ = s; return s; @@ -709,25 +633,22 @@ public java.lang.String getDestinationParent() { } } /** - * - * *
-     * Required. The resource name of the Organization to reparent
+     * Required. The resource name of the Organization to move
      * 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) = { ... } - * - * + * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for destinationParent. */ - public com.google.protobuf.ByteString getDestinationParentBytes() { + public com.google.protobuf.ByteString + getDestinationParentBytes() { java.lang.Object ref = destinationParent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationParent_ = b; return b; } else { @@ -735,43 +656,32 @@ public com.google.protobuf.ByteString getDestinationParentBytes() { } } /** - * - * *
-     * Required. The resource name of the Organization to reparent
+     * Required. The resource name of the Organization to move
      * 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) = { ... } - * - * + * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The destinationParent to set. * @return This builder for chaining. */ - public Builder setDestinationParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationParent_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
-     * Required. The resource name of the Organization to reparent
+     * Required. The resource name of the Organization to move
      * 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) = { ... } - * - * + * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearDestinationParent() { @@ -781,34 +691,28 @@ public Builder clearDestinationParent() { return this; } /** - * - * *
-     * Required. The resource name of the Organization to reparent
+     * Required. The resource name of the Organization to move
      * 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) = { ... } - * - * + * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for destinationParent to set. * @return This builder for chaining. */ - public Builder setDestinationParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationParent_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -818,12 +722,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.MoveBillingAccountRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.MoveBillingAccountRequest) private static final com.google.cloud.billing.v1.MoveBillingAccountRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.MoveBillingAccountRequest(); } @@ -832,27 +736,27 @@ public static com.google.cloud.billing.v1.MoveBillingAccountRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MoveBillingAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveBillingAccountRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,4 +771,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.billing.v1.MoveBillingAccountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequestOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequestOrBuilder.java new file mode 100644 index 000000000000..e158eceb6c98 --- /dev/null +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequestOrBuilder.java @@ -0,0 +1,59 @@ +// 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 move
+   * 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 move
+   * 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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/OrganizationName.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/OrganizationName.java similarity index 100% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/OrganizationName.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/OrganizationName.java diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java similarity index 76% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java index c1d483286021..ded95b8ae6ef 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * *
  * Expresses a mathematical pricing formula. For Example:-
  *
@@ -36,16 +19,15 @@
  *
  * Protobuf type {@code google.cloud.billing.v1.PricingExpression}
  */
-public final class PricingExpression extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PricingExpression extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.PricingExpression)
     PricingExpressionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PricingExpression.newBuilder() to construct.
   private PricingExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PricingExpression() {
     usageUnit_ = "";
     tieredRates_ = java.util.Collections.emptyList();
@@ -56,33 +38,29 @@ private PricingExpression() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PricingExpression();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.v1.CloudCatalogProto
-        .internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.v1.CloudCatalogProto
-        .internal_static_google_cloud_billing_v1_PricingExpression_fieldAccessorTable
+    return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.v1.PricingExpression.class,
-            com.google.cloud.billing.v1.PricingExpression.Builder.class);
+            com.google.cloud.billing.v1.PricingExpression.class, com.google.cloud.billing.v1.PricingExpression.Builder.class);
   }
 
-  public interface TierRateOrBuilder
-      extends
+  public interface TierRateOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.PricingExpression.TierRate)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Usage is priced at this rate only after this amount.
      * Example: start_usage_amount of 10 indicates that the usage will be priced
@@ -90,40 +68,31 @@ public interface TierRateOrBuilder
      * 
* * double start_usage_amount = 1; - * * @return The startUsageAmount. */ double getStartUsageAmount(); /** - * - * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
      * 
* * .google.type.Money unit_price = 2; - * * @return Whether the unitPrice field is set. */ boolean hasUnitPrice(); /** - * - * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
      * 
* * .google.type.Money unit_price = 2; - * * @return The unitPrice. */ com.google.type.Money getUnitPrice(); /** - * - * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -134,52 +103,47 @@ public interface TierRateOrBuilder
     com.google.type.MoneyOrBuilder getUnitPriceOrBuilder();
   }
   /**
-   *
-   *
    * 
    * The price rate indicating starting usage and its corresponding price.
    * 
* * Protobuf type {@code google.cloud.billing.v1.PricingExpression.TierRate} */ - public static final class TierRate extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TierRate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.PricingExpression.TierRate) TierRateOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TierRate.newBuilder() to construct. private TierRate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TierRate() {} + private TierRate() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TierRate(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_PricingExpression_TierRate_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_TierRate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.PricingExpression.TierRate.class, - com.google.cloud.billing.v1.PricingExpression.TierRate.Builder.class); + com.google.cloud.billing.v1.PricingExpression.TierRate.class, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder.class); } public static final int START_USAGE_AMOUNT_FIELD_NUMBER = 1; private double startUsageAmount_ = 0D; /** - * - * *
      * Usage is priced at this rate only after this amount.
      * Example: start_usage_amount of 10 indicates that the usage will be priced
@@ -187,7 +151,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * double start_usage_amount = 1; - * * @return The startUsageAmount. */ @java.lang.Override @@ -198,15 +161,12 @@ public double getStartUsageAmount() { public static final int UNIT_PRICE_FIELD_NUMBER = 2; private com.google.type.Money unitPrice_; /** - * - * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
      * 
* * .google.type.Money unit_price = 2; - * * @return Whether the unitPrice field is set. */ @java.lang.Override @@ -214,15 +174,12 @@ public boolean hasUnitPrice() { return unitPrice_ != null; } /** - * - * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
      * 
* * .google.type.Money unit_price = 2; - * * @return The unitPrice. */ @java.lang.Override @@ -230,8 +187,6 @@ public com.google.type.Money getUnitPrice() { return unitPrice_ == null ? com.google.type.Money.getDefaultInstance() : unitPrice_; } /** - * - * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -245,7 +200,6 @@ public com.google.type.MoneyOrBuilder getUnitPriceOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -257,7 +211,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (java.lang.Double.doubleToRawLongBits(startUsageAmount_) != 0) {
         output.writeDouble(1, startUsageAmount_);
       }
@@ -274,10 +229,12 @@ public int getSerializedSize() {
 
       size = 0;
       if (java.lang.Double.doubleToRawLongBits(startUsageAmount_) != 0) {
-        size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, startUsageAmount_);
+        size += com.google.protobuf.CodedOutputStream
+          .computeDoubleSize(1, startUsageAmount_);
       }
       if (unitPrice_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUnitPrice());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, getUnitPrice());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -287,19 +244,20 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
       if (!(obj instanceof com.google.cloud.billing.v1.PricingExpression.TierRate)) {
         return super.equals(obj);
       }
-      com.google.cloud.billing.v1.PricingExpression.TierRate other =
-          (com.google.cloud.billing.v1.PricingExpression.TierRate) obj;
+      com.google.cloud.billing.v1.PricingExpression.TierRate other = (com.google.cloud.billing.v1.PricingExpression.TierRate) obj;
 
       if (java.lang.Double.doubleToLongBits(getStartUsageAmount())
-          != java.lang.Double.doubleToLongBits(other.getStartUsageAmount())) return false;
+          != java.lang.Double.doubleToLongBits(
+              other.getStartUsageAmount())) return false;
       if (hasUnitPrice() != other.hasUnitPrice()) return false;
       if (hasUnitPrice()) {
-        if (!getUnitPrice().equals(other.getUnitPrice())) return false;
+        if (!getUnitPrice()
+            .equals(other.getUnitPrice())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -313,10 +271,8 @@ public int hashCode() {
       int hash = 41;
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + START_USAGE_AMOUNT_FIELD_NUMBER;
-      hash =
-          (53 * hash)
-              + com.google.protobuf.Internal.hashLong(
-                  java.lang.Double.doubleToLongBits(getStartUsageAmount()));
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          java.lang.Double.doubleToLongBits(getStartUsageAmount()));
       if (hasUnitPrice()) {
         hash = (37 * hash) + UNIT_PRICE_FIELD_NUMBER;
         hash = (53 * hash) + getUnitPrice().hashCode();
@@ -327,94 +283,89 @@ public int hashCode() {
     }
 
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
-    public static com.google.cloud.billing.v1.PricingExpression.TierRate parseDelimitedFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.billing.v1.PricingExpression.TierRate parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseDelimitedFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.cloud.billing.v1.PricingExpression.TierRate prototype) {
+    public static Builder newBuilder(com.google.cloud.billing.v1.PricingExpression.TierRate prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -424,41 +375,39 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * The price rate indicating starting usage and its corresponding price.
      * 
* * Protobuf type {@code google.cloud.billing.v1.PricingExpression.TierRate} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.PricingExpression.TierRate) com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_PricingExpression_TierRate_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_TierRate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.PricingExpression.TierRate.class, - com.google.cloud.billing.v1.PricingExpression.TierRate.Builder.class); + com.google.cloud.billing.v1.PricingExpression.TierRate.class, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder.class); } // Construct using com.google.cloud.billing.v1.PricingExpression.TierRate.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -473,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor; } @java.lang.Override @@ -494,11 +443,8 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate build() { @java.lang.Override public com.google.cloud.billing.v1.PricingExpression.TierRate buildPartial() { - com.google.cloud.billing.v1.PricingExpression.TierRate result = - new com.google.cloud.billing.v1.PricingExpression.TierRate(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.v1.PricingExpression.TierRate result = new com.google.cloud.billing.v1.PricingExpression.TierRate(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -509,7 +455,9 @@ private void buildPartial0(com.google.cloud.billing.v1.PricingExpression.TierRat result.startUsageAmount_ = startUsageAmount_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.unitPrice_ = unitPriceBuilder_ == null ? unitPrice_ : unitPriceBuilder_.build(); + result.unitPrice_ = unitPriceBuilder_ == null + ? unitPrice_ + : unitPriceBuilder_.build(); } } @@ -517,41 +465,38 @@ private void buildPartial0(com.google.cloud.billing.v1.PricingExpression.TierRat public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.PricingExpression.TierRate) { - return mergeFrom((com.google.cloud.billing.v1.PricingExpression.TierRate) other); + return mergeFrom((com.google.cloud.billing.v1.PricingExpression.TierRate)other); } else { super.mergeFrom(other); return this; @@ -559,8 +504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.PricingExpression.TierRate other) { - if (other == com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance()) return this; if (other.getStartUsageAmount() != 0D) { setStartUsageAmount(other.getStartUsageAmount()); } @@ -593,25 +537,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: - { - startUsageAmount_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - case 18: - { - input.readMessage(getUnitPriceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 9: { + startUsageAmount_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 18: { + input.readMessage( + getUnitPriceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -621,13 +564,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private double startUsageAmount_; + private double startUsageAmount_ ; /** - * - * *
        * Usage is priced at this rate only after this amount.
        * Example: start_usage_amount of 10 indicates that the usage will be priced
@@ -635,7 +575,6 @@ public Builder mergeFrom(
        * 
* * double start_usage_amount = 1; - * * @return The startUsageAmount. */ @java.lang.Override @@ -643,8 +582,6 @@ public double getStartUsageAmount() { return startUsageAmount_; } /** - * - * *
        * Usage is priced at this rate only after this amount.
        * Example: start_usage_amount of 10 indicates that the usage will be priced
@@ -652,7 +589,6 @@ public double getStartUsageAmount() {
        * 
* * double start_usage_amount = 1; - * * @param value The startUsageAmount to set. * @return This builder for chaining. */ @@ -664,8 +600,6 @@ public Builder setStartUsageAmount(double value) { return this; } /** - * - * *
        * Usage is priced at this rate only after this amount.
        * Example: start_usage_amount of 10 indicates that the usage will be priced
@@ -673,7 +607,6 @@ public Builder setStartUsageAmount(double value) {
        * 
* * double start_usage_amount = 1; - * * @return This builder for chaining. */ public Builder clearStartUsageAmount() { @@ -685,33 +618,26 @@ public Builder clearStartUsageAmount() { private com.google.type.Money unitPrice_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> - unitPriceBuilder_; + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> unitPriceBuilder_; /** - * - * *
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
        * 
* * .google.type.Money unit_price = 2; - * * @return Whether the unitPrice field is set. */ public boolean hasUnitPrice() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
        * 
* * .google.type.Money unit_price = 2; - * * @return The unitPrice. */ public com.google.type.Money getUnitPrice() { @@ -722,8 +648,6 @@ public com.google.type.Money getUnitPrice() { } } /** - * - * *
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -745,8 +669,6 @@ public Builder setUnitPrice(com.google.type.Money value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -754,7 +676,8 @@ public Builder setUnitPrice(com.google.type.Money value) {
        *
        * .google.type.Money unit_price = 2;
        */
-      public Builder setUnitPrice(com.google.type.Money.Builder builderForValue) {
+      public Builder setUnitPrice(
+          com.google.type.Money.Builder builderForValue) {
         if (unitPriceBuilder_ == null) {
           unitPrice_ = builderForValue.build();
         } else {
@@ -765,8 +688,6 @@ public Builder setUnitPrice(com.google.type.Money.Builder builderForValue) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -776,9 +697,9 @@ public Builder setUnitPrice(com.google.type.Money.Builder builderForValue) {
        */
       public Builder mergeUnitPrice(com.google.type.Money value) {
         if (unitPriceBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0)
-              && unitPrice_ != null
-              && unitPrice_ != com.google.type.Money.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0) &&
+            unitPrice_ != null &&
+            unitPrice_ != com.google.type.Money.getDefaultInstance()) {
             getUnitPriceBuilder().mergeFrom(value);
           } else {
             unitPrice_ = value;
@@ -791,8 +712,6 @@ public Builder mergeUnitPrice(com.google.type.Money value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -811,8 +730,6 @@ public Builder clearUnitPrice() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -826,8 +743,6 @@ public com.google.type.Money.Builder getUnitPriceBuilder() {
         return getUnitPriceFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -839,12 +754,11 @@ public com.google.type.MoneyOrBuilder getUnitPriceOrBuilder() {
         if (unitPriceBuilder_ != null) {
           return unitPriceBuilder_.getMessageOrBuilder();
         } else {
-          return unitPrice_ == null ? com.google.type.Money.getDefaultInstance() : unitPrice_;
+          return unitPrice_ == null ?
+              com.google.type.Money.getDefaultInstance() : unitPrice_;
         }
       }
       /**
-       *
-       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -853,20 +767,18 @@ public com.google.type.MoneyOrBuilder getUnitPriceOrBuilder() {
        * .google.type.Money unit_price = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
+          com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> 
           getUnitPriceFieldBuilder() {
         if (unitPriceBuilder_ == null) {
-          unitPriceBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.type.Money,
-                  com.google.type.Money.Builder,
-                  com.google.type.MoneyOrBuilder>(
-                  getUnitPrice(), getParentForChildren(), isClean());
+          unitPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>(
+                  getUnitPrice(),
+                  getParentForChildren(),
+                  isClean());
           unitPrice_ = null;
         }
         return unitPriceBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -879,12 +791,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.PricingExpression.TierRate)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.PricingExpression.TierRate)
     private static final com.google.cloud.billing.v1.PricingExpression.TierRate DEFAULT_INSTANCE;
-
     static {
       DEFAULT_INSTANCE = new com.google.cloud.billing.v1.PricingExpression.TierRate();
     }
@@ -893,28 +805,27 @@ public static com.google.cloud.billing.v1.PricingExpression.TierRate getDefaultI
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public TierRate parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public TierRate parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -929,22 +840,19 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.cloud.billing.v1.PricingExpression.TierRate getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   public static final int USAGE_UNIT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object usageUnit_ = "";
   /**
-   *
-   *
    * 
    * The short hand for unit of usage this pricing is specified in.
    * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
    * 
* * string usage_unit = 1; - * * @return The usageUnit. */ @java.lang.Override @@ -953,30 +861,30 @@ public java.lang.String getUsageUnit() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usageUnit_ = s; return s; } } /** - * - * *
    * The short hand for unit of usage this pricing is specified in.
    * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
    * 
* * string usage_unit = 1; - * * @return The bytes for usageUnit. */ @java.lang.Override - public com.google.protobuf.ByteString getUsageUnitBytes() { + public com.google.protobuf.ByteString + getUsageUnitBytes() { java.lang.Object ref = usageUnit_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); usageUnit_ = b; return b; } else { @@ -987,8 +895,6 @@ public com.google.protobuf.ByteString getUsageUnitBytes() { public static final int DISPLAY_QUANTITY_FIELD_NUMBER = 2; private double displayQuantity_ = 0D; /** - * - * *
    * The recommended quantity of units for displaying pricing info. When
    * displaying pricing info it is recommended to display:
@@ -1001,7 +907,6 @@ public com.google.protobuf.ByteString getUsageUnitBytes() {
    * 
* * double display_quantity = 2; - * * @return The displayQuantity. */ @java.lang.Override @@ -1010,12 +915,9 @@ public double getDisplayQuantity() { } public static final int TIERED_RATES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List tieredRates_; /** - * - * *
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1025,13 +927,10 @@ public double getDisplayQuantity() {
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
   @java.lang.Override
-  public java.util.List
-      getTieredRatesList() {
+  public java.util.List getTieredRatesList() {
     return tieredRates_;
   }
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1041,13 +940,11 @@ public double getDisplayQuantity() {
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getTieredRatesOrBuilderList() {
     return tieredRates_;
   }
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1061,8 +958,6 @@ public int getTieredRatesCount() {
     return tieredRates_.size();
   }
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1076,8 +971,6 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int
     return tieredRates_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1093,19 +986,15 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
   }
 
   public static final int USAGE_UNIT_DESCRIPTION_FIELD_NUMBER = 4;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object usageUnitDescription_ = "";
   /**
-   *
-   *
    * 
    * The unit of usage in human readable form.
    * Example: "gibi byte".
    * 
* * string usage_unit_description = 4; - * * @return The usageUnitDescription. */ @java.lang.Override @@ -1114,30 +1003,30 @@ public java.lang.String getUsageUnitDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usageUnitDescription_ = s; return s; } } /** - * - * *
    * The unit of usage in human readable form.
    * Example: "gibi byte".
    * 
* * string usage_unit_description = 4; - * * @return The bytes for usageUnitDescription. */ @java.lang.Override - public com.google.protobuf.ByteString getUsageUnitDescriptionBytes() { + public com.google.protobuf.ByteString + getUsageUnitDescriptionBytes() { java.lang.Object ref = usageUnitDescription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); usageUnitDescription_ = b; return b; } else { @@ -1146,19 +1035,15 @@ public com.google.protobuf.ByteString getUsageUnitDescriptionBytes() { } public static final int BASE_UNIT_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object baseUnit_ = ""; /** - * - * *
    * The base unit for the SKU which is the unit used in usage exports.
    * Example: "By"
    * 
* * string base_unit = 5; - * * @return The baseUnit. */ @java.lang.Override @@ -1167,30 +1052,30 @@ public java.lang.String getBaseUnit() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseUnit_ = s; return s; } } /** - * - * *
    * The base unit for the SKU which is the unit used in usage exports.
    * Example: "By"
    * 
* * string base_unit = 5; - * * @return The bytes for baseUnit. */ @java.lang.Override - public com.google.protobuf.ByteString getBaseUnitBytes() { + public com.google.protobuf.ByteString + getBaseUnitBytes() { java.lang.Object ref = baseUnit_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseUnit_ = b; return b; } else { @@ -1199,19 +1084,15 @@ public com.google.protobuf.ByteString getBaseUnitBytes() { } public static final int BASE_UNIT_DESCRIPTION_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object baseUnitDescription_ = ""; /** - * - * *
    * The base unit in human readable form.
    * Example: "byte".
    * 
* * string base_unit_description = 6; - * * @return The baseUnitDescription. */ @java.lang.Override @@ -1220,30 +1101,30 @@ public java.lang.String getBaseUnitDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseUnitDescription_ = s; return s; } } /** - * - * *
    * The base unit in human readable form.
    * Example: "byte".
    * 
* * string base_unit_description = 6; - * * @return The bytes for baseUnitDescription. */ @java.lang.Override - public com.google.protobuf.ByteString getBaseUnitDescriptionBytes() { + public com.google.protobuf.ByteString + getBaseUnitDescriptionBytes() { java.lang.Object ref = baseUnitDescription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseUnitDescription_ = b; return b; } else { @@ -1254,8 +1135,6 @@ public com.google.protobuf.ByteString getBaseUnitDescriptionBytes() { public static final int BASE_UNIT_CONVERSION_FACTOR_FIELD_NUMBER = 7; private double baseUnitConversionFactor_ = 0D; /** - * - * *
    * Conversion factor for converting from price per usage_unit to price per
    * base_unit, and start_usage_amount to start_usage_amount in base_unit.
@@ -1265,7 +1144,6 @@ public com.google.protobuf.ByteString getBaseUnitDescriptionBytes() {
    * 
* * double base_unit_conversion_factor = 7; - * * @return The baseUnitConversionFactor. */ @java.lang.Override @@ -1274,7 +1152,6 @@ public double getBaseUnitConversionFactor() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1286,7 +1163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(usageUnit_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, usageUnit_); } @@ -1321,10 +1199,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, usageUnit_); } if (java.lang.Double.doubleToRawLongBits(displayQuantity_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, displayQuantity_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, displayQuantity_); } for (int i = 0; i < tieredRates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, tieredRates_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, tieredRates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(usageUnitDescription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, usageUnitDescription_); @@ -1336,7 +1216,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, baseUnitDescription_); } if (java.lang.Double.doubleToRawLongBits(baseUnitConversionFactor_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(7, baseUnitConversionFactor_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(7, baseUnitConversionFactor_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1346,23 +1227,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.PricingExpression)) { return super.equals(obj); } - com.google.cloud.billing.v1.PricingExpression other = - (com.google.cloud.billing.v1.PricingExpression) obj; + com.google.cloud.billing.v1.PricingExpression other = (com.google.cloud.billing.v1.PricingExpression) obj; - if (!getUsageUnit().equals(other.getUsageUnit())) return false; + if (!getUsageUnit() + .equals(other.getUsageUnit())) return false; if (java.lang.Double.doubleToLongBits(getDisplayQuantity()) - != java.lang.Double.doubleToLongBits(other.getDisplayQuantity())) return false; - if (!getTieredRatesList().equals(other.getTieredRatesList())) return false; - if (!getUsageUnitDescription().equals(other.getUsageUnitDescription())) return false; - if (!getBaseUnit().equals(other.getBaseUnit())) return false; - if (!getBaseUnitDescription().equals(other.getBaseUnitDescription())) return false; + != java.lang.Double.doubleToLongBits( + other.getDisplayQuantity())) return false; + if (!getTieredRatesList() + .equals(other.getTieredRatesList())) return false; + if (!getUsageUnitDescription() + .equals(other.getUsageUnitDescription())) return false; + if (!getBaseUnit() + .equals(other.getBaseUnit())) return false; + if (!getBaseUnitDescription() + .equals(other.getBaseUnitDescription())) return false; if (java.lang.Double.doubleToLongBits(getBaseUnitConversionFactor()) - != java.lang.Double.doubleToLongBits(other.getBaseUnitConversionFactor())) return false; + != java.lang.Double.doubleToLongBits( + other.getBaseUnitConversionFactor())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1377,10 +1264,8 @@ public int hashCode() { hash = (37 * hash) + USAGE_UNIT_FIELD_NUMBER; hash = (53 * hash) + getUsageUnit().hashCode(); hash = (37 * hash) + DISPLAY_QUANTITY_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDisplayQuantity())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDisplayQuantity())); if (getTieredRatesCount() > 0) { hash = (37 * hash) + TIERED_RATES_FIELD_NUMBER; hash = (53 * hash) + getTieredRatesList().hashCode(); @@ -1392,113 +1277,106 @@ public int hashCode() { hash = (37 * hash) + BASE_UNIT_DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getBaseUnitDescription().hashCode(); hash = (37 * hash) + BASE_UNIT_CONVERSION_FACTOR_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBaseUnitConversionFactor())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBaseUnitConversionFactor())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.billing.v1.PricingExpression parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.PricingExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.PricingExpression parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.PricingExpression parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.PricingExpression parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.PricingExpression parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.PricingExpression parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.PricingExpression parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.PricingExpression parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.PricingExpression parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.PricingExpression parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.PricingExpression parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.PricingExpression parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.PricingExpression parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.PricingExpression prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Expresses a mathematical pricing formula. For Example:-
    *
@@ -1514,32 +1392,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.v1.PricingExpression}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.PricingExpression)
       com.google.cloud.billing.v1.PricingExpressionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.v1.CloudCatalogProto
-          .internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.v1.CloudCatalogProto
-          .internal_static_google_cloud_billing_v1_PricingExpression_fieldAccessorTable
+      return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.v1.PricingExpression.class,
-              com.google.cloud.billing.v1.PricingExpression.Builder.class);
+              com.google.cloud.billing.v1.PricingExpression.class, com.google.cloud.billing.v1.PricingExpression.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.v1.PricingExpression.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1561,9 +1440,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.v1.CloudCatalogProto
-          .internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
     }
 
     @java.lang.Override
@@ -1582,12 +1461,9 @@ public com.google.cloud.billing.v1.PricingExpression build() {
 
     @java.lang.Override
     public com.google.cloud.billing.v1.PricingExpression buildPartial() {
-      com.google.cloud.billing.v1.PricingExpression result =
-          new com.google.cloud.billing.v1.PricingExpression(this);
+      com.google.cloud.billing.v1.PricingExpression result = new com.google.cloud.billing.v1.PricingExpression(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1630,39 +1506,38 @@ private void buildPartial0(com.google.cloud.billing.v1.PricingExpression result)
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.billing.v1.PricingExpression) {
-        return mergeFrom((com.google.cloud.billing.v1.PricingExpression) other);
+        return mergeFrom((com.google.cloud.billing.v1.PricingExpression)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1697,10 +1572,9 @@ public Builder mergeFrom(com.google.cloud.billing.v1.PricingExpression other) {
             tieredRatesBuilder_ = null;
             tieredRates_ = other.tieredRates_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            tieredRatesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTieredRatesFieldBuilder()
-                    : null;
+            tieredRatesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTieredRatesFieldBuilder() : null;
           } else {
             tieredRatesBuilder_.addAllMessages(other.tieredRates_);
           }
@@ -1750,63 +1624,55 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                usageUnit_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 17:
-              {
-                displayQuantity_ = input.readDouble();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 17
-            case 26:
-              {
-                com.google.cloud.billing.v1.PricingExpression.TierRate m =
-                    input.readMessage(
-                        com.google.cloud.billing.v1.PricingExpression.TierRate.parser(),
-                        extensionRegistry);
-                if (tieredRatesBuilder_ == null) {
-                  ensureTieredRatesIsMutable();
-                  tieredRates_.add(m);
-                } else {
-                  tieredRatesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            case 34:
-              {
-                usageUnitDescription_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                baseUnit_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                baseUnitDescription_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 57:
-              {
-                baseUnitConversionFactor_ = input.readDouble();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 57
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              usageUnit_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 17: {
+              displayQuantity_ = input.readDouble();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 17
+            case 26: {
+              com.google.cloud.billing.v1.PricingExpression.TierRate m =
+                  input.readMessage(
+                      com.google.cloud.billing.v1.PricingExpression.TierRate.parser(),
+                      extensionRegistry);
+              if (tieredRatesBuilder_ == null) {
+                ensureTieredRatesIsMutable();
+                tieredRates_.add(m);
+              } else {
+                tieredRatesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            case 34: {
+              usageUnitDescription_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              baseUnit_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              baseUnitDescription_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 57: {
+              baseUnitConversionFactor_ = input.readDouble();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 57
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1816,26 +1682,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object usageUnit_ = "";
     /**
-     *
-     *
      * 
      * The short hand for unit of usage this pricing is specified in.
      * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
      * 
* * string usage_unit = 1; - * * @return The usageUnit. */ public java.lang.String getUsageUnit() { java.lang.Object ref = usageUnit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usageUnit_ = s; return s; @@ -1844,22 +1707,21 @@ public java.lang.String getUsageUnit() { } } /** - * - * *
      * The short hand for unit of usage this pricing is specified in.
      * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
      * 
* * string usage_unit = 1; - * * @return The bytes for usageUnit. */ - public com.google.protobuf.ByteString getUsageUnitBytes() { + public com.google.protobuf.ByteString + getUsageUnitBytes() { java.lang.Object ref = usageUnit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); usageUnit_ = b; return b; } else { @@ -1867,37 +1729,30 @@ public com.google.protobuf.ByteString getUsageUnitBytes() { } } /** - * - * *
      * The short hand for unit of usage this pricing is specified in.
      * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
      * 
* * string usage_unit = 1; - * * @param value The usageUnit to set. * @return This builder for chaining. */ - public Builder setUsageUnit(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsageUnit( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } usageUnit_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The short hand for unit of usage this pricing is specified in.
      * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
      * 
* * string usage_unit = 1; - * * @return This builder for chaining. */ public Builder clearUsageUnit() { @@ -1907,22 +1762,18 @@ public Builder clearUsageUnit() { return this; } /** - * - * *
      * The short hand for unit of usage this pricing is specified in.
      * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
      * 
* * string usage_unit = 1; - * * @param value The bytes for usageUnit to set. * @return This builder for chaining. */ - public Builder setUsageUnitBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsageUnitBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); usageUnit_ = value; bitField0_ |= 0x00000001; @@ -1930,10 +1781,8 @@ public Builder setUsageUnitBytes(com.google.protobuf.ByteString value) { return this; } - private double displayQuantity_; + private double displayQuantity_ ; /** - * - * *
      * The recommended quantity of units for displaying pricing info. When
      * displaying pricing info it is recommended to display:
@@ -1946,7 +1795,6 @@ public Builder setUsageUnitBytes(com.google.protobuf.ByteString value) {
      * 
* * double display_quantity = 2; - * * @return The displayQuantity. */ @java.lang.Override @@ -1954,8 +1802,6 @@ public double getDisplayQuantity() { return displayQuantity_; } /** - * - * *
      * The recommended quantity of units for displaying pricing info. When
      * displaying pricing info it is recommended to display:
@@ -1968,7 +1814,6 @@ public double getDisplayQuantity() {
      * 
* * double display_quantity = 2; - * * @param value The displayQuantity to set. * @return This builder for chaining. */ @@ -1980,8 +1825,6 @@ public Builder setDisplayQuantity(double value) { return this; } /** - * - * *
      * The recommended quantity of units for displaying pricing info. When
      * displaying pricing info it is recommended to display:
@@ -1994,7 +1837,6 @@ public Builder setDisplayQuantity(double value) {
      * 
* * double display_quantity = 2; - * * @return This builder for chaining. */ public Builder clearDisplayQuantity() { @@ -2005,26 +1847,18 @@ public Builder clearDisplayQuantity() { } private java.util.List tieredRates_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTieredRatesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - tieredRates_ = - new java.util.ArrayList( - tieredRates_); + tieredRates_ = new java.util.ArrayList(tieredRates_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.PricingExpression.TierRate, - com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, - com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder> - tieredRatesBuilder_; + com.google.cloud.billing.v1.PricingExpression.TierRate, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder> tieredRatesBuilder_; /** - * - * *
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2033,8 +1867,7 @@ private void ensureTieredRatesIsMutable() {
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public java.util.List
-        getTieredRatesList() {
+    public java.util.List getTieredRatesList() {
       if (tieredRatesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(tieredRates_);
       } else {
@@ -2042,8 +1875,6 @@ private void ensureTieredRatesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2060,8 +1891,6 @@ public int getTieredRatesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2078,8 +1907,6 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int
       }
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2103,8 +1930,6 @@ public Builder setTieredRates(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2125,8 +1950,6 @@ public Builder setTieredRates(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2149,8 +1972,6 @@ public Builder addTieredRates(com.google.cloud.billing.v1.PricingExpression.Tier
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2174,8 +1995,6 @@ public Builder addTieredRates(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2196,8 +2015,6 @@ public Builder addTieredRates(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2218,8 +2035,6 @@ public Builder addTieredRates(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2229,11 +2044,11 @@ public Builder addTieredRates(
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
     public Builder addAllTieredRates(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (tieredRatesBuilder_ == null) {
         ensureTieredRatesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tieredRates_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, tieredRates_);
         onChanged();
       } else {
         tieredRatesBuilder_.addAllMessages(values);
@@ -2241,8 +2056,6 @@ public Builder addAllTieredRates(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2262,8 +2075,6 @@ public Builder clearTieredRates() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2283,8 +2094,6 @@ public Builder removeTieredRates(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2298,8 +2107,6 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder getTieredR
       return getTieredRatesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2311,14 +2118,11 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder getTieredR
     public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTieredRatesOrBuilder(
         int index) {
       if (tieredRatesBuilder_ == null) {
-        return tieredRates_.get(index);
-      } else {
+        return tieredRates_.get(index);  } else {
         return tieredRatesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2327,8 +2131,8 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public java.util.List
-        getTieredRatesOrBuilderList() {
+    public java.util.List 
+         getTieredRatesOrBuilderList() {
       if (tieredRatesBuilder_ != null) {
         return tieredRatesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2336,8 +2140,6 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
       }
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2347,12 +2149,10 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
     public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredRatesBuilder() {
-      return getTieredRatesFieldBuilder()
-          .addBuilder(com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
+      return getTieredRatesFieldBuilder().addBuilder(
+          com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2363,13 +2163,10 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredR
      */
     public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredRatesBuilder(
         int index) {
-      return getTieredRatesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
+      return getTieredRatesFieldBuilder().addBuilder(
+          index, com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2378,23 +2175,20 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredR
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public java.util.List
-        getTieredRatesBuilderList() {
+    public java.util.List 
+         getTieredRatesBuilderList() {
       return getTieredRatesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.billing.v1.PricingExpression.TierRate,
-            com.google.cloud.billing.v1.PricingExpression.TierRate.Builder,
-            com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder>
+        com.google.cloud.billing.v1.PricingExpression.TierRate, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder> 
         getTieredRatesFieldBuilder() {
       if (tieredRatesBuilder_ == null) {
-        tieredRatesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.billing.v1.PricingExpression.TierRate,
-                com.google.cloud.billing.v1.PricingExpression.TierRate.Builder,
-                com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder>(
-                tieredRates_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+        tieredRatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.billing.v1.PricingExpression.TierRate, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder>(
+                tieredRates_,
+                ((bitField0_ & 0x00000004) != 0),
+                getParentForChildren(),
+                isClean());
         tieredRates_ = null;
       }
       return tieredRatesBuilder_;
@@ -2402,21 +2196,19 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredR
 
     private java.lang.Object usageUnitDescription_ = "";
     /**
-     *
-     *
      * 
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; - * * @return The usageUnitDescription. */ public java.lang.String getUsageUnitDescription() { java.lang.Object ref = usageUnitDescription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usageUnitDescription_ = s; return s; @@ -2425,22 +2217,21 @@ public java.lang.String getUsageUnitDescription() { } } /** - * - * *
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; - * * @return The bytes for usageUnitDescription. */ - public com.google.protobuf.ByteString getUsageUnitDescriptionBytes() { + public com.google.protobuf.ByteString + getUsageUnitDescriptionBytes() { java.lang.Object ref = usageUnitDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); usageUnitDescription_ = b; return b; } else { @@ -2448,37 +2239,30 @@ public com.google.protobuf.ByteString getUsageUnitDescriptionBytes() { } } /** - * - * *
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; - * * @param value The usageUnitDescription to set. * @return This builder for chaining. */ - public Builder setUsageUnitDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsageUnitDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } usageUnitDescription_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; - * * @return This builder for chaining. */ public Builder clearUsageUnitDescription() { @@ -2488,22 +2272,18 @@ public Builder clearUsageUnitDescription() { return this; } /** - * - * *
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; - * * @param value The bytes for usageUnitDescription to set. * @return This builder for chaining. */ - public Builder setUsageUnitDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsageUnitDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); usageUnitDescription_ = value; bitField0_ |= 0x00000008; @@ -2513,21 +2293,19 @@ public Builder setUsageUnitDescriptionBytes(com.google.protobuf.ByteString value private java.lang.Object baseUnit_ = ""; /** - * - * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; - * * @return The baseUnit. */ public java.lang.String getBaseUnit() { java.lang.Object ref = baseUnit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseUnit_ = s; return s; @@ -2536,22 +2314,21 @@ public java.lang.String getBaseUnit() { } } /** - * - * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; - * * @return The bytes for baseUnit. */ - public com.google.protobuf.ByteString getBaseUnitBytes() { + public com.google.protobuf.ByteString + getBaseUnitBytes() { java.lang.Object ref = baseUnit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseUnit_ = b; return b; } else { @@ -2559,37 +2336,30 @@ public com.google.protobuf.ByteString getBaseUnitBytes() { } } /** - * - * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; - * * @param value The baseUnit to set. * @return This builder for chaining. */ - public Builder setBaseUnit(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBaseUnit( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } baseUnit_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; - * * @return This builder for chaining. */ public Builder clearBaseUnit() { @@ -2599,22 +2369,18 @@ public Builder clearBaseUnit() { return this; } /** - * - * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; - * * @param value The bytes for baseUnit to set. * @return This builder for chaining. */ - public Builder setBaseUnitBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBaseUnitBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); baseUnit_ = value; bitField0_ |= 0x00000010; @@ -2624,21 +2390,19 @@ public Builder setBaseUnitBytes(com.google.protobuf.ByteString value) { private java.lang.Object baseUnitDescription_ = ""; /** - * - * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; - * * @return The baseUnitDescription. */ public java.lang.String getBaseUnitDescription() { java.lang.Object ref = baseUnitDescription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseUnitDescription_ = s; return s; @@ -2647,22 +2411,21 @@ public java.lang.String getBaseUnitDescription() { } } /** - * - * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; - * * @return The bytes for baseUnitDescription. */ - public com.google.protobuf.ByteString getBaseUnitDescriptionBytes() { + public com.google.protobuf.ByteString + getBaseUnitDescriptionBytes() { java.lang.Object ref = baseUnitDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseUnitDescription_ = b; return b; } else { @@ -2670,37 +2433,30 @@ public com.google.protobuf.ByteString getBaseUnitDescriptionBytes() { } } /** - * - * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; - * * @param value The baseUnitDescription to set. * @return This builder for chaining. */ - public Builder setBaseUnitDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBaseUnitDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } baseUnitDescription_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; - * * @return This builder for chaining. */ public Builder clearBaseUnitDescription() { @@ -2710,22 +2466,18 @@ public Builder clearBaseUnitDescription() { return this; } /** - * - * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; - * * @param value The bytes for baseUnitDescription to set. * @return This builder for chaining. */ - public Builder setBaseUnitDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBaseUnitDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); baseUnitDescription_ = value; bitField0_ |= 0x00000020; @@ -2733,10 +2485,8 @@ public Builder setBaseUnitDescriptionBytes(com.google.protobuf.ByteString value) return this; } - private double baseUnitConversionFactor_; + private double baseUnitConversionFactor_ ; /** - * - * *
      * Conversion factor for converting from price per usage_unit to price per
      * base_unit, and start_usage_amount to start_usage_amount in base_unit.
@@ -2746,7 +2496,6 @@ public Builder setBaseUnitDescriptionBytes(com.google.protobuf.ByteString value)
      * 
* * double base_unit_conversion_factor = 7; - * * @return The baseUnitConversionFactor. */ @java.lang.Override @@ -2754,8 +2503,6 @@ public double getBaseUnitConversionFactor() { return baseUnitConversionFactor_; } /** - * - * *
      * Conversion factor for converting from price per usage_unit to price per
      * base_unit, and start_usage_amount to start_usage_amount in base_unit.
@@ -2765,7 +2512,6 @@ public double getBaseUnitConversionFactor() {
      * 
* * double base_unit_conversion_factor = 7; - * * @param value The baseUnitConversionFactor to set. * @return This builder for chaining. */ @@ -2777,8 +2523,6 @@ public Builder setBaseUnitConversionFactor(double value) { return this; } /** - * - * *
      * Conversion factor for converting from price per usage_unit to price per
      * base_unit, and start_usage_amount to start_usage_amount in base_unit.
@@ -2788,7 +2532,6 @@ public Builder setBaseUnitConversionFactor(double value) {
      * 
* * double base_unit_conversion_factor = 7; - * * @return This builder for chaining. */ public Builder clearBaseUnitConversionFactor() { @@ -2797,9 +2540,9 @@ public Builder clearBaseUnitConversionFactor() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2809,12 +2552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.PricingExpression) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.PricingExpression) private static final com.google.cloud.billing.v1.PricingExpression DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.PricingExpression(); } @@ -2823,27 +2566,27 @@ public static com.google.cloud.billing.v1.PricingExpression getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PricingExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PricingExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2858,4 +2601,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.PricingExpression getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java similarity index 82% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java index f700691e7026..139bd38a0392 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java @@ -1,58 +1,35 @@ -/* - * 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 interface PricingExpressionOrBuilder - extends +public interface PricingExpressionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.PricingExpression) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The short hand for unit of usage this pricing is specified in.
    * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
    * 
* * string usage_unit = 1; - * * @return The usageUnit. */ java.lang.String getUsageUnit(); /** - * - * *
    * The short hand for unit of usage this pricing is specified in.
    * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
    * 
* * string usage_unit = 1; - * * @return The bytes for usageUnit. */ - com.google.protobuf.ByteString getUsageUnitBytes(); + com.google.protobuf.ByteString + getUsageUnitBytes(); /** - * - * *
    * The recommended quantity of units for displaying pricing info. When
    * displaying pricing info it is recommended to display:
@@ -65,14 +42,11 @@ public interface PricingExpressionOrBuilder
    * 
* * double display_quantity = 2; - * * @return The displayQuantity. */ double getDisplayQuantity(); /** - * - * *
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -81,10 +55,9 @@ public interface PricingExpressionOrBuilder
    *
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
-  java.util.List getTieredRatesList();
+  java.util.List 
+      getTieredRatesList();
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -95,8 +68,6 @@ public interface PricingExpressionOrBuilder
    */
   com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int index);
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -107,8 +78,6 @@ public interface PricingExpressionOrBuilder
    */
   int getTieredRatesCount();
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -117,11 +86,9 @@ public interface PricingExpressionOrBuilder
    *
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
-  java.util.List
+  java.util.List 
       getTieredRatesOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -134,89 +101,72 @@ com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTieredRatesOr
       int index);
 
   /**
-   *
-   *
    * 
    * The unit of usage in human readable form.
    * Example: "gibi byte".
    * 
* * string usage_unit_description = 4; - * * @return The usageUnitDescription. */ java.lang.String getUsageUnitDescription(); /** - * - * *
    * The unit of usage in human readable form.
    * Example: "gibi byte".
    * 
* * string usage_unit_description = 4; - * * @return The bytes for usageUnitDescription. */ - com.google.protobuf.ByteString getUsageUnitDescriptionBytes(); + com.google.protobuf.ByteString + getUsageUnitDescriptionBytes(); /** - * - * *
    * The base unit for the SKU which is the unit used in usage exports.
    * Example: "By"
    * 
* * string base_unit = 5; - * * @return The baseUnit. */ java.lang.String getBaseUnit(); /** - * - * *
    * The base unit for the SKU which is the unit used in usage exports.
    * Example: "By"
    * 
* * string base_unit = 5; - * * @return The bytes for baseUnit. */ - com.google.protobuf.ByteString getBaseUnitBytes(); + com.google.protobuf.ByteString + getBaseUnitBytes(); /** - * - * *
    * The base unit in human readable form.
    * Example: "byte".
    * 
* * string base_unit_description = 6; - * * @return The baseUnitDescription. */ java.lang.String getBaseUnitDescription(); /** - * - * *
    * The base unit in human readable form.
    * Example: "byte".
    * 
* * string base_unit_description = 6; - * * @return The bytes for baseUnitDescription. */ - com.google.protobuf.ByteString getBaseUnitDescriptionBytes(); + com.google.protobuf.ByteString + getBaseUnitDescriptionBytes(); /** - * - * *
    * Conversion factor for converting from price per usage_unit to price per
    * base_unit, and start_usage_amount to start_usage_amount in base_unit.
@@ -226,7 +176,6 @@ com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTieredRatesOr
    * 
* * double base_unit_conversion_factor = 7; - * * @return The baseUnitConversionFactor. */ double getBaseUnitConversionFactor(); diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java similarity index 73% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java index 1a8b7a064541..c76c2a1879f1 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java @@ -1,72 +1,51 @@ -/* - * 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 pricing information for a SKU at a single point of time.
  * 
* * Protobuf type {@code google.cloud.billing.v1.PricingInfo} */ -public final class PricingInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PricingInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.PricingInfo) PricingInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PricingInfo.newBuilder() to construct. private PricingInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PricingInfo() { summary_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PricingInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_PricingInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_PricingInfo_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.PricingInfo.class, - com.google.cloud.billing.v1.PricingInfo.Builder.class); + com.google.cloud.billing.v1.PricingInfo.class, com.google.cloud.billing.v1.PricingInfo.Builder.class); } public static final int EFFECTIVE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp effectiveTime_; /** - * - * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -77,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.Timestamp effective_time = 1; - * * @return Whether the effectiveTime field is set. */ @java.lang.Override @@ -85,8 +63,6 @@ public boolean hasEffectiveTime() { return effectiveTime_ != null; } /** - * - * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -97,18 +73,13 @@ public boolean hasEffectiveTime() {
    * 
* * .google.protobuf.Timestamp effective_time = 1; - * * @return The effectiveTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEffectiveTime() { - return effectiveTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : effectiveTime_; + return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } /** - * - * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -122,25 +93,19 @@ public com.google.protobuf.Timestamp getEffectiveTime() {
    */
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
-    return effectiveTime_ == null
-        ? com.google.protobuf.Timestamp.getDefaultInstance()
-        : effectiveTime_;
+    return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_;
   }
 
   public static final int SUMMARY_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object summary_ = "";
   /**
-   *
-   *
    * 
    * An optional human readable summary of the pricing information, has a
    * maximum length of 256 characters.
    * 
* * string summary = 2; - * * @return The summary. */ @java.lang.Override @@ -149,30 +114,30 @@ public java.lang.String getSummary() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summary_ = s; return s; } } /** - * - * *
    * An optional human readable summary of the pricing information, has a
    * maximum length of 256 characters.
    * 
* * string summary = 2; - * * @return The bytes for summary. */ @java.lang.Override - public com.google.protobuf.ByteString getSummaryBytes() { + public com.google.protobuf.ByteString + getSummaryBytes() { java.lang.Object ref = summary_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); summary_ = b; return b; } else { @@ -183,14 +148,11 @@ public com.google.protobuf.ByteString getSummaryBytes() { public static final int PRICING_EXPRESSION_FIELD_NUMBER = 3; private com.google.cloud.billing.v1.PricingExpression pricingExpression_; /** - * - * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; - * * @return Whether the pricingExpression field is set. */ @java.lang.Override @@ -198,25 +160,18 @@ public boolean hasPricingExpression() { return pricingExpression_ != null; } /** - * - * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; - * * @return The pricingExpression. */ @java.lang.Override public com.google.cloud.billing.v1.PricingExpression getPricingExpression() { - return pricingExpression_ == null - ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() - : pricingExpression_; + return pricingExpression_ == null ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() : pricingExpression_; } /** - * - * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
@@ -225,23 +180,18 @@ public com.google.cloud.billing.v1.PricingExpression getPricingExpression() { */ @java.lang.Override public com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressionOrBuilder() { - return pricingExpression_ == null - ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() - : pricingExpression_; + return pricingExpression_ == null ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() : pricingExpression_; } public static final int AGGREGATION_INFO_FIELD_NUMBER = 4; private com.google.cloud.billing.v1.AggregationInfo aggregationInfo_; /** - * - * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
    * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; - * * @return Whether the aggregationInfo field is set. */ @java.lang.Override @@ -249,26 +199,19 @@ public boolean hasAggregationInfo() { return aggregationInfo_ != null; } /** - * - * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
    * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; - * * @return The aggregationInfo. */ @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo getAggregationInfo() { - return aggregationInfo_ == null - ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance() - : aggregationInfo_; + return aggregationInfo_ == null ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance() : aggregationInfo_; } /** - * - * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
@@ -278,16 +221,12 @@ public com.google.cloud.billing.v1.AggregationInfo getAggregationInfo() {
    */
   @java.lang.Override
   public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOrBuilder() {
-    return aggregationInfo_ == null
-        ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance()
-        : aggregationInfo_;
+    return aggregationInfo_ == null ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance() : aggregationInfo_;
   }
 
   public static final int CURRENCY_CONVERSION_RATE_FIELD_NUMBER = 5;
   private double currencyConversionRate_ = 0D;
   /**
-   *
-   *
    * 
    * Conversion rate used for currency conversion, from USD to the currency
    * specified in the request. This includes any surcharge collected for billing
@@ -297,7 +236,6 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
    * 
* * double currency_conversion_rate = 5; - * * @return The currencyConversionRate. */ @java.lang.Override @@ -306,7 +244,6 @@ public double getCurrencyConversionRate() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,7 +255,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (effectiveTime_ != null) { output.writeMessage(1, getEffectiveTime()); } @@ -344,19 +282,23 @@ public int getSerializedSize() { size = 0; if (effectiveTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEffectiveTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEffectiveTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, summary_); } if (pricingExpression_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPricingExpression()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPricingExpression()); } if (aggregationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAggregationInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAggregationInfo()); } if (java.lang.Double.doubleToRawLongBits(currencyConversionRate_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, currencyConversionRate_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, currencyConversionRate_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -366,7 +308,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.PricingInfo)) { return super.equals(obj); @@ -375,19 +317,24 @@ public boolean equals(final java.lang.Object obj) { if (hasEffectiveTime() != other.hasEffectiveTime()) return false; if (hasEffectiveTime()) { - if (!getEffectiveTime().equals(other.getEffectiveTime())) return false; + if (!getEffectiveTime() + .equals(other.getEffectiveTime())) return false; } - if (!getSummary().equals(other.getSummary())) return false; + if (!getSummary() + .equals(other.getSummary())) return false; if (hasPricingExpression() != other.hasPricingExpression()) return false; if (hasPricingExpression()) { - if (!getPricingExpression().equals(other.getPricingExpression())) return false; + if (!getPricingExpression() + .equals(other.getPricingExpression())) return false; } if (hasAggregationInfo() != other.hasAggregationInfo()) return false; if (hasAggregationInfo()) { - if (!getAggregationInfo().equals(other.getAggregationInfo())) return false; + if (!getAggregationInfo() + .equals(other.getAggregationInfo())) return false; } if (java.lang.Double.doubleToLongBits(getCurrencyConversionRate()) - != java.lang.Double.doubleToLongBits(other.getCurrencyConversionRate())) return false; + != java.lang.Double.doubleToLongBits( + other.getCurrencyConversionRate())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -414,145 +361,139 @@ public int hashCode() { hash = (53 * hash) + getAggregationInfo().hashCode(); } hash = (37 * hash) + CURRENCY_CONVERSION_RATE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCurrencyConversionRate())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCurrencyConversionRate())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.billing.v1.PricingInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.PricingInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.PricingInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.PricingInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.PricingInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.PricingInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.PricingInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.PricingInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.PricingInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.PricingInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.PricingInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.PricingInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.PricingInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.PricingInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.PricingInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the pricing information for a SKU at a single point of time.
    * 
* * Protobuf type {@code google.cloud.billing.v1.PricingInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.PricingInfo) com.google.cloud.billing.v1.PricingInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_PricingInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_PricingInfo_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.PricingInfo.class, - com.google.cloud.billing.v1.PricingInfo.Builder.class); + com.google.cloud.billing.v1.PricingInfo.class, com.google.cloud.billing.v1.PricingInfo.Builder.class); } // Construct using com.google.cloud.billing.v1.PricingInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -578,9 +519,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_PricingInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingInfo_descriptor; } @java.lang.Override @@ -599,11 +540,8 @@ public com.google.cloud.billing.v1.PricingInfo build() { @java.lang.Override public com.google.cloud.billing.v1.PricingInfo buildPartial() { - com.google.cloud.billing.v1.PricingInfo result = - new com.google.cloud.billing.v1.PricingInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.v1.PricingInfo result = new com.google.cloud.billing.v1.PricingInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -611,21 +549,22 @@ public com.google.cloud.billing.v1.PricingInfo buildPartial() { private void buildPartial0(com.google.cloud.billing.v1.PricingInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.effectiveTime_ = - effectiveTimeBuilder_ == null ? effectiveTime_ : effectiveTimeBuilder_.build(); + result.effectiveTime_ = effectiveTimeBuilder_ == null + ? effectiveTime_ + : effectiveTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.summary_ = summary_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.pricingExpression_ = - pricingExpressionBuilder_ == null - ? pricingExpression_ - : pricingExpressionBuilder_.build(); + result.pricingExpression_ = pricingExpressionBuilder_ == null + ? pricingExpression_ + : pricingExpressionBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.aggregationInfo_ = - aggregationInfoBuilder_ == null ? aggregationInfo_ : aggregationInfoBuilder_.build(); + result.aggregationInfo_ = aggregationInfoBuilder_ == null + ? aggregationInfo_ + : aggregationInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.currencyConversionRate_ = currencyConversionRate_; @@ -636,39 +575,38 @@ private void buildPartial0(com.google.cloud.billing.v1.PricingInfo result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.PricingInfo) { - return mergeFrom((com.google.cloud.billing.v1.PricingInfo) other); + return mergeFrom((com.google.cloud.billing.v1.PricingInfo)other); } else { super.mergeFrom(other); return this; @@ -720,44 +658,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getEffectiveTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - summary_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getPricingExpressionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getAggregationInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 41: - { - currencyConversionRate_ = input.readDouble(); - bitField0_ |= 0x00000010; - break; - } // case 41 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getEffectiveTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + summary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getPricingExpressionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getAggregationInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 41: { + currencyConversionRate_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -767,18 +704,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp effectiveTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - effectiveTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> effectiveTimeBuilder_; /** - * - * *
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -789,15 +720,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Timestamp effective_time = 1; - * * @return Whether the effectiveTime field is set. */ public boolean hasEffectiveTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -808,21 +736,16 @@ public boolean hasEffectiveTime() {
      * 
* * .google.protobuf.Timestamp effective_time = 1; - * * @return The effectiveTime. */ public com.google.protobuf.Timestamp getEffectiveTime() { if (effectiveTimeBuilder_ == null) { - return effectiveTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : effectiveTime_; + return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } else { return effectiveTimeBuilder_.getMessage(); } } /** - * - * *
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -848,8 +771,6 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -861,7 +782,8 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp effective_time = 1;
      */
-    public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEffectiveTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (effectiveTimeBuilder_ == null) {
         effectiveTime_ = builderForValue.build();
       } else {
@@ -872,8 +794,6 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -887,9 +807,9 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderFor
      */
     public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) {
       if (effectiveTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && effectiveTime_ != null
-            && effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          effectiveTime_ != null &&
+          effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEffectiveTimeBuilder().mergeFrom(value);
         } else {
           effectiveTime_ = value;
@@ -902,8 +822,6 @@ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -926,8 +844,6 @@ public Builder clearEffectiveTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -945,8 +861,6 @@ public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder() {
       return getEffectiveTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -962,14 +876,11 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
       if (effectiveTimeBuilder_ != null) {
         return effectiveTimeBuilder_.getMessageOrBuilder();
       } else {
-        return effectiveTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : effectiveTime_;
+        return effectiveTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -982,17 +893,14 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
      * .google.protobuf.Timestamp effective_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEffectiveTimeFieldBuilder() {
       if (effectiveTimeBuilder_ == null) {
-        effectiveTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEffectiveTime(), getParentForChildren(), isClean());
+        effectiveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEffectiveTime(),
+                getParentForChildren(),
+                isClean());
         effectiveTime_ = null;
       }
       return effectiveTimeBuilder_;
@@ -1000,21 +908,19 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
 
     private java.lang.Object summary_ = "";
     /**
-     *
-     *
      * 
      * An optional human readable summary of the pricing information, has a
      * maximum length of 256 characters.
      * 
* * string summary = 2; - * * @return The summary. */ public java.lang.String getSummary() { java.lang.Object ref = summary_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summary_ = s; return s; @@ -1023,22 +929,21 @@ public java.lang.String getSummary() { } } /** - * - * *
      * An optional human readable summary of the pricing information, has a
      * maximum length of 256 characters.
      * 
* * string summary = 2; - * * @return The bytes for summary. */ - public com.google.protobuf.ByteString getSummaryBytes() { + public com.google.protobuf.ByteString + getSummaryBytes() { java.lang.Object ref = summary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); summary_ = b; return b; } else { @@ -1046,37 +951,30 @@ public com.google.protobuf.ByteString getSummaryBytes() { } } /** - * - * *
      * An optional human readable summary of the pricing information, has a
      * maximum length of 256 characters.
      * 
* * string summary = 2; - * * @param value The summary to set. * @return This builder for chaining. */ - public Builder setSummary(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSummary( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } summary_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * An optional human readable summary of the pricing information, has a
      * maximum length of 256 characters.
      * 
* * string summary = 2; - * * @return This builder for chaining. */ public Builder clearSummary() { @@ -1086,22 +984,18 @@ public Builder clearSummary() { return this; } /** - * - * *
      * An optional human readable summary of the pricing information, has a
      * maximum length of 256 characters.
      * 
* * string summary = 2; - * * @param value The bytes for summary to set. * @return This builder for chaining. */ - public Builder setSummaryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSummaryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); summary_ = value; bitField0_ |= 0x00000002; @@ -1111,47 +1005,34 @@ public Builder setSummaryBytes(com.google.protobuf.ByteString value) { private com.google.cloud.billing.v1.PricingExpression pricingExpression_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.PricingExpression, - com.google.cloud.billing.v1.PricingExpression.Builder, - com.google.cloud.billing.v1.PricingExpressionOrBuilder> - pricingExpressionBuilder_; + com.google.cloud.billing.v1.PricingExpression, com.google.cloud.billing.v1.PricingExpression.Builder, com.google.cloud.billing.v1.PricingExpressionOrBuilder> pricingExpressionBuilder_; /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; - * * @return Whether the pricingExpression field is set. */ public boolean hasPricingExpression() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; - * * @return The pricingExpression. */ public com.google.cloud.billing.v1.PricingExpression getPricingExpression() { if (pricingExpressionBuilder_ == null) { - return pricingExpression_ == null - ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() - : pricingExpression_; + return pricingExpression_ == null ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() : pricingExpression_; } else { return pricingExpressionBuilder_.getMessage(); } } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1172,8 +1053,6 @@ public Builder setPricingExpression(com.google.cloud.billing.v1.PricingExpressio return this; } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1192,8 +1071,6 @@ public Builder setPricingExpression( return this; } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1202,10 +1079,9 @@ public Builder setPricingExpression( */ public Builder mergePricingExpression(com.google.cloud.billing.v1.PricingExpression value) { if (pricingExpressionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && pricingExpression_ != null - && pricingExpression_ - != com.google.cloud.billing.v1.PricingExpression.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + pricingExpression_ != null && + pricingExpression_ != com.google.cloud.billing.v1.PricingExpression.getDefaultInstance()) { getPricingExpressionBuilder().mergeFrom(value); } else { pricingExpression_ = value; @@ -1218,8 +1094,6 @@ public Builder mergePricingExpression(com.google.cloud.billing.v1.PricingExpress return this; } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1237,8 +1111,6 @@ public Builder clearPricingExpression() { return this; } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1251,8 +1123,6 @@ public com.google.cloud.billing.v1.PricingExpression.Builder getPricingExpressio return getPricingExpressionFieldBuilder().getBuilder(); } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1263,14 +1133,11 @@ public com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressi if (pricingExpressionBuilder_ != null) { return pricingExpressionBuilder_.getMessageOrBuilder(); } else { - return pricingExpression_ == null - ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() - : pricingExpression_; + return pricingExpression_ == null ? + com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() : pricingExpression_; } } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1278,17 +1145,14 @@ public com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressi * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.PricingExpression, - com.google.cloud.billing.v1.PricingExpression.Builder, - com.google.cloud.billing.v1.PricingExpressionOrBuilder> + com.google.cloud.billing.v1.PricingExpression, com.google.cloud.billing.v1.PricingExpression.Builder, com.google.cloud.billing.v1.PricingExpressionOrBuilder> getPricingExpressionFieldBuilder() { if (pricingExpressionBuilder_ == null) { - pricingExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.PricingExpression, - com.google.cloud.billing.v1.PricingExpression.Builder, - com.google.cloud.billing.v1.PricingExpressionOrBuilder>( - getPricingExpression(), getParentForChildren(), isClean()); + pricingExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.v1.PricingExpression, com.google.cloud.billing.v1.PricingExpression.Builder, com.google.cloud.billing.v1.PricingExpressionOrBuilder>( + getPricingExpression(), + getParentForChildren(), + isClean()); pricingExpression_ = null; } return pricingExpressionBuilder_; @@ -1296,49 +1160,36 @@ public com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressi private com.google.cloud.billing.v1.AggregationInfo aggregationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.AggregationInfo, - com.google.cloud.billing.v1.AggregationInfo.Builder, - com.google.cloud.billing.v1.AggregationInfoOrBuilder> - aggregationInfoBuilder_; + com.google.cloud.billing.v1.AggregationInfo, com.google.cloud.billing.v1.AggregationInfo.Builder, com.google.cloud.billing.v1.AggregationInfoOrBuilder> aggregationInfoBuilder_; /** - * - * *
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
      * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; - * * @return Whether the aggregationInfo field is set. */ public boolean hasAggregationInfo() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
      * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; - * * @return The aggregationInfo. */ public com.google.cloud.billing.v1.AggregationInfo getAggregationInfo() { if (aggregationInfoBuilder_ == null) { - return aggregationInfo_ == null - ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance() - : aggregationInfo_; + return aggregationInfo_ == null ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance() : aggregationInfo_; } else { return aggregationInfoBuilder_.getMessage(); } } /** - * - * *
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1360,8 +1211,6 @@ public Builder setAggregationInfo(com.google.cloud.billing.v1.AggregationInfo va
       return this;
     }
     /**
-     *
-     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1381,8 +1230,6 @@ public Builder setAggregationInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1392,10 +1239,9 @@ public Builder setAggregationInfo(
      */
     public Builder mergeAggregationInfo(com.google.cloud.billing.v1.AggregationInfo value) {
       if (aggregationInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && aggregationInfo_ != null
-            && aggregationInfo_
-                != com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          aggregationInfo_ != null &&
+          aggregationInfo_ != com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance()) {
           getAggregationInfoBuilder().mergeFrom(value);
         } else {
           aggregationInfo_ = value;
@@ -1408,8 +1254,6 @@ public Builder mergeAggregationInfo(com.google.cloud.billing.v1.AggregationInfo
       return this;
     }
     /**
-     *
-     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1428,8 +1272,6 @@ public Builder clearAggregationInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1443,8 +1285,6 @@ public com.google.cloud.billing.v1.AggregationInfo.Builder getAggregationInfoBui
       return getAggregationInfoFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1456,14 +1296,11 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
       if (aggregationInfoBuilder_ != null) {
         return aggregationInfoBuilder_.getMessageOrBuilder();
       } else {
-        return aggregationInfo_ == null
-            ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance()
-            : aggregationInfo_;
+        return aggregationInfo_ == null ?
+            com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance() : aggregationInfo_;
       }
     }
     /**
-     *
-     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1472,26 +1309,21 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
      * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.v1.AggregationInfo,
-            com.google.cloud.billing.v1.AggregationInfo.Builder,
-            com.google.cloud.billing.v1.AggregationInfoOrBuilder>
+        com.google.cloud.billing.v1.AggregationInfo, com.google.cloud.billing.v1.AggregationInfo.Builder, com.google.cloud.billing.v1.AggregationInfoOrBuilder> 
         getAggregationInfoFieldBuilder() {
       if (aggregationInfoBuilder_ == null) {
-        aggregationInfoBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.billing.v1.AggregationInfo,
-                com.google.cloud.billing.v1.AggregationInfo.Builder,
-                com.google.cloud.billing.v1.AggregationInfoOrBuilder>(
-                getAggregationInfo(), getParentForChildren(), isClean());
+        aggregationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.billing.v1.AggregationInfo, com.google.cloud.billing.v1.AggregationInfo.Builder, com.google.cloud.billing.v1.AggregationInfoOrBuilder>(
+                getAggregationInfo(),
+                getParentForChildren(),
+                isClean());
         aggregationInfo_ = null;
       }
       return aggregationInfoBuilder_;
     }
 
-    private double currencyConversionRate_;
+    private double currencyConversionRate_ ;
     /**
-     *
-     *
      * 
      * Conversion rate used for currency conversion, from USD to the currency
      * specified in the request. This includes any surcharge collected for billing
@@ -1501,7 +1333,6 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
      * 
* * double currency_conversion_rate = 5; - * * @return The currencyConversionRate. */ @java.lang.Override @@ -1509,8 +1340,6 @@ public double getCurrencyConversionRate() { return currencyConversionRate_; } /** - * - * *
      * Conversion rate used for currency conversion, from USD to the currency
      * specified in the request. This includes any surcharge collected for billing
@@ -1520,7 +1349,6 @@ public double getCurrencyConversionRate() {
      * 
* * double currency_conversion_rate = 5; - * * @param value The currencyConversionRate to set. * @return This builder for chaining. */ @@ -1532,8 +1360,6 @@ public Builder setCurrencyConversionRate(double value) { return this; } /** - * - * *
      * Conversion rate used for currency conversion, from USD to the currency
      * specified in the request. This includes any surcharge collected for billing
@@ -1543,7 +1369,6 @@ public Builder setCurrencyConversionRate(double value) {
      * 
* * double currency_conversion_rate = 5; - * * @return This builder for chaining. */ public Builder clearCurrencyConversionRate() { @@ -1552,9 +1377,9 @@ public Builder clearCurrencyConversionRate() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1564,12 +1389,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.PricingInfo) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.PricingInfo) private static final com.google.cloud.billing.v1.PricingInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.PricingInfo(); } @@ -1578,27 +1403,27 @@ public static com.google.cloud.billing.v1.PricingInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PricingInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PricingInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1613,4 +1438,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.PricingInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java similarity index 84% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java index f73658296ba7..c7ac5c8a9b7f 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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 interface PricingInfoOrBuilder - extends +public interface PricingInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.PricingInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -36,13 +18,10 @@ public interface PricingInfoOrBuilder
    * 
* * .google.protobuf.Timestamp effective_time = 1; - * * @return Whether the effectiveTime field is set. */ boolean hasEffectiveTime(); /** - * - * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -53,13 +32,10 @@ public interface PricingInfoOrBuilder
    * 
* * .google.protobuf.Timestamp effective_time = 1; - * * @return The effectiveTime. */ com.google.protobuf.Timestamp getEffectiveTime(); /** - * - * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -74,59 +50,46 @@ public interface PricingInfoOrBuilder
   com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * An optional human readable summary of the pricing information, has a
    * maximum length of 256 characters.
    * 
* * string summary = 2; - * * @return The summary. */ java.lang.String getSummary(); /** - * - * *
    * An optional human readable summary of the pricing information, has a
    * maximum length of 256 characters.
    * 
* * string summary = 2; - * * @return The bytes for summary. */ - com.google.protobuf.ByteString getSummaryBytes(); + com.google.protobuf.ByteString + getSummaryBytes(); /** - * - * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; - * * @return Whether the pricingExpression field is set. */ boolean hasPricingExpression(); /** - * - * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; - * * @return The pricingExpression. */ com.google.cloud.billing.v1.PricingExpression getPricingExpression(); /** - * - * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
@@ -136,34 +99,26 @@ public interface PricingInfoOrBuilder com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressionOrBuilder(); /** - * - * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
    * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; - * * @return Whether the aggregationInfo field is set. */ boolean hasAggregationInfo(); /** - * - * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
    * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; - * * @return The aggregationInfo. */ com.google.cloud.billing.v1.AggregationInfo getAggregationInfo(); /** - * - * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
@@ -174,8 +129,6 @@ public interface PricingInfoOrBuilder
   com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOrBuilder();
 
   /**
-   *
-   *
    * 
    * Conversion rate used for currency conversion, from USD to the currency
    * specified in the request. This includes any surcharge collected for billing
@@ -185,7 +138,6 @@ public interface PricingInfoOrBuilder
    * 
* * double currency_conversion_rate = 5; - * * @return The currencyConversionRate. */ double getCurrencyConversionRate(); diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java similarity index 74% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java index ab0fc4b06a3e..ec2a2c094992 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java @@ -1,26 +1,9 @@ -/* - * 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; /** - * - * *
  * Encapsulation of billing information for a Google Cloud Console project. A
  * project has at most one associated billing account at a time (but a billing
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.billing.v1.ProjectBillingInfo}
  */
-public final class ProjectBillingInfo extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ProjectBillingInfo extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ProjectBillingInfo)
     ProjectBillingInfoOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ProjectBillingInfo.newBuilder() to construct.
   private ProjectBillingInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ProjectBillingInfo() {
     name_ = "";
     projectId_ = "";
@@ -47,32 +29,28 @@ private ProjectBillingInfo() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ProjectBillingInfo();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.billing.v1.CloudBillingProto
-        .internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.v1.CloudBillingProto
-        .internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable
+    return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.v1.ProjectBillingInfo.class,
-            com.google.cloud.billing.v1.ProjectBillingInfo.Builder.class);
+            com.google.cloud.billing.v1.ProjectBillingInfo.class, com.google.cloud.billing.v1.ProjectBillingInfo.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. The resource name for the `ProjectBillingInfo`; has the form
    * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -81,7 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -90,15 +67,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name for the `ProjectBillingInfo`; has the form
    * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -107,15 +83,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,12 +101,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PROJECT_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * *
    * Output only. The ID of the project that this `ProjectBillingInfo`
    * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -137,7 +111,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The projectId. */ @java.lang.Override @@ -146,15 +119,14 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
    * Output only. The ID of the project that this `ProjectBillingInfo`
    * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -162,15 +134,16 @@ public java.lang.String getProjectId() {
    * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -179,19 +152,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int BILLING_ACCOUNT_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object billingAccountName_ = ""; /** - * - * *
    * The resource name of the billing account associated with the project, if
    * any. For example, `billingAccounts/012345-567890-ABCDEF`.
    * 
* * string billing_account_name = 3; - * * @return The billingAccountName. */ @java.lang.Override @@ -200,30 +169,30 @@ public java.lang.String getBillingAccountName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); billingAccountName_ = s; return s; } } /** - * - * *
    * The resource name of the billing account associated with the project, if
    * any. For example, `billingAccounts/012345-567890-ABCDEF`.
    * 
* * string billing_account_name = 3; - * * @return The bytes for billingAccountName. */ @java.lang.Override - public com.google.protobuf.ByteString getBillingAccountNameBytes() { + public com.google.protobuf.ByteString + getBillingAccountNameBytes() { java.lang.Object ref = billingAccountName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); billingAccountName_ = b; return b; } else { @@ -234,8 +203,6 @@ public com.google.protobuf.ByteString getBillingAccountNameBytes() { public static final int BILLING_ENABLED_FIELD_NUMBER = 4; private boolean billingEnabled_ = false; /** - * - * *
    * Output only. True if the project is associated with an open billing
    * account, to which usage on the project is charged. False if the project is
@@ -244,7 +211,6 @@ public com.google.protobuf.ByteString getBillingAccountNameBytes() {
    * 
* * bool billing_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The billingEnabled. */ @java.lang.Override @@ -253,7 +219,6 @@ public boolean getBillingEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +230,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -297,7 +263,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, billingAccountName_); } if (billingEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, billingEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, billingEnabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -307,18 +274,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ProjectBillingInfo)) { return super.equals(obj); } - com.google.cloud.billing.v1.ProjectBillingInfo other = - (com.google.cloud.billing.v1.ProjectBillingInfo) obj; - - if (!getName().equals(other.getName())) return false; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getBillingAccountName().equals(other.getBillingAccountName())) return false; - if (getBillingEnabled() != other.getBillingEnabled()) return false; + com.google.cloud.billing.v1.ProjectBillingInfo other = (com.google.cloud.billing.v1.ProjectBillingInfo) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getBillingAccountName() + .equals(other.getBillingAccountName())) return false; + if (getBillingEnabled() + != other.getBillingEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -337,110 +307,106 @@ public int hashCode() { hash = (37 * hash) + BILLING_ACCOUNT_NAME_FIELD_NUMBER; hash = (53 * hash) + getBillingAccountName().hashCode(); hash = (37 * hash) + BILLING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBillingEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBillingEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ProjectBillingInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ProjectBillingInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ProjectBillingInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.ProjectBillingInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Encapsulation of billing information for a Google Cloud Console project. A
    * project has at most one associated billing account at a time (but a billing
@@ -449,32 +415,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.v1.ProjectBillingInfo}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ProjectBillingInfo)
       com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.v1.CloudBillingProto
-          .internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.v1.CloudBillingProto
-          .internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable
+      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.v1.ProjectBillingInfo.class,
-              com.google.cloud.billing.v1.ProjectBillingInfo.Builder.class);
+              com.google.cloud.billing.v1.ProjectBillingInfo.class, com.google.cloud.billing.v1.ProjectBillingInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.v1.ProjectBillingInfo.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -487,9 +454,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.v1.CloudBillingProto
-          .internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
     }
 
     @java.lang.Override
@@ -508,11 +475,8 @@ public com.google.cloud.billing.v1.ProjectBillingInfo build() {
 
     @java.lang.Override
     public com.google.cloud.billing.v1.ProjectBillingInfo buildPartial() {
-      com.google.cloud.billing.v1.ProjectBillingInfo result =
-          new com.google.cloud.billing.v1.ProjectBillingInfo(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.billing.v1.ProjectBillingInfo result = new com.google.cloud.billing.v1.ProjectBillingInfo(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -537,39 +501,38 @@ private void buildPartial0(com.google.cloud.billing.v1.ProjectBillingInfo result
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.billing.v1.ProjectBillingInfo) {
-        return mergeFrom((com.google.cloud.billing.v1.ProjectBillingInfo) other);
+        return mergeFrom((com.google.cloud.billing.v1.ProjectBillingInfo)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -622,37 +585,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                projectId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                billingAccountName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                billingEnabled_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              projectId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              billingAccountName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              billingEnabled_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -662,13 +620,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name for the `ProjectBillingInfo`; has the form
      * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -677,13 +632,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -692,8 +647,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name for the `ProjectBillingInfo`; has the form
      * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -702,14 +655,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -717,8 +671,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name for the `ProjectBillingInfo`; has the form
      * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -727,22 +679,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name for the `ProjectBillingInfo`; has the form
      * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -751,7 +699,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -761,8 +708,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name for the `ProjectBillingInfo`; has the form
      * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -771,14 +716,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -788,8 +731,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * *
      * Output only. The ID of the project that this `ProjectBillingInfo`
      * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -797,13 +738,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -812,8 +753,6 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Output only. The ID of the project that this `ProjectBillingInfo`
      * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -821,14 +760,15 @@ public java.lang.String getProjectId() {
      * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -836,8 +776,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Output only. The ID of the project that this `ProjectBillingInfo`
      * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -845,22 +783,18 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
      * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. The ID of the project that this `ProjectBillingInfo`
      * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -868,7 +802,6 @@ public Builder setProjectId(java.lang.String value) {
      * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -878,8 +811,6 @@ public Builder clearProjectId() { return this; } /** - * - * *
      * Output only. The ID of the project that this `ProjectBillingInfo`
      * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -887,14 +818,12 @@ public Builder clearProjectId() {
      * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000002; @@ -904,21 +833,19 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object billingAccountName_ = ""; /** - * - * *
      * The resource name of the billing account associated with the project, if
      * any. For example, `billingAccounts/012345-567890-ABCDEF`.
      * 
* * string billing_account_name = 3; - * * @return The billingAccountName. */ public java.lang.String getBillingAccountName() { java.lang.Object ref = billingAccountName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); billingAccountName_ = s; return s; @@ -927,22 +854,21 @@ public java.lang.String getBillingAccountName() { } } /** - * - * *
      * The resource name of the billing account associated with the project, if
      * any. For example, `billingAccounts/012345-567890-ABCDEF`.
      * 
* * string billing_account_name = 3; - * * @return The bytes for billingAccountName. */ - public com.google.protobuf.ByteString getBillingAccountNameBytes() { + public com.google.protobuf.ByteString + getBillingAccountNameBytes() { java.lang.Object ref = billingAccountName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); billingAccountName_ = b; return b; } else { @@ -950,37 +876,30 @@ public com.google.protobuf.ByteString getBillingAccountNameBytes() { } } /** - * - * *
      * The resource name of the billing account associated with the project, if
      * any. For example, `billingAccounts/012345-567890-ABCDEF`.
      * 
* * string billing_account_name = 3; - * * @param value The billingAccountName to set. * @return This builder for chaining. */ - public Builder setBillingAccountName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBillingAccountName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } billingAccountName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The resource name of the billing account associated with the project, if
      * any. For example, `billingAccounts/012345-567890-ABCDEF`.
      * 
* * string billing_account_name = 3; - * * @return This builder for chaining. */ public Builder clearBillingAccountName() { @@ -990,22 +909,18 @@ public Builder clearBillingAccountName() { return this; } /** - * - * *
      * The resource name of the billing account associated with the project, if
      * any. For example, `billingAccounts/012345-567890-ABCDEF`.
      * 
* * string billing_account_name = 3; - * * @param value The bytes for billingAccountName to set. * @return This builder for chaining. */ - public Builder setBillingAccountNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBillingAccountNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); billingAccountName_ = value; bitField0_ |= 0x00000004; @@ -1013,10 +928,8 @@ public Builder setBillingAccountNameBytes(com.google.protobuf.ByteString value) return this; } - private boolean billingEnabled_; + private boolean billingEnabled_ ; /** - * - * *
      * Output only. True if the project is associated with an open billing
      * account, to which usage on the project is charged. False if the project is
@@ -1025,7 +938,6 @@ public Builder setBillingAccountNameBytes(com.google.protobuf.ByteString value)
      * 
* * bool billing_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The billingEnabled. */ @java.lang.Override @@ -1033,8 +945,6 @@ public boolean getBillingEnabled() { return billingEnabled_; } /** - * - * *
      * Output only. True if the project is associated with an open billing
      * account, to which usage on the project is charged. False if the project is
@@ -1043,7 +953,6 @@ public boolean getBillingEnabled() {
      * 
* * bool billing_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The billingEnabled to set. * @return This builder for chaining. */ @@ -1055,8 +964,6 @@ public Builder setBillingEnabled(boolean value) { return this; } /** - * - * *
      * Output only. True if the project is associated with an open billing
      * account, to which usage on the project is charged. False if the project is
@@ -1065,7 +972,6 @@ public Builder setBillingEnabled(boolean value) {
      * 
* * bool billing_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearBillingEnabled() { @@ -1074,9 +980,9 @@ public Builder clearBillingEnabled() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1086,12 +992,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ProjectBillingInfo) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ProjectBillingInfo) private static final com.google.cloud.billing.v1.ProjectBillingInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ProjectBillingInfo(); } @@ -1100,27 +1006,27 @@ public static com.google.cloud.billing.v1.ProjectBillingInfo getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectBillingInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectBillingInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,4 +1041,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ProjectBillingInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java similarity index 76% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java index 6731c9d52cee..a89726210187 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * 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 ProjectBillingInfoOrBuilder - extends +public interface ProjectBillingInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ProjectBillingInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name for the `ProjectBillingInfo`; has the form
    * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -34,13 +16,10 @@ public interface ProjectBillingInfoOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name for the `ProjectBillingInfo`; has the form
    * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -49,14 +28,12 @@ public interface ProjectBillingInfoOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The ID of the project that this `ProjectBillingInfo`
    * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -64,13 +41,10 @@ public interface ProjectBillingInfoOrBuilder
    * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Output only. The ID of the project that this `ProjectBillingInfo`
    * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -78,41 +52,34 @@ public interface ProjectBillingInfoOrBuilder
    * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
    * The resource name of the billing account associated with the project, if
    * any. For example, `billingAccounts/012345-567890-ABCDEF`.
    * 
* * string billing_account_name = 3; - * * @return The billingAccountName. */ java.lang.String getBillingAccountName(); /** - * - * *
    * The resource name of the billing account associated with the project, if
    * any. For example, `billingAccounts/012345-567890-ABCDEF`.
    * 
* * string billing_account_name = 3; - * * @return The bytes for billingAccountName. */ - com.google.protobuf.ByteString getBillingAccountNameBytes(); + com.google.protobuf.ByteString + getBillingAccountNameBytes(); /** - * - * *
    * Output only. True if the project is associated with an open billing
    * account, to which usage on the project is charged. False if the project is
@@ -121,7 +88,6 @@ public interface ProjectBillingInfoOrBuilder
    * 
* * bool billing_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The billingEnabled. */ boolean getBillingEnabled(); diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectName.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectName.java similarity index 100% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectName.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectName.java diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java similarity index 70% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java index 67caabae9d4f..26b3445ce0b6 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.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; /** - * - * *
  * Encapsulates a single service in Google Cloud Platform.
  * 
* * Protobuf type {@code google.cloud.billing.v1.Service} */ -public final class Service extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Service extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.Service) ServiceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Service.newBuilder() to construct. private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Service() { name_ = ""; serviceId_ = ""; @@ -46,39 +28,34 @@ private Service() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Service(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Service_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Service_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Service_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Service_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.Service.class, - com.google.cloud.billing.v1.Service.Builder.class); + com.google.cloud.billing.v1.Service.class, com.google.cloud.billing.v1.Service.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name for the service.
    * Example: "services/DA34-426B-A397"
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -87,30 +64,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name for the service.
    * Example: "services/DA34-426B-A397"
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -119,19 +96,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int SERVICE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object serviceId_ = ""; /** - * - * *
    * The identifier for the service.
    * Example: "DA34-426B-A397"
    * 
* * string service_id = 2; - * * @return The serviceId. */ @java.lang.Override @@ -140,30 +113,30 @@ public java.lang.String getServiceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceId_ = s; return s; } } /** - * - * *
    * The identifier for the service.
    * Example: "DA34-426B-A397"
    * 
* * string service_id = 2; - * * @return The bytes for serviceId. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceIdBytes() { + public com.google.protobuf.ByteString + getServiceIdBytes() { java.lang.Object ref = serviceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceId_ = b; return b; } else { @@ -172,18 +145,14 @@ public com.google.protobuf.ByteString getServiceIdBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * A human readable display name for this service.
    * 
* * string display_name = 3; - * * @return The displayName. */ @java.lang.Override @@ -192,29 +161,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * A human readable display name for this service.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -223,19 +192,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int BUSINESS_ENTITY_NAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object businessEntityName_ = ""; /** - * - * *
    * The business under which the service is offered.
    * Ex. "businessEntities/GCP", "businessEntities/Maps"
    * 
* * string business_entity_name = 4; - * * @return The businessEntityName. */ @java.lang.Override @@ -244,30 +209,30 @@ public java.lang.String getBusinessEntityName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); businessEntityName_ = s; return s; } } /** - * - * *
    * The business under which the service is offered.
    * Ex. "businessEntities/GCP", "businessEntities/Maps"
    * 
* * string business_entity_name = 4; - * * @return The bytes for businessEntityName. */ @java.lang.Override - public com.google.protobuf.ByteString getBusinessEntityNameBytes() { + public com.google.protobuf.ByteString + getBusinessEntityNameBytes() { java.lang.Object ref = businessEntityName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); businessEntityName_ = b; return b; } else { @@ -276,7 +241,6 @@ public com.google.protobuf.ByteString getBusinessEntityNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,7 +252,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -330,17 +295,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.Service)) { return super.equals(obj); } com.google.cloud.billing.v1.Service other = (com.google.cloud.billing.v1.Service) obj; - if (!getName().equals(other.getName())) return false; - if (!getServiceId().equals(other.getServiceId())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getBusinessEntityName().equals(other.getBusinessEntityName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getServiceId() + .equals(other.getServiceId())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getBusinessEntityName() + .equals(other.getBusinessEntityName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -365,135 +334,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.Service parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.Service parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.Service parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.billing.v1.Service parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.billing.v1.Service parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.Service parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.Service parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.Service parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.Service parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.Service parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.cloud.billing.v1.Service parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.Service parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.Service parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.Service parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.Service prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Encapsulates a single service in Google Cloud Platform.
    * 
* * Protobuf type {@code google.cloud.billing.v1.Service} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.Service) com.google.cloud.billing.v1.ServiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Service_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Service_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Service_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Service_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.Service.class, - com.google.cloud.billing.v1.Service.Builder.class); + com.google.cloud.billing.v1.Service.class, com.google.cloud.billing.v1.Service.Builder.class); } // Construct using com.google.cloud.billing.v1.Service.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -506,9 +472,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Service_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Service_descriptor; } @java.lang.Override @@ -528,9 +494,7 @@ public com.google.cloud.billing.v1.Service build() { @java.lang.Override public com.google.cloud.billing.v1.Service buildPartial() { com.google.cloud.billing.v1.Service result = new com.google.cloud.billing.v1.Service(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -555,39 +519,38 @@ private void buildPartial0(com.google.cloud.billing.v1.Service result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.Service) { - return mergeFrom((com.google.cloud.billing.v1.Service) other); + return mergeFrom((com.google.cloud.billing.v1.Service)other); } else { super.mergeFrom(other); return this; @@ -642,37 +605,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - serviceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - businessEntityName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + serviceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + businessEntityName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -682,26 +640,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name for the service.
      * Example: "services/DA34-426B-A397"
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -710,22 +665,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name for the service.
      * Example: "services/DA34-426B-A397"
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -733,37 +687,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name for the service.
      * Example: "services/DA34-426B-A397"
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name for the service.
      * Example: "services/DA34-426B-A397"
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -773,22 +720,18 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name for the service.
      * Example: "services/DA34-426B-A397"
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -798,21 +741,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceId_ = ""; /** - * - * *
      * The identifier for the service.
      * Example: "DA34-426B-A397"
      * 
* * string service_id = 2; - * * @return The serviceId. */ public java.lang.String getServiceId() { java.lang.Object ref = serviceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceId_ = s; return s; @@ -821,22 +762,21 @@ public java.lang.String getServiceId() { } } /** - * - * *
      * The identifier for the service.
      * Example: "DA34-426B-A397"
      * 
* * string service_id = 2; - * * @return The bytes for serviceId. */ - public com.google.protobuf.ByteString getServiceIdBytes() { + public com.google.protobuf.ByteString + getServiceIdBytes() { java.lang.Object ref = serviceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceId_ = b; return b; } else { @@ -844,37 +784,30 @@ public com.google.protobuf.ByteString getServiceIdBytes() { } } /** - * - * *
      * The identifier for the service.
      * Example: "DA34-426B-A397"
      * 
* * string service_id = 2; - * * @param value The serviceId to set. * @return This builder for chaining. */ - public Builder setServiceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The identifier for the service.
      * Example: "DA34-426B-A397"
      * 
* * string service_id = 2; - * * @return This builder for chaining. */ public Builder clearServiceId() { @@ -884,22 +817,18 @@ public Builder clearServiceId() { return this; } /** - * - * *
      * The identifier for the service.
      * Example: "DA34-426B-A397"
      * 
* * string service_id = 2; - * * @param value The bytes for serviceId to set. * @return This builder for chaining. */ - public Builder setServiceIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceId_ = value; bitField0_ |= 0x00000002; @@ -909,20 +838,18 @@ public Builder setServiceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * A human readable display name for this service.
      * 
* * string display_name = 3; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -931,21 +858,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * A human readable display name for this service.
      * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -953,35 +879,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * A human readable display name for this service.
      * 
* * string display_name = 3; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A human readable display name for this service.
      * 
* * string display_name = 3; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -991,21 +910,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * A human readable display name for this service.
      * 
* * string display_name = 3; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -1015,21 +930,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object businessEntityName_ = ""; /** - * - * *
      * The business under which the service is offered.
      * Ex. "businessEntities/GCP", "businessEntities/Maps"
      * 
* * string business_entity_name = 4; - * * @return The businessEntityName. */ public java.lang.String getBusinessEntityName() { java.lang.Object ref = businessEntityName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); businessEntityName_ = s; return s; @@ -1038,22 +951,21 @@ public java.lang.String getBusinessEntityName() { } } /** - * - * *
      * The business under which the service is offered.
      * Ex. "businessEntities/GCP", "businessEntities/Maps"
      * 
* * string business_entity_name = 4; - * * @return The bytes for businessEntityName. */ - public com.google.protobuf.ByteString getBusinessEntityNameBytes() { + public com.google.protobuf.ByteString + getBusinessEntityNameBytes() { java.lang.Object ref = businessEntityName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); businessEntityName_ = b; return b; } else { @@ -1061,37 +973,30 @@ public com.google.protobuf.ByteString getBusinessEntityNameBytes() { } } /** - * - * *
      * The business under which the service is offered.
      * Ex. "businessEntities/GCP", "businessEntities/Maps"
      * 
* * string business_entity_name = 4; - * * @param value The businessEntityName to set. * @return This builder for chaining. */ - public Builder setBusinessEntityName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBusinessEntityName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } businessEntityName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The business under which the service is offered.
      * Ex. "businessEntities/GCP", "businessEntities/Maps"
      * 
* * string business_entity_name = 4; - * * @return This builder for chaining. */ public Builder clearBusinessEntityName() { @@ -1101,31 +1006,27 @@ public Builder clearBusinessEntityName() { return this; } /** - * - * *
      * The business under which the service is offered.
      * Ex. "businessEntities/GCP", "businessEntities/Maps"
      * 
* * string business_entity_name = 4; - * * @param value The bytes for businessEntityName to set. * @return This builder for chaining. */ - public Builder setBusinessEntityNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBusinessEntityNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); businessEntityName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1135,12 +1036,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.Service) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.Service) private static final com.google.cloud.billing.v1.Service DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.Service(); } @@ -1149,27 +1050,27 @@ public static com.google.cloud.billing.v1.Service getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Service parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Service parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1184,4 +1085,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.Service getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java similarity index 100% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java similarity index 66% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java index 4991fbd63f01..88ca18ce0a6a 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java @@ -1,131 +1,95 @@ -/* - * 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 interface ServiceOrBuilder - extends +public interface ServiceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.Service) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name for the service.
    * Example: "services/DA34-426B-A397"
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name for the service.
    * Example: "services/DA34-426B-A397"
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The identifier for the service.
    * Example: "DA34-426B-A397"
    * 
* * string service_id = 2; - * * @return The serviceId. */ java.lang.String getServiceId(); /** - * - * *
    * The identifier for the service.
    * Example: "DA34-426B-A397"
    * 
* * string service_id = 2; - * * @return The bytes for serviceId. */ - com.google.protobuf.ByteString getServiceIdBytes(); + com.google.protobuf.ByteString + getServiceIdBytes(); /** - * - * *
    * A human readable display name for this service.
    * 
* * string display_name = 3; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * A human readable display name for this service.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The business under which the service is offered.
    * Ex. "businessEntities/GCP", "businessEntities/Maps"
    * 
* * string business_entity_name = 4; - * * @return The businessEntityName. */ java.lang.String getBusinessEntityName(); /** - * - * *
    * The business under which the service is offered.
    * Ex. "businessEntities/GCP", "businessEntities/Maps"
    * 
* * string business_entity_name = 4; - * * @return The bytes for businessEntityName. */ - com.google.protobuf.ByteString getBusinessEntityNameBytes(); + com.google.protobuf.ByteString + getBusinessEntityNameBytes(); } diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java similarity index 74% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java index 48a3badb93ac..1db9f933931f 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java @@ -1,85 +1,64 @@ -/* - * 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; /** - * - * *
  * Encapsulates a single SKU in Google Cloud Platform
  * 
* * Protobuf type {@code google.cloud.billing.v1.Sku} */ -public final class Sku extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Sku extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.Sku) SkuOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Sku.newBuilder() to construct. private Sku(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Sku() { name_ = ""; skuId_ = ""; description_ = ""; - serviceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceRegions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); pricingInfo_ = java.util.Collections.emptyList(); serviceProviderName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Sku(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Sku_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.billing.v1.Sku.class, com.google.cloud.billing.v1.Sku.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name for the SKU.
    * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -88,30 +67,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name for the SKU.
    * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,19 +99,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int SKU_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object skuId_ = ""; /** - * - * *
    * The identifier for the SKU.
    * Example: "AA95-CD31-42FE"
    * 
* * string sku_id = 2; - * * @return The skuId. */ @java.lang.Override @@ -141,30 +116,30 @@ public java.lang.String getSkuId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); skuId_ = s; return s; } } /** - * - * *
    * The identifier for the SKU.
    * Example: "AA95-CD31-42FE"
    * 
* * string sku_id = 2; - * * @return The bytes for skuId. */ @java.lang.Override - public com.google.protobuf.ByteString getSkuIdBytes() { + public com.google.protobuf.ByteString + getSkuIdBytes() { java.lang.Object ref = skuId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); skuId_ = b; return b; } else { @@ -173,19 +148,15 @@ public com.google.protobuf.ByteString getSkuIdBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * A human readable description of the SKU, has a maximum length of 256
    * characters.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -194,30 +165,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * A human readable description of the SKU, has a maximum length of 256
    * characters.
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -228,14 +199,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CATEGORY_FIELD_NUMBER = 4; private com.google.cloud.billing.v1.Category category_; /** - * - * *
    * The category hierarchy of this SKU, purely for organizational purpose.
    * 
* * .google.cloud.billing.v1.Category category = 4; - * * @return Whether the category field is set. */ @java.lang.Override @@ -243,25 +211,18 @@ public boolean hasCategory() { return category_ != null; } /** - * - * *
    * The category hierarchy of this SKU, purely for organizational purpose.
    * 
* * .google.cloud.billing.v1.Category category = 4; - * * @return The category. */ @java.lang.Override public com.google.cloud.billing.v1.Category getCategory() { - return category_ == null - ? com.google.cloud.billing.v1.Category.getDefaultInstance() - : category_; + return category_ == null ? com.google.cloud.billing.v1.Category.getDefaultInstance() : category_; } /** - * - * *
    * The category hierarchy of this SKU, purely for organizational purpose.
    * 
@@ -270,19 +231,14 @@ public com.google.cloud.billing.v1.Category getCategory() { */ @java.lang.Override public com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder() { - return category_ == null - ? com.google.cloud.billing.v1.Category.getDefaultInstance() - : category_; + return category_ == null ? com.google.cloud.billing.v1.Category.getDefaultInstance() : category_; } public static final int SERVICE_REGIONS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList serviceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -290,15 +246,13 @@ public com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder() {
    * 
* * repeated string service_regions = 5; - * * @return A list containing the serviceRegions. */ - public com.google.protobuf.ProtocolStringList getServiceRegionsList() { + public com.google.protobuf.ProtocolStringList + getServiceRegionsList() { return serviceRegions_; } /** - * - * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -306,15 +260,12 @@ public com.google.protobuf.ProtocolStringList getServiceRegionsList() {
    * 
* * repeated string service_regions = 5; - * * @return The count of serviceRegions. */ public int getServiceRegionsCount() { return serviceRegions_.size(); } /** - * - * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -322,7 +273,6 @@ public int getServiceRegionsCount() {
    * 
* * repeated string service_regions = 5; - * * @param index The index of the element to return. * @return The serviceRegions at the given index. */ @@ -330,8 +280,6 @@ public java.lang.String getServiceRegions(int index) { return serviceRegions_.get(index); } /** - * - * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -339,21 +287,18 @@ public java.lang.String getServiceRegions(int index) {
    * 
* * repeated string service_regions = 5; - * * @param index The index of the value to return. * @return The bytes of the serviceRegions at the given index. */ - public com.google.protobuf.ByteString getServiceRegionsBytes(int index) { + public com.google.protobuf.ByteString + getServiceRegionsBytes(int index) { return serviceRegions_.getByteString(index); } public static final int PRICING_INFO_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private java.util.List pricingInfo_; /** - * - * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -365,8 +310,6 @@ public java.util.List getPricingInfoLis return pricingInfo_; } /** - * - * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -374,13 +317,11 @@ public java.util.List getPricingInfoLis * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ @java.lang.Override - public java.util.List + public java.util.List getPricingInfoOrBuilderList() { return pricingInfo_; } /** - * - * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -392,8 +333,6 @@ public int getPricingInfoCount() { return pricingInfo_.size(); } /** - * - * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -405,8 +344,6 @@ public com.google.cloud.billing.v1.PricingInfo getPricingInfo(int index) { return pricingInfo_.get(index); } /** - * - * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -414,24 +351,21 @@ public com.google.cloud.billing.v1.PricingInfo getPricingInfo(int index) { * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ @java.lang.Override - public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder(int index) { + public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( + int index) { return pricingInfo_.get(index); } public static final int SERVICE_PROVIDER_NAME_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object serviceProviderName_ = ""; /** - * - * *
    * Identifies the service provider.
    * This is 'Google' for first party services in Google Cloud Platform.
    * 
* * string service_provider_name = 7; - * * @return The serviceProviderName. */ @java.lang.Override @@ -440,30 +374,30 @@ public java.lang.String getServiceProviderName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceProviderName_ = s; return s; } } /** - * - * *
    * Identifies the service provider.
    * This is 'Google' for first party services in Google Cloud Platform.
    * 
* * string service_provider_name = 7; - * * @return The bytes for serviceProviderName. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceProviderNameBytes() { + public com.google.protobuf.ByteString + getServiceProviderNameBytes() { java.lang.Object ref = serviceProviderName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceProviderName_ = b; return b; } else { @@ -474,14 +408,11 @@ public com.google.protobuf.ByteString getServiceProviderNameBytes() { public static final int GEO_TAXONOMY_FIELD_NUMBER = 8; private com.google.cloud.billing.v1.GeoTaxonomy geoTaxonomy_; /** - * - * *
    * The geographic taxonomy for this sku.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; - * * @return Whether the geoTaxonomy field is set. */ @java.lang.Override @@ -489,25 +420,18 @@ public boolean hasGeoTaxonomy() { return geoTaxonomy_ != null; } /** - * - * *
    * The geographic taxonomy for this sku.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; - * * @return The geoTaxonomy. */ @java.lang.Override public com.google.cloud.billing.v1.GeoTaxonomy getGeoTaxonomy() { - return geoTaxonomy_ == null - ? com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() - : geoTaxonomy_; + return geoTaxonomy_ == null ? com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() : geoTaxonomy_; } /** - * - * *
    * The geographic taxonomy for this sku.
    * 
@@ -516,13 +440,10 @@ public com.google.cloud.billing.v1.GeoTaxonomy getGeoTaxonomy() { */ @java.lang.Override public com.google.cloud.billing.v1.GeoTaxonomyOrBuilder getGeoTaxonomyOrBuilder() { - return geoTaxonomy_ == null - ? com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() - : geoTaxonomy_; + return geoTaxonomy_ == null ? com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() : geoTaxonomy_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -534,7 +455,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -578,7 +500,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (category_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCategory()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCategory()); } { int dataSize = 0; @@ -589,13 +512,15 @@ public int getSerializedSize() { size += 1 * getServiceRegionsList().size(); } for (int i = 0; i < pricingInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, pricingInfo_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, pricingInfo_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceProviderName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serviceProviderName_); } if (geoTaxonomy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getGeoTaxonomy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getGeoTaxonomy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -605,26 +530,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.Sku)) { return super.equals(obj); } com.google.cloud.billing.v1.Sku other = (com.google.cloud.billing.v1.Sku) obj; - if (!getName().equals(other.getName())) return false; - if (!getSkuId().equals(other.getSkuId())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getSkuId() + .equals(other.getSkuId())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasCategory() != other.hasCategory()) return false; if (hasCategory()) { - if (!getCategory().equals(other.getCategory())) return false; - } - if (!getServiceRegionsList().equals(other.getServiceRegionsList())) return false; - if (!getPricingInfoList().equals(other.getPricingInfoList())) return false; - if (!getServiceProviderName().equals(other.getServiceProviderName())) return false; + if (!getCategory() + .equals(other.getCategory())) return false; + } + if (!getServiceRegionsList() + .equals(other.getServiceRegionsList())) return false; + if (!getPricingInfoList() + .equals(other.getPricingInfoList())) return false; + if (!getServiceProviderName() + .equals(other.getServiceProviderName())) return false; if (hasGeoTaxonomy() != other.hasGeoTaxonomy()) return false; if (hasGeoTaxonomy()) { - if (!getGeoTaxonomy().equals(other.getGeoTaxonomy())) return false; + if (!getGeoTaxonomy() + .equals(other.getGeoTaxonomy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -666,134 +599,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.Sku parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.Sku parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.Sku parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.billing.v1.Sku parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.billing.v1.Sku parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.Sku parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.Sku parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.Sku parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.Sku parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.Sku parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.cloud.billing.v1.Sku parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.Sku parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.Sku parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.Sku parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.Sku prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Encapsulates a single SKU in Google Cloud Platform
    * 
* * Protobuf type {@code google.cloud.billing.v1.Sku} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.Sku) com.google.cloud.billing.v1.SkuOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Sku_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.billing.v1.Sku.class, com.google.cloud.billing.v1.Sku.Builder.class); } // Construct using com.google.cloud.billing.v1.Sku.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -806,7 +737,8 @@ public Builder clear() { categoryBuilder_.dispose(); categoryBuilder_ = null; } - serviceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceRegions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); if (pricingInfoBuilder_ == null) { pricingInfo_ = java.util.Collections.emptyList(); } else { @@ -824,9 +756,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Sku_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_descriptor; } @java.lang.Override @@ -847,9 +779,7 @@ public com.google.cloud.billing.v1.Sku build() { public com.google.cloud.billing.v1.Sku buildPartial() { com.google.cloud.billing.v1.Sku result = new com.google.cloud.billing.v1.Sku(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -878,7 +808,9 @@ private void buildPartial0(com.google.cloud.billing.v1.Sku result) { result.description_ = description_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.category_ = categoryBuilder_ == null ? category_ : categoryBuilder_.build(); + result.category_ = categoryBuilder_ == null + ? category_ + : categoryBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { serviceRegions_.makeImmutable(); @@ -888,8 +820,9 @@ private void buildPartial0(com.google.cloud.billing.v1.Sku result) { result.serviceProviderName_ = serviceProviderName_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.geoTaxonomy_ = - geoTaxonomyBuilder_ == null ? geoTaxonomy_ : geoTaxonomyBuilder_.build(); + result.geoTaxonomy_ = geoTaxonomyBuilder_ == null + ? geoTaxonomy_ + : geoTaxonomyBuilder_.build(); } } @@ -897,39 +830,38 @@ private void buildPartial0(com.google.cloud.billing.v1.Sku result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.Sku) { - return mergeFrom((com.google.cloud.billing.v1.Sku) other); + return mergeFrom((com.google.cloud.billing.v1.Sku)other); } else { super.mergeFrom(other); return this; @@ -984,10 +916,9 @@ public Builder mergeFrom(com.google.cloud.billing.v1.Sku other) { pricingInfoBuilder_ = null; pricingInfo_ = other.pricingInfo_; bitField0_ = (bitField0_ & ~0x00000020); - pricingInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPricingInfoFieldBuilder() - : null; + pricingInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPricingInfoFieldBuilder() : null; } else { pricingInfoBuilder_.addAllMessages(other.pricingInfo_); } @@ -1027,69 +958,65 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - skuId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getCategoryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureServiceRegionsIsMutable(); - serviceRegions_.add(s); - break; - } // case 42 - case 50: - { - com.google.cloud.billing.v1.PricingInfo m = - input.readMessage( - com.google.cloud.billing.v1.PricingInfo.parser(), extensionRegistry); - if (pricingInfoBuilder_ == null) { - ensurePricingInfoIsMutable(); - pricingInfo_.add(m); - } else { - pricingInfoBuilder_.addMessage(m); - } - break; - } // case 50 - case 58: - { - serviceProviderName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - input.readMessage(getGeoTaxonomyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + skuId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getCategoryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureServiceRegionsIsMutable(); + serviceRegions_.add(s); + break; + } // case 42 + case 50: { + com.google.cloud.billing.v1.PricingInfo m = + input.readMessage( + com.google.cloud.billing.v1.PricingInfo.parser(), + extensionRegistry); + if (pricingInfoBuilder_ == null) { + ensurePricingInfoIsMutable(); + pricingInfo_.add(m); + } else { + pricingInfoBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: { + serviceProviderName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getGeoTaxonomyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1099,26 +1026,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name for the SKU.
      * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1127,22 +1051,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name for the SKU.
      * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1150,37 +1073,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name for the SKU.
      * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name for the SKU.
      * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1190,22 +1106,18 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name for the SKU.
      * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1215,21 +1127,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object skuId_ = ""; /** - * - * *
      * The identifier for the SKU.
      * Example: "AA95-CD31-42FE"
      * 
* * string sku_id = 2; - * * @return The skuId. */ public java.lang.String getSkuId() { java.lang.Object ref = skuId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); skuId_ = s; return s; @@ -1238,22 +1148,21 @@ public java.lang.String getSkuId() { } } /** - * - * *
      * The identifier for the SKU.
      * Example: "AA95-CD31-42FE"
      * 
* * string sku_id = 2; - * * @return The bytes for skuId. */ - public com.google.protobuf.ByteString getSkuIdBytes() { + public com.google.protobuf.ByteString + getSkuIdBytes() { java.lang.Object ref = skuId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); skuId_ = b; return b; } else { @@ -1261,37 +1170,30 @@ public com.google.protobuf.ByteString getSkuIdBytes() { } } /** - * - * *
      * The identifier for the SKU.
      * Example: "AA95-CD31-42FE"
      * 
* * string sku_id = 2; - * * @param value The skuId to set. * @return This builder for chaining. */ - public Builder setSkuId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSkuId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } skuId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The identifier for the SKU.
      * Example: "AA95-CD31-42FE"
      * 
* * string sku_id = 2; - * * @return This builder for chaining. */ public Builder clearSkuId() { @@ -1301,22 +1203,18 @@ public Builder clearSkuId() { return this; } /** - * - * *
      * The identifier for the SKU.
      * Example: "AA95-CD31-42FE"
      * 
* * string sku_id = 2; - * * @param value The bytes for skuId to set. * @return This builder for chaining. */ - public Builder setSkuIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSkuIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); skuId_ = value; bitField0_ |= 0x00000002; @@ -1326,21 +1224,19 @@ public Builder setSkuIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * A human readable description of the SKU, has a maximum length of 256
      * characters.
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1349,22 +1245,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A human readable description of the SKU, has a maximum length of 256
      * characters.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1372,37 +1267,30 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A human readable description of the SKU, has a maximum length of 256
      * characters.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A human readable description of the SKU, has a maximum length of 256
      * characters.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1412,22 +1300,18 @@ public Builder clearDescription() { return this; } /** - * - * *
      * A human readable description of the SKU, has a maximum length of 256
      * characters.
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; @@ -1437,47 +1321,34 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private com.google.cloud.billing.v1.Category category_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.Category, - com.google.cloud.billing.v1.Category.Builder, - com.google.cloud.billing.v1.CategoryOrBuilder> - categoryBuilder_; + com.google.cloud.billing.v1.Category, com.google.cloud.billing.v1.Category.Builder, com.google.cloud.billing.v1.CategoryOrBuilder> categoryBuilder_; /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
* * .google.cloud.billing.v1.Category category = 4; - * * @return Whether the category field is set. */ public boolean hasCategory() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
* * .google.cloud.billing.v1.Category category = 4; - * * @return The category. */ public com.google.cloud.billing.v1.Category getCategory() { if (categoryBuilder_ == null) { - return category_ == null - ? com.google.cloud.billing.v1.Category.getDefaultInstance() - : category_; + return category_ == null ? com.google.cloud.billing.v1.Category.getDefaultInstance() : category_; } else { return categoryBuilder_.getMessage(); } } /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1498,15 +1369,14 @@ public Builder setCategory(com.google.cloud.billing.v1.Category value) { return this; } /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
* * .google.cloud.billing.v1.Category category = 4; */ - public Builder setCategory(com.google.cloud.billing.v1.Category.Builder builderForValue) { + public Builder setCategory( + com.google.cloud.billing.v1.Category.Builder builderForValue) { if (categoryBuilder_ == null) { category_ = builderForValue.build(); } else { @@ -1517,8 +1387,6 @@ public Builder setCategory(com.google.cloud.billing.v1.Category.Builder builderF return this; } /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1527,9 +1395,9 @@ public Builder setCategory(com.google.cloud.billing.v1.Category.Builder builderF */ public Builder mergeCategory(com.google.cloud.billing.v1.Category value) { if (categoryBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && category_ != null - && category_ != com.google.cloud.billing.v1.Category.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + category_ != null && + category_ != com.google.cloud.billing.v1.Category.getDefaultInstance()) { getCategoryBuilder().mergeFrom(value); } else { category_ = value; @@ -1542,8 +1410,6 @@ public Builder mergeCategory(com.google.cloud.billing.v1.Category value) { return this; } /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1561,8 +1427,6 @@ public Builder clearCategory() { return this; } /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1575,8 +1439,6 @@ public com.google.cloud.billing.v1.Category.Builder getCategoryBuilder() { return getCategoryFieldBuilder().getBuilder(); } /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1587,14 +1449,11 @@ public com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder() { if (categoryBuilder_ != null) { return categoryBuilder_.getMessageOrBuilder(); } else { - return category_ == null - ? com.google.cloud.billing.v1.Category.getDefaultInstance() - : category_; + return category_ == null ? + com.google.cloud.billing.v1.Category.getDefaultInstance() : category_; } } /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1602,17 +1461,14 @@ public com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder() { * .google.cloud.billing.v1.Category category = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.Category, - com.google.cloud.billing.v1.Category.Builder, - com.google.cloud.billing.v1.CategoryOrBuilder> + com.google.cloud.billing.v1.Category, com.google.cloud.billing.v1.Category.Builder, com.google.cloud.billing.v1.CategoryOrBuilder> getCategoryFieldBuilder() { if (categoryBuilder_ == null) { - categoryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.Category, - com.google.cloud.billing.v1.Category.Builder, - com.google.cloud.billing.v1.CategoryOrBuilder>( - getCategory(), getParentForChildren(), isClean()); + categoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.v1.Category, com.google.cloud.billing.v1.Category.Builder, com.google.cloud.billing.v1.CategoryOrBuilder>( + getCategory(), + getParentForChildren(), + isClean()); category_ = null; } return categoryBuilder_; @@ -1620,7 +1476,6 @@ public com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder() { private com.google.protobuf.LazyStringArrayList serviceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureServiceRegionsIsMutable() { if (!serviceRegions_.isModifiable()) { serviceRegions_ = new com.google.protobuf.LazyStringArrayList(serviceRegions_); @@ -1628,8 +1483,6 @@ private void ensureServiceRegionsIsMutable() { bitField0_ |= 0x00000010; } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1637,16 +1490,14 @@ private void ensureServiceRegionsIsMutable() {
      * 
* * repeated string service_regions = 5; - * * @return A list containing the serviceRegions. */ - public com.google.protobuf.ProtocolStringList getServiceRegionsList() { + public com.google.protobuf.ProtocolStringList + getServiceRegionsList() { serviceRegions_.makeImmutable(); return serviceRegions_; } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1654,15 +1505,12 @@ public com.google.protobuf.ProtocolStringList getServiceRegionsList() {
      * 
* * repeated string service_regions = 5; - * * @return The count of serviceRegions. */ public int getServiceRegionsCount() { return serviceRegions_.size(); } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1670,7 +1518,6 @@ public int getServiceRegionsCount() {
      * 
* * repeated string service_regions = 5; - * * @param index The index of the element to return. * @return The serviceRegions at the given index. */ @@ -1678,8 +1525,6 @@ public java.lang.String getServiceRegions(int index) { return serviceRegions_.get(index); } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1687,16 +1532,14 @@ public java.lang.String getServiceRegions(int index) {
      * 
* * repeated string service_regions = 5; - * * @param index The index of the value to return. * @return The bytes of the serviceRegions at the given index. */ - public com.google.protobuf.ByteString getServiceRegionsBytes(int index) { + public com.google.protobuf.ByteString + getServiceRegionsBytes(int index) { return serviceRegions_.getByteString(index); } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1704,15 +1547,13 @@ public com.google.protobuf.ByteString getServiceRegionsBytes(int index) {
      * 
* * repeated string service_regions = 5; - * * @param index The index to set the value at. * @param value The serviceRegions to set. * @return This builder for chaining. */ - public Builder setServiceRegions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceRegions( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServiceRegionsIsMutable(); serviceRegions_.set(index, value); bitField0_ |= 0x00000010; @@ -1720,8 +1561,6 @@ public Builder setServiceRegions(int index, java.lang.String value) { return this; } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1729,14 +1568,12 @@ public Builder setServiceRegions(int index, java.lang.String value) {
      * 
* * repeated string service_regions = 5; - * * @param value The serviceRegions to add. * @return This builder for chaining. */ - public Builder addServiceRegions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServiceRegions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServiceRegionsIsMutable(); serviceRegions_.add(value); bitField0_ |= 0x00000010; @@ -1744,8 +1581,6 @@ public Builder addServiceRegions(java.lang.String value) { return this; } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1753,20 +1588,19 @@ public Builder addServiceRegions(java.lang.String value) {
      * 
* * repeated string service_regions = 5; - * * @param values The serviceRegions to add. * @return This builder for chaining. */ - public Builder addAllServiceRegions(java.lang.Iterable values) { + public Builder addAllServiceRegions( + java.lang.Iterable values) { ensureServiceRegionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceRegions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serviceRegions_); bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1774,19 +1608,16 @@ public Builder addAllServiceRegions(java.lang.Iterable values)
      * 
* * repeated string service_regions = 5; - * * @return This builder for chaining. */ public Builder clearServiceRegions() { - serviceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; + serviceRegions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1794,14 +1625,12 @@ public Builder clearServiceRegions() {
      * 
* * repeated string service_regions = 5; - * * @param value The bytes of the serviceRegions to add. * @return This builder for chaining. */ - public Builder addServiceRegionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServiceRegionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureServiceRegionsIsMutable(); serviceRegions_.add(value); @@ -1811,25 +1640,18 @@ public Builder addServiceRegionsBytes(com.google.protobuf.ByteString value) { } private java.util.List pricingInfo_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePricingInfoIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - pricingInfo_ = - new java.util.ArrayList(pricingInfo_); + pricingInfo_ = new java.util.ArrayList(pricingInfo_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.PricingInfo, - com.google.cloud.billing.v1.PricingInfo.Builder, - com.google.cloud.billing.v1.PricingInfoOrBuilder> - pricingInfoBuilder_; + com.google.cloud.billing.v1.PricingInfo, com.google.cloud.billing.v1.PricingInfo.Builder, com.google.cloud.billing.v1.PricingInfoOrBuilder> pricingInfoBuilder_; /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1844,8 +1666,6 @@ public java.util.List getPricingInfoLis } } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1860,8 +1680,6 @@ public int getPricingInfoCount() { } } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1876,15 +1694,14 @@ public com.google.cloud.billing.v1.PricingInfo getPricingInfo(int index) { } } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public Builder setPricingInfo(int index, com.google.cloud.billing.v1.PricingInfo value) { + public Builder setPricingInfo( + int index, com.google.cloud.billing.v1.PricingInfo value) { if (pricingInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1898,8 +1715,6 @@ public Builder setPricingInfo(int index, com.google.cloud.billing.v1.PricingInfo return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1918,8 +1733,6 @@ public Builder setPricingInfo( return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1940,15 +1753,14 @@ public Builder addPricingInfo(com.google.cloud.billing.v1.PricingInfo value) { return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public Builder addPricingInfo(int index, com.google.cloud.billing.v1.PricingInfo value) { + public Builder addPricingInfo( + int index, com.google.cloud.billing.v1.PricingInfo value) { if (pricingInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1962,15 +1774,14 @@ public Builder addPricingInfo(int index, com.google.cloud.billing.v1.PricingInfo return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public Builder addPricingInfo(com.google.cloud.billing.v1.PricingInfo.Builder builderForValue) { + public Builder addPricingInfo( + com.google.cloud.billing.v1.PricingInfo.Builder builderForValue) { if (pricingInfoBuilder_ == null) { ensurePricingInfoIsMutable(); pricingInfo_.add(builderForValue.build()); @@ -1981,8 +1792,6 @@ public Builder addPricingInfo(com.google.cloud.billing.v1.PricingInfo.Builder bu return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -2001,8 +1810,6 @@ public Builder addPricingInfo( return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -2013,7 +1820,8 @@ public Builder addAllPricingInfo( java.lang.Iterable values) { if (pricingInfoBuilder_ == null) { ensurePricingInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pricingInfo_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pricingInfo_); onChanged(); } else { pricingInfoBuilder_.addAllMessages(values); @@ -2021,8 +1829,6 @@ public Builder addAllPricingInfo( return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -2040,8 +1846,6 @@ public Builder clearPricingInfo() { return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -2059,44 +1863,39 @@ public Builder removePricingInfo(int index) { return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public com.google.cloud.billing.v1.PricingInfo.Builder getPricingInfoBuilder(int index) { + public com.google.cloud.billing.v1.PricingInfo.Builder getPricingInfoBuilder( + int index) { return getPricingInfoFieldBuilder().getBuilder(index); } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder(int index) { + public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( + int index) { if (pricingInfoBuilder_ == null) { - return pricingInfo_.get(index); - } else { + return pricingInfo_.get(index); } else { return pricingInfoBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public java.util.List - getPricingInfoOrBuilderList() { + public java.util.List + getPricingInfoOrBuilderList() { if (pricingInfoBuilder_ != null) { return pricingInfoBuilder_.getMessageOrBuilderList(); } else { @@ -2104,8 +1903,6 @@ public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( } } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -2113,48 +1910,42 @@ public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ public com.google.cloud.billing.v1.PricingInfo.Builder addPricingInfoBuilder() { - return getPricingInfoFieldBuilder() - .addBuilder(com.google.cloud.billing.v1.PricingInfo.getDefaultInstance()); + return getPricingInfoFieldBuilder().addBuilder( + com.google.cloud.billing.v1.PricingInfo.getDefaultInstance()); } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public com.google.cloud.billing.v1.PricingInfo.Builder addPricingInfoBuilder(int index) { - return getPricingInfoFieldBuilder() - .addBuilder(index, com.google.cloud.billing.v1.PricingInfo.getDefaultInstance()); + public com.google.cloud.billing.v1.PricingInfo.Builder addPricingInfoBuilder( + int index) { + return getPricingInfoFieldBuilder().addBuilder( + index, com.google.cloud.billing.v1.PricingInfo.getDefaultInstance()); } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public java.util.List - getPricingInfoBuilderList() { + public java.util.List + getPricingInfoBuilderList() { return getPricingInfoFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.PricingInfo, - com.google.cloud.billing.v1.PricingInfo.Builder, - com.google.cloud.billing.v1.PricingInfoOrBuilder> + com.google.cloud.billing.v1.PricingInfo, com.google.cloud.billing.v1.PricingInfo.Builder, com.google.cloud.billing.v1.PricingInfoOrBuilder> getPricingInfoFieldBuilder() { if (pricingInfoBuilder_ == null) { - pricingInfoBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.PricingInfo, - com.google.cloud.billing.v1.PricingInfo.Builder, - com.google.cloud.billing.v1.PricingInfoOrBuilder>( - pricingInfo_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + pricingInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.v1.PricingInfo, com.google.cloud.billing.v1.PricingInfo.Builder, com.google.cloud.billing.v1.PricingInfoOrBuilder>( + pricingInfo_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); pricingInfo_ = null; } return pricingInfoBuilder_; @@ -2162,21 +1953,19 @@ public com.google.cloud.billing.v1.PricingInfo.Builder addPricingInfoBuilder(int private java.lang.Object serviceProviderName_ = ""; /** - * - * *
      * Identifies the service provider.
      * This is 'Google' for first party services in Google Cloud Platform.
      * 
* * string service_provider_name = 7; - * * @return The serviceProviderName. */ public java.lang.String getServiceProviderName() { java.lang.Object ref = serviceProviderName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceProviderName_ = s; return s; @@ -2185,22 +1974,21 @@ public java.lang.String getServiceProviderName() { } } /** - * - * *
      * Identifies the service provider.
      * This is 'Google' for first party services in Google Cloud Platform.
      * 
* * string service_provider_name = 7; - * * @return The bytes for serviceProviderName. */ - public com.google.protobuf.ByteString getServiceProviderNameBytes() { + public com.google.protobuf.ByteString + getServiceProviderNameBytes() { java.lang.Object ref = serviceProviderName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceProviderName_ = b; return b; } else { @@ -2208,37 +1996,30 @@ public com.google.protobuf.ByteString getServiceProviderNameBytes() { } } /** - * - * *
      * Identifies the service provider.
      * This is 'Google' for first party services in Google Cloud Platform.
      * 
* * string service_provider_name = 7; - * * @param value The serviceProviderName to set. * @return This builder for chaining. */ - public Builder setServiceProviderName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceProviderName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceProviderName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Identifies the service provider.
      * This is 'Google' for first party services in Google Cloud Platform.
      * 
* * string service_provider_name = 7; - * * @return This builder for chaining. */ public Builder clearServiceProviderName() { @@ -2248,22 +2029,18 @@ public Builder clearServiceProviderName() { return this; } /** - * - * *
      * Identifies the service provider.
      * This is 'Google' for first party services in Google Cloud Platform.
      * 
* * string service_provider_name = 7; - * * @param value The bytes for serviceProviderName to set. * @return This builder for chaining. */ - public Builder setServiceProviderNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceProviderNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceProviderName_ = value; bitField0_ |= 0x00000040; @@ -2273,47 +2050,34 @@ public Builder setServiceProviderNameBytes(com.google.protobuf.ByteString value) private com.google.cloud.billing.v1.GeoTaxonomy geoTaxonomy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.GeoTaxonomy, - com.google.cloud.billing.v1.GeoTaxonomy.Builder, - com.google.cloud.billing.v1.GeoTaxonomyOrBuilder> - geoTaxonomyBuilder_; + com.google.cloud.billing.v1.GeoTaxonomy, com.google.cloud.billing.v1.GeoTaxonomy.Builder, com.google.cloud.billing.v1.GeoTaxonomyOrBuilder> geoTaxonomyBuilder_; /** - * - * *
      * The geographic taxonomy for this sku.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; - * * @return Whether the geoTaxonomy field is set. */ public boolean hasGeoTaxonomy() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * The geographic taxonomy for this sku.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; - * * @return The geoTaxonomy. */ public com.google.cloud.billing.v1.GeoTaxonomy getGeoTaxonomy() { if (geoTaxonomyBuilder_ == null) { - return geoTaxonomy_ == null - ? com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() - : geoTaxonomy_; + return geoTaxonomy_ == null ? com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() : geoTaxonomy_; } else { return geoTaxonomyBuilder_.getMessage(); } } /** - * - * *
      * The geographic taxonomy for this sku.
      * 
@@ -2334,15 +2098,14 @@ public Builder setGeoTaxonomy(com.google.cloud.billing.v1.GeoTaxonomy value) { return this; } /** - * - * *
      * The geographic taxonomy for this sku.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; */ - public Builder setGeoTaxonomy(com.google.cloud.billing.v1.GeoTaxonomy.Builder builderForValue) { + public Builder setGeoTaxonomy( + com.google.cloud.billing.v1.GeoTaxonomy.Builder builderForValue) { if (geoTaxonomyBuilder_ == null) { geoTaxonomy_ = builderForValue.build(); } else { @@ -2353,8 +2116,6 @@ public Builder setGeoTaxonomy(com.google.cloud.billing.v1.GeoTaxonomy.Builder bu return this; } /** - * - * *
      * The geographic taxonomy for this sku.
      * 
@@ -2363,9 +2124,9 @@ public Builder setGeoTaxonomy(com.google.cloud.billing.v1.GeoTaxonomy.Builder bu */ public Builder mergeGeoTaxonomy(com.google.cloud.billing.v1.GeoTaxonomy value) { if (geoTaxonomyBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && geoTaxonomy_ != null - && geoTaxonomy_ != com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + geoTaxonomy_ != null && + geoTaxonomy_ != com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance()) { getGeoTaxonomyBuilder().mergeFrom(value); } else { geoTaxonomy_ = value; @@ -2378,8 +2139,6 @@ public Builder mergeGeoTaxonomy(com.google.cloud.billing.v1.GeoTaxonomy value) { return this; } /** - * - * *
      * The geographic taxonomy for this sku.
      * 
@@ -2397,8 +2156,6 @@ public Builder clearGeoTaxonomy() { return this; } /** - * - * *
      * The geographic taxonomy for this sku.
      * 
@@ -2411,8 +2168,6 @@ public com.google.cloud.billing.v1.GeoTaxonomy.Builder getGeoTaxonomyBuilder() { return getGeoTaxonomyFieldBuilder().getBuilder(); } /** - * - * *
      * The geographic taxonomy for this sku.
      * 
@@ -2423,14 +2178,11 @@ public com.google.cloud.billing.v1.GeoTaxonomyOrBuilder getGeoTaxonomyOrBuilder( if (geoTaxonomyBuilder_ != null) { return geoTaxonomyBuilder_.getMessageOrBuilder(); } else { - return geoTaxonomy_ == null - ? com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() - : geoTaxonomy_; + return geoTaxonomy_ == null ? + com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() : geoTaxonomy_; } } /** - * - * *
      * The geographic taxonomy for this sku.
      * 
@@ -2438,24 +2190,21 @@ public com.google.cloud.billing.v1.GeoTaxonomyOrBuilder getGeoTaxonomyOrBuilder( * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.GeoTaxonomy, - com.google.cloud.billing.v1.GeoTaxonomy.Builder, - com.google.cloud.billing.v1.GeoTaxonomyOrBuilder> + com.google.cloud.billing.v1.GeoTaxonomy, com.google.cloud.billing.v1.GeoTaxonomy.Builder, com.google.cloud.billing.v1.GeoTaxonomyOrBuilder> getGeoTaxonomyFieldBuilder() { if (geoTaxonomyBuilder_ == null) { - geoTaxonomyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.GeoTaxonomy, - com.google.cloud.billing.v1.GeoTaxonomy.Builder, - com.google.cloud.billing.v1.GeoTaxonomyOrBuilder>( - getGeoTaxonomy(), getParentForChildren(), isClean()); + geoTaxonomyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.v1.GeoTaxonomy, com.google.cloud.billing.v1.GeoTaxonomy.Builder, com.google.cloud.billing.v1.GeoTaxonomyOrBuilder>( + getGeoTaxonomy(), + getParentForChildren(), + isClean()); geoTaxonomy_ = null; } return geoTaxonomyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2465,12 +2214,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.Sku) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.Sku) private static final com.google.cloud.billing.v1.Sku DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.Sku(); } @@ -2479,27 +2228,27 @@ public static com.google.cloud.billing.v1.Sku getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Sku parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Sku parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2514,4 +2263,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.Sku getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java similarity index 81% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java index 8db06ec0812f..a92a6df199ae 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java @@ -1,136 +1,97 @@ -/* - * 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 interface SkuOrBuilder - extends +public interface SkuOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.Sku) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name for the SKU.
    * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name for the SKU.
    * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The identifier for the SKU.
    * Example: "AA95-CD31-42FE"
    * 
* * string sku_id = 2; - * * @return The skuId. */ java.lang.String getSkuId(); /** - * - * *
    * The identifier for the SKU.
    * Example: "AA95-CD31-42FE"
    * 
* * string sku_id = 2; - * * @return The bytes for skuId. */ - com.google.protobuf.ByteString getSkuIdBytes(); + com.google.protobuf.ByteString + getSkuIdBytes(); /** - * - * *
    * A human readable description of the SKU, has a maximum length of 256
    * characters.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A human readable description of the SKU, has a maximum length of 256
    * characters.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The category hierarchy of this SKU, purely for organizational purpose.
    * 
* * .google.cloud.billing.v1.Category category = 4; - * * @return Whether the category field is set. */ boolean hasCategory(); /** - * - * *
    * The category hierarchy of this SKU, purely for organizational purpose.
    * 
* * .google.cloud.billing.v1.Category category = 4; - * * @return The category. */ com.google.cloud.billing.v1.Category getCategory(); /** - * - * *
    * The category hierarchy of this SKU, purely for organizational purpose.
    * 
@@ -140,8 +101,6 @@ public interface SkuOrBuilder com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder(); /** - * - * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -149,13 +108,11 @@ public interface SkuOrBuilder
    * 
* * repeated string service_regions = 5; - * * @return A list containing the serviceRegions. */ - java.util.List getServiceRegionsList(); + java.util.List + getServiceRegionsList(); /** - * - * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -163,13 +120,10 @@ public interface SkuOrBuilder
    * 
* * repeated string service_regions = 5; - * * @return The count of serviceRegions. */ int getServiceRegionsCount(); /** - * - * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -177,14 +131,11 @@ public interface SkuOrBuilder
    * 
* * repeated string service_regions = 5; - * * @param index The index of the element to return. * @return The serviceRegions at the given index. */ java.lang.String getServiceRegions(int index); /** - * - * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -192,25 +143,22 @@ public interface SkuOrBuilder
    * 
* * repeated string service_regions = 5; - * * @param index The index of the value to return. * @return The bytes of the serviceRegions at the given index. */ - com.google.protobuf.ByteString getServiceRegionsBytes(int index); + com.google.protobuf.ByteString + getServiceRegionsBytes(int index); /** - * - * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - java.util.List getPricingInfoList(); + java.util.List + getPricingInfoList(); /** - * - * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -219,8 +167,6 @@ public interface SkuOrBuilder */ com.google.cloud.billing.v1.PricingInfo getPricingInfo(int index); /** - * - * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -229,81 +175,65 @@ public interface SkuOrBuilder */ int getPricingInfoCount(); /** - * - * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - java.util.List + java.util.List getPricingInfoOrBuilderList(); /** - * - * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder(int index); + com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( + int index); /** - * - * *
    * Identifies the service provider.
    * This is 'Google' for first party services in Google Cloud Platform.
    * 
* * string service_provider_name = 7; - * * @return The serviceProviderName. */ java.lang.String getServiceProviderName(); /** - * - * *
    * Identifies the service provider.
    * This is 'Google' for first party services in Google Cloud Platform.
    * 
* * string service_provider_name = 7; - * * @return The bytes for serviceProviderName. */ - com.google.protobuf.ByteString getServiceProviderNameBytes(); + com.google.protobuf.ByteString + getServiceProviderNameBytes(); /** - * - * *
    * The geographic taxonomy for this sku.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; - * * @return Whether the geoTaxonomy field is set. */ boolean hasGeoTaxonomy(); /** - * - * *
    * The geographic taxonomy for this sku.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; - * * @return The geoTaxonomy. */ com.google.cloud.billing.v1.GeoTaxonomy getGeoTaxonomy(); /** - * - * *
    * The geographic taxonomy for this sku.
    * 
diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java similarity index 64% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java index c3ca4c176060..3d30ce760341 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java @@ -1,82 +1,57 @@ -/* - * 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; /** - * - * *
  * Request message for `UpdateBillingAccount`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.UpdateBillingAccountRequest} */ -public final class UpdateBillingAccountRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateBillingAccountRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.UpdateBillingAccountRequest) UpdateBillingAccountRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateBillingAccountRequest.newBuilder() to construct. private UpdateBillingAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateBillingAccountRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateBillingAccountRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.UpdateBillingAccountRequest.class, - com.google.cloud.billing.v1.UpdateBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.UpdateBillingAccountRequest.class, com.google.cloud.billing.v1.UpdateBillingAccountRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the billing account resource to be updated.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -85,31 +60,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the billing account resource to be updated.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,17 +93,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ACCOUNT_FIELD_NUMBER = 2; private com.google.cloud.billing.v1.BillingAccount account_; /** - * - * *
    * Required. The billing account resource to replace the resource on the
    * server.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the account field is set. */ @java.lang.Override @@ -138,56 +106,40 @@ public boolean hasAccount() { return account_ != null; } /** - * - * *
    * Required. The billing account resource to replace the resource on the
    * server.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The account. */ @java.lang.Override public com.google.cloud.billing.v1.BillingAccount getAccount() { - return account_ == null - ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() - : account_; + return account_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : account_; } /** - * - * *
    * Required. The billing account resource to replace the resource on the
    * server.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.billing.v1.BillingAccountOrBuilder getAccountOrBuilder() { - return account_ == null - ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() - : account_; + return account_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : account_; } public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The update mask applied to the resource.
    * Only "display_name" is currently supported.
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -195,15 +147,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The update mask applied to the resource.
    * Only "display_name" is currently supported.
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ @java.lang.Override @@ -211,8 +160,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The update mask applied to the resource.
    * Only "display_name" is currently supported.
@@ -226,7 +173,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -238,7 +184,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -261,10 +208,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (account_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAccount());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getAccount());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -274,22 +223,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.billing.v1.UpdateBillingAccountRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.v1.UpdateBillingAccountRequest other =
-        (com.google.cloud.billing.v1.UpdateBillingAccountRequest) obj;
+    com.google.cloud.billing.v1.UpdateBillingAccountRequest other = (com.google.cloud.billing.v1.UpdateBillingAccountRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasAccount() != other.hasAccount()) return false;
     if (hasAccount()) {
-      if (!getAccount().equals(other.getAccount())) return false;
+      if (!getAccount()
+          .equals(other.getAccount())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -318,136 +269,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.billing.v1.UpdateBillingAccountRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.billing.v1.UpdateBillingAccountRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for `UpdateBillingAccount`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.UpdateBillingAccountRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.UpdateBillingAccountRequest) com.google.cloud.billing.v1.UpdateBillingAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.UpdateBillingAccountRequest.class, - com.google.cloud.billing.v1.UpdateBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.UpdateBillingAccountRequest.class, com.google.cloud.billing.v1.UpdateBillingAccountRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.UpdateBillingAccountRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -467,9 +413,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor; } @java.lang.Override @@ -488,11 +434,8 @@ public com.google.cloud.billing.v1.UpdateBillingAccountRequest build() { @java.lang.Override public com.google.cloud.billing.v1.UpdateBillingAccountRequest buildPartial() { - com.google.cloud.billing.v1.UpdateBillingAccountRequest result = - new com.google.cloud.billing.v1.UpdateBillingAccountRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.v1.UpdateBillingAccountRequest result = new com.google.cloud.billing.v1.UpdateBillingAccountRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -503,10 +446,14 @@ private void buildPartial0(com.google.cloud.billing.v1.UpdateBillingAccountReque result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.account_ = accountBuilder_ == null ? account_ : accountBuilder_.build(); + result.account_ = accountBuilder_ == null + ? account_ + : accountBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -514,39 +461,38 @@ private void buildPartial0(com.google.cloud.billing.v1.UpdateBillingAccountReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.UpdateBillingAccountRequest) { - return mergeFrom((com.google.cloud.billing.v1.UpdateBillingAccountRequest) other); + return mergeFrom((com.google.cloud.billing.v1.UpdateBillingAccountRequest)other); } else { super.mergeFrom(other); return this; @@ -554,8 +500,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.UpdateBillingAccountRequest other) { - if (other == com.google.cloud.billing.v1.UpdateBillingAccountRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.v1.UpdateBillingAccountRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -593,31 +538,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getAccountFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getAccountFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -627,27 +572,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the billing account resource to be updated.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -656,23 +596,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the billing account resource to be updated.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -680,39 +617,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the billing account resource to be updated.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the billing account resource to be updated.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -722,23 +648,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the billing account resource to be updated.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -748,61 +668,42 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.billing.v1.BillingAccount account_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, - com.google.cloud.billing.v1.BillingAccount.Builder, - com.google.cloud.billing.v1.BillingAccountOrBuilder> - accountBuilder_; + com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> accountBuilder_; /** - * - * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the account field is set. */ public boolean hasAccount() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The account. */ public com.google.cloud.billing.v1.BillingAccount getAccount() { if (accountBuilder_ == null) { - return account_ == null - ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() - : account_; + return account_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : account_; } else { return accountBuilder_.getMessage(); } } /** - * - * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAccount(com.google.cloud.billing.v1.BillingAccount value) { if (accountBuilder_ == null) { @@ -818,18 +719,15 @@ public Builder setAccount(com.google.cloud.billing.v1.BillingAccount value) { return this; } /** - * - * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setAccount(com.google.cloud.billing.v1.BillingAccount.Builder builderForValue) { + public Builder setAccount( + com.google.cloud.billing.v1.BillingAccount.Builder builderForValue) { if (accountBuilder_ == null) { account_ = builderForValue.build(); } else { @@ -840,22 +738,18 @@ public Builder setAccount(com.google.cloud.billing.v1.BillingAccount.Builder bui return this; } /** - * - * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAccount(com.google.cloud.billing.v1.BillingAccount value) { if (accountBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && account_ != null - && account_ != com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + account_ != null && + account_ != com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()) { getAccountBuilder().mergeFrom(value); } else { account_ = value; @@ -868,16 +762,12 @@ public Builder mergeAccount(com.google.cloud.billing.v1.BillingAccount value) { return this; } /** - * - * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAccount() { bitField0_ = (bitField0_ & ~0x00000002); @@ -890,16 +780,12 @@ public Builder clearAccount() { return this; } /** - * - * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.v1.BillingAccount.Builder getAccountBuilder() { bitField0_ |= 0x00000002; @@ -907,50 +793,38 @@ public com.google.cloud.billing.v1.BillingAccount.Builder getAccountBuilder() { return getAccountFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.v1.BillingAccountOrBuilder getAccountOrBuilder() { if (accountBuilder_ != null) { return accountBuilder_.getMessageOrBuilder(); } else { - return account_ == null - ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() - : account_; + return account_ == null ? + com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : account_; } } /** - * - * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, - com.google.cloud.billing.v1.BillingAccount.Builder, - com.google.cloud.billing.v1.BillingAccountOrBuilder> + com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> getAccountFieldBuilder() { if (accountBuilder_ == null) { - accountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, - com.google.cloud.billing.v1.BillingAccount.Builder, - com.google.cloud.billing.v1.BillingAccountOrBuilder>( - getAccount(), getParentForChildren(), isClean()); + accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder>( + getAccount(), + getParentForChildren(), + isClean()); account_ = null; } return accountBuilder_; @@ -958,49 +832,36 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getAccountOrBuilder() private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
      * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
      * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -1022,8 +883,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -1031,7 +890,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 3;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -1042,8 +902,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -1053,9 +911,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && updateMask_ != null
-            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -1068,8 +926,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -1088,8 +944,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -1103,8 +957,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -1116,14 +968,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -1132,24 +981,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1159,12 +1005,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.UpdateBillingAccountRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.UpdateBillingAccountRequest)
   private static final com.google.cloud.billing.v1.UpdateBillingAccountRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.v1.UpdateBillingAccountRequest();
   }
@@ -1173,27 +1019,27 @@ public static com.google.cloud.billing.v1.UpdateBillingAccountRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateBillingAccountRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateBillingAccountRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1208,4 +1054,6 @@ public com.google.protobuf.Parser getParserForType(
   public com.google.cloud.billing.v1.UpdateBillingAccountRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
similarity index 58%
rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
index 0a54ed6c7395..a836249b9db4 100644
--- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
+++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
@@ -1,130 +1,83 @@
-/*
- * 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 UpdateBillingAccountRequestOrBuilder
-    extends
+public interface UpdateBillingAccountRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.UpdateBillingAccountRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The name of the billing account resource to be updated.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the billing account resource to be updated.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The billing account resource to replace the resource on the
    * server.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the account field is set. */ boolean hasAccount(); /** - * - * *
    * Required. The billing account resource to replace the resource on the
    * server.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The account. */ com.google.cloud.billing.v1.BillingAccount getAccount(); /** - * - * *
    * Required. The billing account resource to replace the resource on the
    * server.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.billing.v1.BillingAccountOrBuilder getAccountOrBuilder(); /** - * - * *
    * The update mask applied to the resource.
    * Only "display_name" is currently supported.
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The update mask applied to the resource.
    * Only "display_name" is currently supported.
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The update mask applied to the resource.
    * Only "display_name" is currently supported.
diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
similarity index 69%
rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
index a97ef5561a39..fc6db32b237b 100644
--- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
+++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
@@ -1,75 +1,52 @@
-/*
- * 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;
 
 /**
- *
- *
  * 
  * Request message for `UpdateProjectBillingInfo`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.UpdateProjectBillingInfoRequest} */ -public final class UpdateProjectBillingInfoRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateProjectBillingInfoRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.UpdateProjectBillingInfoRequest) UpdateProjectBillingInfoRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateProjectBillingInfoRequest.newBuilder() to construct. - private UpdateProjectBillingInfoRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateProjectBillingInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateProjectBillingInfoRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateProjectBillingInfoRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.class, - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.Builder.class); + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.class, com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the project associated with the billing
    * information that you want to update. For example,
@@ -77,7 +54,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -86,15 +62,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the project associated with the billing
    * information that you want to update. For example,
@@ -102,15 +77,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -121,8 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PROJECT_BILLING_INFO_FIELD_NUMBER = 2; private com.google.cloud.billing.v1.ProjectBillingInfo projectBillingInfo_; /** - * - * *
    * The new billing information for the project. Output-only fields are
    * ignored; thus, you can leave empty all fields except
@@ -130,7 +104,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2; - * * @return Whether the projectBillingInfo field is set. */ @java.lang.Override @@ -138,8 +111,6 @@ public boolean hasProjectBillingInfo() { return projectBillingInfo_ != null; } /** - * - * *
    * The new billing information for the project. Output-only fields are
    * ignored; thus, you can leave empty all fields except
@@ -147,18 +118,13 @@ public boolean hasProjectBillingInfo() {
    * 
* * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2; - * * @return The projectBillingInfo. */ @java.lang.Override public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo() { - return projectBillingInfo_ == null - ? com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance() - : projectBillingInfo_; + return projectBillingInfo_ == null ? com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance() : projectBillingInfo_; } /** - * - * *
    * The new billing information for the project. Output-only fields are
    * ignored; thus, you can leave empty all fields except
@@ -169,13 +135,10 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo() {
    */
   @java.lang.Override
   public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder() {
-    return projectBillingInfo_ == null
-        ? com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance()
-        : projectBillingInfo_;
+    return projectBillingInfo_ == null ? com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance() : projectBillingInfo_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -187,7 +150,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -207,7 +171,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (projectBillingInfo_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProjectBillingInfo());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getProjectBillingInfo());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -217,18 +182,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest other =
-        (com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) obj;
+    com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest other = (com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) obj;
 
-    if (!getName().equals(other.getName())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
     if (hasProjectBillingInfo() != other.hasProjectBillingInfo()) return false;
     if (hasProjectBillingInfo()) {
-      if (!getProjectBillingInfo().equals(other.getProjectBillingInfo())) return false;
+      if (!getProjectBillingInfo()
+          .equals(other.getProjectBillingInfo())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -253,136 +219,131 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for `UpdateProjectBillingInfo`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.UpdateProjectBillingInfoRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.UpdateProjectBillingInfoRequest) com.google.cloud.billing.v1.UpdateProjectBillingInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.class, - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.Builder.class); + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.class, com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -397,9 +358,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor; } @java.lang.Override @@ -418,11 +379,8 @@ public com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest build() { @java.lang.Override public com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest buildPartial() { - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest result = - new com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest result = new com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -433,10 +391,9 @@ private void buildPartial0(com.google.cloud.billing.v1.UpdateProjectBillingInfoR result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.projectBillingInfo_ = - projectBillingInfoBuilder_ == null - ? projectBillingInfo_ - : projectBillingInfoBuilder_.build(); + result.projectBillingInfo_ = projectBillingInfoBuilder_ == null + ? projectBillingInfo_ + : projectBillingInfoBuilder_.build(); } } @@ -444,39 +401,38 @@ private void buildPartial0(com.google.cloud.billing.v1.UpdateProjectBillingInfoR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) { - return mergeFrom((com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) other); + return mergeFrom((com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest)other); } else { super.mergeFrom(other); return this; @@ -484,8 +440,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest other) { - if (other == com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -520,26 +475,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getProjectBillingInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getProjectBillingInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -549,13 +502,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the project associated with the billing
      * information that you want to update. For example,
@@ -563,13 +513,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -578,8 +528,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the project associated with the billing
      * information that you want to update. For example,
@@ -587,14 +535,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -602,8 +551,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the project associated with the billing
      * information that you want to update. For example,
@@ -611,22 +558,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project associated with the billing
      * information that you want to update. For example,
@@ -634,7 +577,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -644,8 +586,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the project associated with the billing
      * information that you want to update. For example,
@@ -653,14 +593,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -670,13 +608,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.billing.v1.ProjectBillingInfo projectBillingInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.ProjectBillingInfo, - com.google.cloud.billing.v1.ProjectBillingInfo.Builder, - com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> - projectBillingInfoBuilder_; + com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> projectBillingInfoBuilder_; /** - * - * *
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -684,15 +617,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2; - * * @return Whether the projectBillingInfo field is set. */ public boolean hasProjectBillingInfo() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -700,21 +630,16 @@ public boolean hasProjectBillingInfo() {
      * 
* * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2; - * * @return The projectBillingInfo. */ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo() { if (projectBillingInfoBuilder_ == null) { - return projectBillingInfo_ == null - ? com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance() - : projectBillingInfo_; + return projectBillingInfo_ == null ? com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance() : projectBillingInfo_; } else { return projectBillingInfoBuilder_.getMessage(); } } /** - * - * *
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -737,8 +662,6 @@ public Builder setProjectBillingInfo(com.google.cloud.billing.v1.ProjectBillingI
       return this;
     }
     /**
-     *
-     *
      * 
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -759,8 +682,6 @@ public Builder setProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -771,10 +692,9 @@ public Builder setProjectBillingInfo(
      */
     public Builder mergeProjectBillingInfo(com.google.cloud.billing.v1.ProjectBillingInfo value) {
       if (projectBillingInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && projectBillingInfo_ != null
-            && projectBillingInfo_
-                != com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          projectBillingInfo_ != null &&
+          projectBillingInfo_ != com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance()) {
           getProjectBillingInfoBuilder().mergeFrom(value);
         } else {
           projectBillingInfo_ = value;
@@ -787,8 +707,6 @@ public Builder mergeProjectBillingInfo(com.google.cloud.billing.v1.ProjectBillin
       return this;
     }
     /**
-     *
-     *
      * 
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -808,8 +726,6 @@ public Builder clearProjectBillingInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -824,8 +740,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder getProjectBillingI
       return getProjectBillingInfoFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -834,19 +748,15 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder getProjectBillingI
      *
      * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2;
      */
-    public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder
-        getProjectBillingInfoOrBuilder() {
+    public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder() {
       if (projectBillingInfoBuilder_ != null) {
         return projectBillingInfoBuilder_.getMessageOrBuilder();
       } else {
-        return projectBillingInfo_ == null
-            ? com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance()
-            : projectBillingInfo_;
+        return projectBillingInfo_ == null ?
+            com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance() : projectBillingInfo_;
       }
     }
     /**
-     *
-     *
      * 
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -856,24 +766,21 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder getProjectBillingI
      * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.v1.ProjectBillingInfo,
-            com.google.cloud.billing.v1.ProjectBillingInfo.Builder,
-            com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>
+        com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> 
         getProjectBillingInfoFieldBuilder() {
       if (projectBillingInfoBuilder_ == null) {
-        projectBillingInfoBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.billing.v1.ProjectBillingInfo,
-                com.google.cloud.billing.v1.ProjectBillingInfo.Builder,
-                com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>(
-                getProjectBillingInfo(), getParentForChildren(), isClean());
+        projectBillingInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>(
+                getProjectBillingInfo(),
+                getParentForChildren(),
+                isClean());
         projectBillingInfo_ = null;
       }
       return projectBillingInfoBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -883,12 +790,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.UpdateProjectBillingInfoRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.UpdateProjectBillingInfoRequest)
   private static final com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest();
   }
@@ -897,27 +804,27 @@ public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateProjectBillingInfoRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateProjectBillingInfoRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -932,4 +839,6 @@ public com.google.protobuf.Parser getParserForT
   public com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
similarity index 72%
rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
index 71dc3682c68a..2b382e89d292 100644
--- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
+++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * 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 UpdateProjectBillingInfoRequestOrBuilder
-    extends
+public interface UpdateProjectBillingInfoRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.UpdateProjectBillingInfoRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The resource name of the project associated with the billing
    * information that you want to update. For example,
@@ -33,13 +15,10 @@ public interface UpdateProjectBillingInfoRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the project associated with the billing
    * information that you want to update. For example,
@@ -47,14 +26,12 @@ public interface UpdateProjectBillingInfoRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The new billing information for the project. Output-only fields are
    * ignored; thus, you can leave empty all fields except
@@ -62,13 +39,10 @@ public interface UpdateProjectBillingInfoRequestOrBuilder
    * 
* * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2; - * * @return Whether the projectBillingInfo field is set. */ boolean hasProjectBillingInfo(); /** - * - * *
    * The new billing information for the project. Output-only fields are
    * ignored; thus, you can leave empty all fields except
@@ -76,13 +50,10 @@ public interface UpdateProjectBillingInfoRequestOrBuilder
    * 
* * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2; - * * @return The projectBillingInfo. */ com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(); /** - * - * *
    * The new billing information for the project. Output-only fields are
    * ignored; thus, you can leave empty all fields except
diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto
similarity index 99%
rename from java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto
rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto
index 1f9206381747..cc7126a1d0b1 100644
--- a/java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto
+++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto
@@ -261,8 +261,8 @@ message BillingAccount {
 
   // Output only. True if the billing account is open, and will therefore be
   // charged for any usage on associated projects. False if the billing account
-  // is closed, and therefore projects associated with it will be unable to use
-  // paid services.
+  // is closed, and therefore projects associated with it are unable to use paid
+  // services.
   bool open = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
 
   // The display name given to the billing account, such as `My Billing
@@ -478,7 +478,7 @@ message MoveBillingAccountRequest {
     }
   ];
 
-  // Required. The resource name of the Organization to reparent
+  // Required. The resource name of the Organization to move
   // the billing account under.
   // Must be of the form `organizations/{organization_id}`.
   string destination_parent = 2 [
diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto
similarity index 100%
rename from java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto
rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider1.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider1.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetEndpoint.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/AsyncCreateBillingAccount.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/AsyncCreateBillingAccount.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/AsyncCreateBillingAccount.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/AsyncCreateBillingAccount.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccount.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccount.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccount.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccount.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccount.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccount.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccount.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccount.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccountString.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccountString.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccountString.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccountString.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/AsyncGetBillingAccount.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/AsyncGetBillingAccount.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/AsyncGetBillingAccount.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/AsyncGetBillingAccount.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccount.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccount.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccount.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccount.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountBillingaccountname.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountBillingaccountname.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountBillingaccountname.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountBillingaccountname.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountString.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountString.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountString.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountString.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/AsyncGetIamPolicy.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/AsyncGetIamPolicy.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/AsyncGetIamPolicy.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicy.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicy.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicy.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyResourcename.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyResourcename.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyResourcename.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyResourcename.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyString.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyString.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyString.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyString.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/AsyncGetProjectBillingInfo.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/AsyncGetProjectBillingInfo.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/AsyncGetProjectBillingInfo.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/AsyncGetProjectBillingInfo.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfo.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfo.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfo.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfo.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoProjectname.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoProjectname.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoProjectname.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoProjectname.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoString.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoString.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoString.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoString.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccounts.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccounts.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccounts.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccounts.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccountsPaged.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccountsPaged.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccountsPaged.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccountsPaged.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccounts.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccounts.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccounts.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccounts.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsNoargs.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsNoargs.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsNoargs.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsNoargs.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsString.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsString.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsString.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsString.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfo.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfo.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfo.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfo.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfo.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfo.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfo.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfo.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoString.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoString.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoString.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoString.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/AsyncMoveBillingAccount.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/AsyncMoveBillingAccount.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/AsyncMoveBillingAccount.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/AsyncMoveBillingAccount.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/SyncMoveBillingAccount.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/SyncMoveBillingAccount.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/SyncMoveBillingAccount.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/SyncMoveBillingAccount.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/AsyncSetIamPolicy.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/AsyncSetIamPolicy.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/AsyncSetIamPolicy.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicy.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicy.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicy.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyStringPolicy.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyStringPolicy.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyStringPolicy.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyStringPolicy.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/AsyncTestIamPermissions.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/AsyncTestIamPermissions.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/AsyncTestIamPermissions.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissions.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissions.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissions.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsStringListstring.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsStringListstring.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsStringListstring.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsStringListstring.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/AsyncUpdateBillingAccount.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/AsyncUpdateBillingAccount.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/AsyncUpdateBillingAccount.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/AsyncUpdateBillingAccount.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccount.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccount.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccount.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccount.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider1.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider1.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetEndpoint.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServices.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServices.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServices.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServices.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServicesPaged.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServicesPaged.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServicesPaged.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServicesPaged.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServices.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServices.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServices.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServices.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServicesNoargs.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServicesNoargs.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServicesNoargs.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServicesNoargs.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkus.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkus.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkus.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkus.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkusPaged.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkusPaged.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkusPaged.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkusPaged.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkus.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkus.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkus.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkus.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusServicename.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusServicename.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusServicename.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusServicename.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusString.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusString.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusString.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusString.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java
diff --git a/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java b/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java
similarity index 100%
rename from java-billing/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java
rename to owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java

From 302c4aad88898fcec96f2518f9f903260246962a Mon Sep 17 00:00:00 2001
From: Owl Bot 
Date: Tue, 16 Jan 2024 23:16:13 +0000
Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?=
 =?UTF-8?q?st-processor?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---
 java-billing/README.md                        |    4 +-
 .../cloud/billing/v1/CloudBillingClient.java  |    0
 .../billing/v1/CloudBillingSettings.java      |    1 -
 .../cloud/billing/v1/CloudCatalogClient.java  |    0
 .../billing/v1/CloudCatalogSettings.java      |    1 -
 .../cloud/billing/v1/gapic_metadata.json      |    0
 .../google/cloud/billing/v1/package-info.java |    0
 .../billing/v1/stub/CloudBillingStub.java     |    0
 .../v1/stub/CloudBillingStubSettings.java     |    0
 .../billing/v1/stub/CloudCatalogStub.java     |    0
 .../v1/stub/CloudCatalogStubSettings.java     |    0
 .../stub/GrpcCloudBillingCallableFactory.java |    0
 .../billing/v1/stub/GrpcCloudBillingStub.java |    1 -
 .../stub/GrpcCloudCatalogCallableFactory.java |    0
 .../billing/v1/stub/GrpcCloudCatalogStub.java |    1 -
 .../HttpJsonCloudBillingCallableFactory.java  |    0
 .../v1/stub/HttpJsonCloudBillingStub.java     |    0
 .../HttpJsonCloudCatalogCallableFactory.java  |    0
 .../v1/stub/HttpJsonCloudCatalogStub.java     |    0
 .../reflect-config.json                       |    0
 .../billing/v1/CloudBillingClientTest.java    |    0
 .../v1/CloudCatalogClientHttpJsonTest.java    |    0
 .../billing/v1/CloudCatalogClientTest.java    |    0
 .../cloud/billing/v1/MockCloudBilling.java    |    0
 .../billing/v1/MockCloudBillingImpl.java      |    0
 .../cloud/billing/v1/MockCloudCatalog.java    |    0
 .../billing/v1/MockCloudCatalogImpl.java      |    0
 .../cloud/billing/v1/CloudBillingGrpc.java    | 1202 +++++++++++------
 .../cloud/billing/v1/CloudCatalogGrpc.java    |  307 +++--
 .../cloud/billing/v1/AggregationInfo.java     |  558 ++++----
 .../billing/v1/AggregationInfoOrBuilder.java  |   31 +-
 .../cloud/billing/v1/BillingAccount.java      |  592 ++++----
 .../cloud/billing/v1/BillingAccountName.java  |    0
 .../billing/v1/BillingAccountOrBuilder.java   |   65 +-
 .../com/google/cloud/billing/v1/Category.java |  521 ++++---
 .../cloud/billing/v1/CategoryOrBuilder.java   |   54 +-
 .../cloud/billing/v1/CloudBillingProto.java   |  342 +++++
 .../cloud/billing/v1/CloudCatalogProto.java   |  313 +++++
 .../v1/CreateBillingAccountRequest.java       |  465 ++++---
 .../CreateBillingAccountRequestOrBuilder.java |   47 +-
 .../google/cloud/billing/v1/GeoTaxonomy.java  |  466 ++++---
 .../billing/v1/GeoTaxonomyOrBuilder.java      |   42 +-
 .../billing/v1/GetBillingAccountRequest.java  |  347 +++--
 .../v1/GetBillingAccountRequestOrBuilder.java |   56 +
 .../v1/GetProjectBillingInfoRequest.java      |  350 +++--
 ...GetProjectBillingInfoRequestOrBuilder.java |   56 +
 .../v1/ListBillingAccountsRequest.java        |  499 ++++---
 .../ListBillingAccountsRequestOrBuilder.java  |   48 +-
 .../v1/ListBillingAccountsResponse.java       |  472 ++++---
 .../ListBillingAccountsResponseOrBuilder.java |   45 +-
 .../v1/ListProjectBillingInfoRequest.java     |  453 ++++---
 ...istProjectBillingInfoRequestOrBuilder.java |   47 +-
 .../v1/ListProjectBillingInfoResponse.java    |  471 ++++---
 ...stProjectBillingInfoResponseOrBuilder.java |   45 +-
 .../cloud/billing/v1/ListServicesRequest.java |  346 +++--
 .../v1/ListServicesRequestOrBuilder.java      |   30 +-
 .../billing/v1/ListServicesResponse.java      |  479 ++++---
 .../v1/ListServicesResponseOrBuilder.java     |   46 +-
 .../cloud/billing/v1/ListSkusRequest.java     |  683 ++++++----
 .../billing/v1/ListSkusRequestOrBuilder.java  |   72 +-
 .../cloud/billing/v1/ListSkusResponse.java    |  474 ++++---
 .../billing/v1/ListSkusResponseOrBuilder.java |   46 +-
 .../billing/v1/MoveBillingAccountRequest.java |  450 +++---
 .../MoveBillingAccountRequestOrBuilder.java   |   52 +-
 .../cloud/billing/v1/OrganizationName.java    |    0
 .../cloud/billing/v1/PricingExpression.java   | 1117 +++++++++------
 .../v1/PricingExpressionOrBuilder.java        |   75 +-
 .../google/cloud/billing/v1/PricingInfo.java  |  639 +++++----
 .../billing/v1/PricingInfoOrBuilder.java      |   54 +-
 .../cloud/billing/v1/ProjectBillingInfo.java  |  492 ++++---
 .../v1/ProjectBillingInfoOrBuilder.java       |   48 +-
 .../google/cloud/billing/v1/ProjectName.java  |    0
 .../com/google/cloud/billing/v1/Service.java  |  521 ++++---
 .../google/cloud/billing/v1/ServiceName.java  |    0
 .../cloud/billing/v1/ServiceOrBuilder.java    |   54 +-
 .../java/com/google/cloud/billing/v1/Sku.java |  981 +++++++++-----
 .../google/cloud/billing/v1/SkuOrBuilder.java |  106 +-
 .../v1/UpdateBillingAccountRequest.java       |  584 +++++---
 .../UpdateBillingAccountRequestOrBuilder.java |   63 +-
 .../v1/UpdateProjectBillingInfoRequest.java   |  427 +++---
 ...ateProjectBillingInfoRequestOrBuilder.java |   35 +-
 .../cloud/billing/v1/cloud_billing.proto      |    0
 .../cloud/billing/v1/cloud_catalog.proto      |    0
 .../SyncCreateSetCredentialsProvider.java     |    0
 .../SyncCreateSetCredentialsProvider1.java    |    0
 .../create/SyncCreateSetEndpoint.java         |    0
 .../AsyncCreateBillingAccount.java            |    0
 .../SyncCreateBillingAccount.java             |    0
 ...yncCreateBillingAccountBillingaccount.java |    0
 ...ateBillingAccountBillingaccountString.java |    0
 .../AsyncGetBillingAccount.java               |    0
 .../SyncGetBillingAccount.java                |    0
 ...ncGetBillingAccountBillingaccountname.java |    0
 .../SyncGetBillingAccountString.java          |    0
 .../getiampolicy/AsyncGetIamPolicy.java       |    0
 .../getiampolicy/SyncGetIamPolicy.java        |    0
 .../SyncGetIamPolicyResourcename.java         |    0
 .../getiampolicy/SyncGetIamPolicyString.java  |    0
 .../AsyncGetProjectBillingInfo.java           |    0
 .../SyncGetProjectBillingInfo.java            |    0
 .../SyncGetProjectBillingInfoProjectname.java |    0
 .../SyncGetProjectBillingInfoString.java      |    0
 .../AsyncListBillingAccounts.java             |    0
 .../AsyncListBillingAccountsPaged.java        |    0
 .../SyncListBillingAccounts.java              |    0
 .../SyncListBillingAccountsNoargs.java        |    0
 .../SyncListBillingAccountsString.java        |    0
 .../AsyncListProjectBillingInfo.java          |    0
 .../AsyncListProjectBillingInfoPaged.java     |    0
 .../SyncListProjectBillingInfo.java           |    0
 ...tProjectBillingInfoBillingaccountname.java |    0
 .../SyncListProjectBillingInfoString.java     |    0
 .../AsyncMoveBillingAccount.java              |    0
 .../SyncMoveBillingAccount.java               |    0
 .../setiampolicy/AsyncSetIamPolicy.java       |    0
 .../setiampolicy/SyncSetIamPolicy.java        |    0
 .../SyncSetIamPolicyResourcenamePolicy.java   |    0
 .../SyncSetIamPolicyStringPolicy.java         |    0
 .../AsyncTestIamPermissions.java              |    0
 .../SyncTestIamPermissions.java               |    0
 ...tIamPermissionsResourcenameListstring.java |    0
 ...yncTestIamPermissionsStringListstring.java |    0
 .../AsyncUpdateBillingAccount.java            |    0
 .../SyncUpdateBillingAccount.java             |    0
 ...countBillingaccountnameBillingaccount.java |    0
 ...ateBillingAccountStringBillingaccount.java |    0
 .../AsyncUpdateProjectBillingInfo.java        |    0
 .../SyncUpdateProjectBillingInfo.java         |    0
 ...ctBillingInfoStringProjectbillinginfo.java |    0
 .../SyncGetBillingAccount.java                |    0
 .../SyncCreateSetCredentialsProvider.java     |    0
 .../SyncCreateSetCredentialsProvider1.java    |    0
 .../create/SyncCreateSetEndpoint.java         |    0
 .../listservices/AsyncListServices.java       |    0
 .../listservices/AsyncListServicesPaged.java  |    0
 .../listservices/SyncListServices.java        |    0
 .../listservices/SyncListServicesNoargs.java  |    0
 .../cloudcatalog/listskus/AsyncListSkus.java  |    0
 .../listskus/AsyncListSkusPaged.java          |    0
 .../cloudcatalog/listskus/SyncListSkus.java   |    0
 .../listskus/SyncListSkusServicename.java     |    0
 .../listskus/SyncListSkusString.java          |    0
 .../listservices/SyncListServices.java        |    0
 .../SyncGetBillingAccount.java                |    0
 .../listservices/SyncListServices.java        |    0
 .../v1/CloudBillingClientHttpJsonTest.java    | 1062 ---------------
 .../cloud/billing/v1/CloudBillingProto.java   |  316 -----
 .../cloud/billing/v1/CloudCatalogProto.java   |  268 ----
 .../v1/GetBillingAccountRequestOrBuilder.java |   31 -
 ...GetProjectBillingInfoRequestOrBuilder.java |   31 -
 versions.txt                                  |    2 +-
 151 files changed, 10203 insertions(+), 7283 deletions(-)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java (99%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java (99%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java (99%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java (99%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/main/resources/META-INF/native-image/com.google.cloud.billing.v1/reflect-config.json (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java (55%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java (53%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java (65%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java (65%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java (73%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java (75%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java (71%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java (69%)
 create mode 100644 java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java
 create mode 100644 java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java (66%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java (65%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java (71%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java (70%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java (62%)
 create mode 100644 java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java (62%)
 create mode 100644 java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java (73%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java (77%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java (72%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java (69%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java (67%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java (61%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java (74%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java (75%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java (68%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java (60%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java (71%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java (67%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java (75%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java (80%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java (72%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java (67%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequest.java (64%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequestOrBuilder.java (52%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/OrganizationName.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java (76%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java (82%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java (73%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java (84%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java (74%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java (76%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectName.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java (70%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java (66%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java (74%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java (81%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java (64%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java (58%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java (69%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java (72%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider1.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/AsyncCreateBillingAccount.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccount.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccount.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccountString.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/AsyncGetBillingAccount.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccount.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountBillingaccountname.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountString.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/AsyncGetIamPolicy.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicy.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyResourcename.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyString.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/AsyncGetProjectBillingInfo.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfo.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoProjectname.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoString.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccounts.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccountsPaged.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccounts.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsNoargs.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsString.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfo.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfo.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoString.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/AsyncMoveBillingAccount.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/SyncMoveBillingAccount.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/AsyncSetIamPolicy.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicy.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyStringPolicy.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/AsyncTestIamPermissions.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissions.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsStringListstring.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/AsyncUpdateBillingAccount.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccount.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider1.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServices.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServicesPaged.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServices.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServicesNoargs.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkus.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkusPaged.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkus.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusServicename.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusString.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java (100%)
 rename {owl-bot-staging/java-billing/v1 => java-billing}/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java (100%)
 delete mode 100644 owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java
 delete mode 100644 owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java
 delete mode 100644 owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java
 delete mode 100644 owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java

diff --git a/java-billing/README.md b/java-billing/README.md
index 576062e8800d..ded61b108fb5 100644
--- a/java-billing/README.md
+++ b/java-billing/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
     
       com.google.cloud
       libraries-bom
-      26.29.0
+      26.30.0
       pom
       import
     
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
 [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
 [stability-image]: https://img.shields.io/badge/stability-stable-green
 [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billing.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.32.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.33.0
 [authentication]: https://github.com/googleapis/google-cloud-java#authentication
 [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
 [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java
similarity index 99%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java
index 6f7fdb0e5aea..300f76b1961e 100644
--- a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java
+++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java
@@ -29,7 +29,6 @@
 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/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java
similarity index 99%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java
index 080210d98d30..cf15f1d2cbcc 100644
--- a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java
+++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java
@@ -29,7 +29,6 @@
 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/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java
similarity index 99%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java
index bd25912676c9..113b45671bbb 100644
--- a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java
+++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java
@@ -47,7 +47,6 @@
 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/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java
similarity index 99%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java
index 1c12132e8ce7..cc2b0680a6f1 100644
--- a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java
+++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java
@@ -34,7 +34,6 @@
 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/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java
rename to java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/resources/META-INF/native-image/com.google.cloud.billing.v1/reflect-config.json b/java-billing/google-cloud-billing/src/main/resources/META-INF/native-image/com.google.cloud.billing.v1/reflect-config.json
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/main/resources/META-INF/native-image/com.google.cloud.billing.v1/reflect-config.json
rename to java-billing/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/CloudBillingClientTest.java b/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java
rename to java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java b/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java
rename to java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java b/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java
rename to java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java b/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java
rename to java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java b/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java
rename to java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java b/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java
rename to java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java
diff --git a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java b/java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java
rename to java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java
diff --git a/owl-bot-staging/java-billing/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java b/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java
similarity index 55%
rename from owl-bot-staging/java-billing/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java
rename to java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java
index 79e29ced4ea2..646d8dadd8c0 100644
--- a/owl-bot-staging/java-billing/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java
+++ b/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java
@@ -1,8 +1,25 @@
+/*
+ * 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;
 
 /**
+ *
+ *
  * 
  * Retrieves the Google Cloud Console billing accounts and associates them with
  * projects.
@@ -19,392 +36,554 @@ 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 getGetBillingAccountMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.v1.GetBillingAccountRequest,
+          com.google.cloud.billing.v1.BillingAccount>
+      getGetBillingAccountMethod;
 
   @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 getGetBillingAccountMethod() {
-    io.grpc.MethodDescriptor getGetBillingAccountMethod;
+  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;
     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 getListBillingAccountsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.v1.ListBillingAccountsRequest,
+          com.google.cloud.billing.v1.ListBillingAccountsResponse>
+      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 getListBillingAccountsMethod() {
-    io.grpc.MethodDescriptor getListBillingAccountsMethod;
+  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;
     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 getUpdateBillingAccountMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.v1.UpdateBillingAccountRequest,
+          com.google.cloud.billing.v1.BillingAccount>
+      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 getUpdateBillingAccountMethod() {
-    io.grpc.MethodDescriptor getUpdateBillingAccountMethod;
+  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;
     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 getCreateBillingAccountMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.v1.CreateBillingAccountRequest,
+          com.google.cloud.billing.v1.BillingAccount>
+      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 getCreateBillingAccountMethod() {
-    io.grpc.MethodDescriptor getCreateBillingAccountMethod;
+  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;
     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 getListProjectBillingInfoMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.v1.ListProjectBillingInfoRequest,
+          com.google.cloud.billing.v1.ListProjectBillingInfoResponse>
+      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 getListProjectBillingInfoMethod() {
-    io.grpc.MethodDescriptor getListProjectBillingInfoMethod;
-    if ((getListProjectBillingInfoMethod = CloudBillingGrpc.getListProjectBillingInfoMethod) == null) {
+  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) {
       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 getGetProjectBillingInfoMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.v1.GetProjectBillingInfoRequest,
+          com.google.cloud.billing.v1.ProjectBillingInfo>
+      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 getGetProjectBillingInfoMethod() {
-    io.grpc.MethodDescriptor getGetProjectBillingInfoMethod;
-    if ((getGetProjectBillingInfoMethod = CloudBillingGrpc.getGetProjectBillingInfoMethod) == null) {
+  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) {
       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 getUpdateProjectBillingInfoMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest,
+          com.google.cloud.billing.v1.ProjectBillingInfo>
+      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 getUpdateProjectBillingInfoMethod() {
-    io.grpc.MethodDescriptor getUpdateProjectBillingInfoMethod;
-    if ((getUpdateProjectBillingInfoMethod = CloudBillingGrpc.getUpdateProjectBillingInfoMethod) == null) {
+  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) {
       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 getGetIamPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
+      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 getGetIamPolicyMethod() {
-    io.grpc.MethodDescriptor getGetIamPolicyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
+      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 getSetIamPolicyMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
+      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 getSetIamPolicyMethod() {
-    io.grpc.MethodDescriptor getSetIamPolicyMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
+      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 getTestIamPermissionsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>
+      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 getTestIamPermissionsMethod() {
-    io.grpc.MethodDescriptor getTestIamPermissionsMethod;
+  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;
     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 getMoveBillingAccountMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.v1.MoveBillingAccountRequest,
+          com.google.cloud.billing.v1.BillingAccount>
+      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 getMoveBillingAccountMethod() {
-    io.grpc.MethodDescriptor getMoveBillingAccountMethod;
+  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;
     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.
@@ -413,30 +592,41 @@ public CloudBillingFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptio
   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.StreamObserver responseObserver) { - 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`.
@@ -446,12 +636,16 @@ default void listBillingAccounts(com.google.cloud.billing.v1.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.StreamObserver responseObserver) { - 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).
@@ -468,12 +662,16 @@ default void updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccou
      * 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.StreamObserver responseObserver) { - 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
@@ -481,12 +679,17 @@ default void createBillingAccount(com.google.cloud.billing.v1.CreateBillingAccou
      * [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,
@@ -495,12 +698,17 @@ default void listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBilli
      * 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
@@ -532,12 +740,17 @@ default void getProjectBillingInfo(com.google.cloud.billing.v1.GetProjectBilling
      * *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
@@ -545,12 +758,16 @@ default void updateProjectBillingInfo(com.google.cloud.billing.v1.UpdateProjectB
      * [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.StreamObserver responseObserver) { - 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.
@@ -559,51 +776,65 @@ default void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
      * [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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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 static abstract class CloudBillingImplBase + public abstract static 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.
@@ -611,44 +842,55 @@ public static abstract class CloudBillingImplBase
    */
   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.StreamObserver responseObserver) { 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`.
@@ -658,13 +900,18 @@ public void listBillingAccounts(com.google.cloud.billing.v1.ListBillingAccountsR
      * 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.StreamObserver responseObserver) { 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).
@@ -681,13 +928,18 @@ public void updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccoun
      * 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.StreamObserver responseObserver) { 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
@@ -695,13 +947,19 @@ public void createBillingAccount(com.google.cloud.billing.v1.CreateBillingAccoun
      * [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,
@@ -710,13 +968,19 @@ public void listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillin
      * 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
@@ -748,13 +1012,19 @@ public void getProjectBillingInfo(com.google.cloud.billing.v1.GetProjectBillingI
      * *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
@@ -762,13 +1032,18 @@ public void updateProjectBillingInfo(com.google.cloud.billing.v1.UpdateProjectBi
      * [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.StreamObserver responseObserver) { 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.
@@ -777,39 +1052,54 @@ public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
      * [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.StreamObserver responseObserver) { 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.StreamObserver responseObserver) { 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.
@@ -817,8 +1107,7 @@ public void moveBillingAccount(com.google.cloud.billing.v1.MoveBillingAccountReq
    */
   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);
     }
 
@@ -829,30 +1118,38 @@ 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`.
@@ -862,12 +1159,15 @@ 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).
@@ -884,12 +1184,15 @@ public com.google.cloud.billing.v1.BillingAccount updateBillingAccount(com.googl
      * 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
@@ -897,12 +1200,15 @@ public com.google.cloud.billing.v1.BillingAccount createBillingAccount(com.googl
      * [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,
@@ -911,12 +1217,15 @@ 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
@@ -948,12 +1257,15 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(com.
      * *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
@@ -967,6 +1279,8 @@ 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.
@@ -981,23 +1295,29 @@ 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); } @@ -1005,6 +1325,7 @@ public com.google.cloud.billing.v1.BillingAccount moveBillingAccount(com.google. /** * 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.
@@ -1012,8 +1333,7 @@ public com.google.cloud.billing.v1.BillingAccount moveBillingAccount(com.google.
    */
   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);
     }
 
@@ -1024,32 +1344,40 @@ 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 getBillingAccount( - com.google.cloud.billing.v1.GetBillingAccountRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.billing.v1.BillingAccount> + getBillingAccount(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 listBillingAccounts( - com.google.cloud.billing.v1.ListBillingAccountsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.billing.v1.ListBillingAccountsResponse> + listBillingAccounts(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`.
@@ -1059,13 +1387,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateBillingAccount(
-        com.google.cloud.billing.v1.UpdateBillingAccountRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.v1.BillingAccount>
+        updateBillingAccount(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).
@@ -1082,13 +1413,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture createBillingAccount(
-        com.google.cloud.billing.v1.CreateBillingAccountRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.v1.BillingAccount>
+        createBillingAccount(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
@@ -1096,13 +1430,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listProjectBillingInfo(
-        com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.v1.ListProjectBillingInfoResponse>
+        listProjectBillingInfo(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,
@@ -1111,13 +1448,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture getProjectBillingInfo(
-        com.google.cloud.billing.v1.GetProjectBillingInfoRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.v1.ProjectBillingInfo>
+        getProjectBillingInfo(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
@@ -1149,13 +1489,17 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateProjectBillingInfo(
-        com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.v1.ProjectBillingInfo>
+        updateProjectBillingInfo(
+            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
@@ -1163,13 +1507,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    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.
@@ -1178,32 +1524,38 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    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 testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(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 moveBillingAccount( - com.google.cloud.billing.v1.MoveBillingAccountRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.billing.v1.BillingAccount> + moveBillingAccount(com.google.cloud.billing.v1.MoveBillingAccountRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getMoveBillingAccountMethod(), getCallOptions()), request); } @@ -1221,11 +1573,11 @@ public com.google.common.util.concurrent.ListenableFuture 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; @@ -1239,48 +1591,69 @@ private static final class MethodHandlers implements 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) responseObserver); + serviceImpl.listProjectBillingInfo( + (com.google.cloud.billing.v1.ListProjectBillingInfoRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.billing.v1.ListProjectBillingInfoResponse>) + 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(); @@ -1301,87 +1674,84 @@ 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< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - service, METHODID_GET_IAM_POLICY))) + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_GET_IAM_POLICY))) .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - service, METHODID_SET_IAM_POLICY))) + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + 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 static abstract class CloudBillingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class CloudBillingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { CloudBillingBaseDescriptorSupplier() {} @java.lang.Override @@ -1423,20 +1793,22 @@ 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/owl-bot-staging/java-billing/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java b/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java similarity index 53% rename from owl-bot-staging/java-billing/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java rename to java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java index 0940138e8d4f..db84767222b9 100644 --- a/owl-bot-staging/java-billing/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java +++ b/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java @@ -1,8 +1,25 @@ +/* + * 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
@@ -20,113 +37,137 @@ 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 getListServicesMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.v1.ListServicesRequest,
+          com.google.cloud.billing.v1.ListServicesResponse>
+      getListServicesMethod;
 
   @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 getListServicesMethod() {
-    io.grpc.MethodDescriptor getListServicesMethod;
+  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;
     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 getListSkusMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.billing.v1.ListSkusRequest, com.google.cloud.billing.v1.ListSkusResponse>
+      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 getListSkusMethod() {
-    io.grpc.MethodDescriptor getListSkusMethod;
+  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;
     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
@@ -136,44 +177,56 @@ public CloudCatalogFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptio
   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 static abstract class CloudCatalogImplBase + public abstract static 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
@@ -182,35 +235,43 @@ public static abstract class CloudCatalogImplBase
    */
   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); } @@ -218,6 +279,7 @@ public void listSkus(com.google.cloud.billing.v1.ListSkusRequest request, /** * 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
@@ -226,8 +288,7 @@ public void listSkus(com.google.cloud.billing.v1.ListSkusRequest request,
    */
   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);
     }
 
@@ -238,21 +299,27 @@ 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); } @@ -260,6 +327,7 @@ public com.google.cloud.billing.v1.ListSkusResponse listSkus(com.google.cloud.bi /** * 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
@@ -268,8 +336,7 @@ public com.google.cloud.billing.v1.ListSkusResponse listSkus(com.google.cloud.bi
    */
   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);
     }
 
@@ -280,23 +347,29 @@ protected CloudCatalogFutureStub build(
     }
 
     /**
+     *
+     *
      * 
      * Lists all public cloud services.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listServices( - com.google.cloud.billing.v1.ListServicesRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.billing.v1.ListServicesResponse> + listServices(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 listSkus( - com.google.cloud.billing.v1.ListSkusRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.billing.v1.ListSkusResponse> + listSkus(com.google.cloud.billing.v1.ListSkusRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSkusMethod(), getCallOptions()), request); } @@ -305,11 +378,11 @@ public com.google.common.util.concurrent.ListenableFuture 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; @@ -323,12 +396,16 @@ private static final class MethodHandlers implements 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(); @@ -349,24 +426,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 static abstract class CloudCatalogBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class CloudCatalogBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { CloudCatalogBaseDescriptorSupplier() {} @java.lang.Override @@ -408,11 +485,13 @@ 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/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java similarity index 65% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java index e68057780989..b5984c1d0966 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java @@ -1,24 +1,42 @@ +/* + * 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; @@ -26,25 +44,28 @@ 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
@@ -53,37 +74,23 @@ protected java.lang.Object newInstance(
    *
    * 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(
@@ -108,39 +115,42 @@ 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.EnumLiteMap
-        internalGetValueMap() {
+    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);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    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() {
       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);
     }
 
@@ -149,8 +159,7 @@ public AggregationLevel findValueByNumber(int number) {
     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;
@@ -168,6 +177,8 @@ private AggregationLevel(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The interval at which usage is aggregated to compute cost.
    * Example: "MONTHLY" aggregation interval indicates that usage for tiered
@@ -176,37 +187,23 @@ 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(
@@ -231,10 +228,14 @@ 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;
       }
     }
 
@@ -242,28 +243,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);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public AggregationInterval findValueByNumber(int number) {
+                return AggregationInterval.forNumber(number);
+              }
+            };
+
+    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(1);
     }
 
@@ -272,8 +273,7 @@ public AggregationInterval findValueByNumber(int number) {
     public static AggregationInterval 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;
@@ -294,41 +294,60 @@ private AggregationInterval(int value) {
   private int aggregationLevel_ = 0;
   /**
    * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
+   *
    * @return The enum numeric value on the wire for aggregationLevel.
    */
-  @java.lang.Override public int getAggregationLevelValue() {
+  @java.lang.Override
+  public int getAggregationLevelValue() {
     return aggregationLevel_;
   }
   /**
    * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1;
+   *
    * @return The aggregationLevel.
    */
-  @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo.AggregationLevel getAggregationLevel() {
-    com.google.cloud.billing.v1.AggregationInfo.AggregationLevel result = com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.forNumber(aggregationLevel_);
-    return result == null ? com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.UNRECOGNIZED : result;
+  @java.lang.Override
+  public com.google.cloud.billing.v1.AggregationInfo.AggregationLevel getAggregationLevel() {
+    com.google.cloud.billing.v1.AggregationInfo.AggregationLevel result =
+        com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.forNumber(aggregationLevel_);
+    return result == null
+        ? com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.UNRECOGNIZED
+        : result;
   }
 
   public static final int AGGREGATION_INTERVAL_FIELD_NUMBER = 2;
   private int aggregationInterval_ = 0;
   /**
-   * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
+   * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
+   * 
+   *
    * @return The enum numeric value on the wire for aggregationInterval.
    */
-  @java.lang.Override public int getAggregationIntervalValue() {
+  @java.lang.Override
+  public int getAggregationIntervalValue() {
     return aggregationInterval_;
   }
   /**
-   * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
+   * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2;
+   * 
+   *
    * @return The aggregationInterval.
    */
-  @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggregationInterval() {
-    com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result = com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.forNumber(aggregationInterval_);
-    return result == null ? com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.UNRECOGNIZED : result;
+  @java.lang.Override
+  public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggregationInterval() {
+    com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result =
+        com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.forNumber(
+            aggregationInterval_);
+    return result == null
+        ? com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.UNRECOGNIZED
+        : result;
   }
 
   public static final int AGGREGATION_COUNT_FIELD_NUMBER = 3;
   private int aggregationCount_ = 0;
   /**
+   *
+   *
    * 
    * The number of intervals to aggregate over.
    * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -336,6 +355,7 @@ private AggregationInterval(int value) {
    * 
* * int32 aggregation_count = 3; + * * @return The aggregationCount. */ @java.lang.Override @@ -344,6 +364,7 @@ public int getAggregationCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -355,12 +376,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (aggregationLevel_ != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.AGGREGATION_LEVEL_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (aggregationLevel_ + != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel + .AGGREGATION_LEVEL_UNSPECIFIED + .getNumber()) { output.writeEnum(1, aggregationLevel_); } - if (aggregationInterval_ != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.AGGREGATION_INTERVAL_UNSPECIFIED.getNumber()) { + if (aggregationInterval_ + != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval + .AGGREGATION_INTERVAL_UNSPECIFIED + .getNumber()) { output.writeEnum(2, aggregationInterval_); } if (aggregationCount_ != 0) { @@ -375,17 +401,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (aggregationLevel_ != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.AGGREGATION_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, aggregationLevel_); - } - if (aggregationInterval_ != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.AGGREGATION_INTERVAL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, aggregationInterval_); + if (aggregationLevel_ + != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel + .AGGREGATION_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, aggregationLevel_); + } + if (aggregationInterval_ + != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval + .AGGREGATION_INTERVAL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, aggregationInterval_); } if (aggregationCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, aggregationCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, aggregationCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -395,17 +424,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.AggregationInfo)) { return super.equals(obj); } - com.google.cloud.billing.v1.AggregationInfo other = (com.google.cloud.billing.v1.AggregationInfo) obj; + com.google.cloud.billing.v1.AggregationInfo other = + (com.google.cloud.billing.v1.AggregationInfo) obj; if (aggregationLevel_ != other.aggregationLevel_) return false; if (aggregationInterval_ != other.aggregationInterval_) return false; - if (getAggregationCount() - != other.getAggregationCount()) return false; + if (getAggregationCount() != other.getAggregationCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -428,132 +457,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.AggregationInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.AggregationInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.AggregationInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.AggregationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.AggregationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.AggregationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.AggregationInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.AggregationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.AggregationInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.AggregationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.AggregationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.AggregationInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.AggregationInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.AggregationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.AggregationInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the aggregation level and interval for pricing of a single SKU.
    * 
* * Protobuf type {@code google.cloud.billing.v1.AggregationInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.AggregationInfo) com.google.cloud.billing.v1.AggregationInfoOrBuilder { - 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); } // Construct using com.google.cloud.billing.v1.AggregationInfo.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -565,9 +598,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_AggregationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_AggregationInfo_descriptor; } @java.lang.Override @@ -586,8 +619,11 @@ public com.google.cloud.billing.v1.AggregationInfo build() { @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo buildPartial() { - com.google.cloud.billing.v1.AggregationInfo result = new com.google.cloud.billing.v1.AggregationInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.v1.AggregationInfo result = + new com.google.cloud.billing.v1.AggregationInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -609,38 +645,39 @@ private void buildPartial0(com.google.cloud.billing.v1.AggregationInfo result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.AggregationInfo) { - return mergeFrom((com.google.cloud.billing.v1.AggregationInfo)other); + return mergeFrom((com.google.cloud.billing.v1.AggregationInfo) other); } else { super.mergeFrom(other); return this; @@ -684,27 +721,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - aggregationLevel_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - aggregationInterval_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - aggregationCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + aggregationLevel_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + aggregationInterval_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + aggregationCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -714,18 +755,22 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int aggregationLevel_ = 0; /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; + * * @return The enum numeric value on the wire for aggregationLevel. */ - @java.lang.Override public int getAggregationLevelValue() { + @java.lang.Override + public int getAggregationLevelValue() { return aggregationLevel_; } /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; + * * @param value The enum numeric value on the wire for aggregationLevel to set. * @return This builder for chaining. */ @@ -737,19 +782,25 @@ public Builder setAggregationLevelValue(int value) { } /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; + * * @return The aggregationLevel. */ @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo.AggregationLevel getAggregationLevel() { - com.google.cloud.billing.v1.AggregationInfo.AggregationLevel result = com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.forNumber(aggregationLevel_); - return result == null ? com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.UNRECOGNIZED : result; + com.google.cloud.billing.v1.AggregationInfo.AggregationLevel result = + com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.forNumber(aggregationLevel_); + return result == null + ? com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.UNRECOGNIZED + : result; } /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; + * * @param value The aggregationLevel to set. * @return This builder for chaining. */ - public Builder setAggregationLevel(com.google.cloud.billing.v1.AggregationInfo.AggregationLevel value) { + public Builder setAggregationLevel( + com.google.cloud.billing.v1.AggregationInfo.AggregationLevel value) { if (value == null) { throw new NullPointerException(); } @@ -760,6 +811,7 @@ public Builder setAggregationLevel(com.google.cloud.billing.v1.AggregationInfo.A } /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; + * * @return This builder for chaining. */ public Builder clearAggregationLevel() { @@ -771,14 +823,19 @@ public Builder clearAggregationLevel() { private int aggregationInterval_ = 0; /** - * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; + * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; + * + * * @return The enum numeric value on the wire for aggregationInterval. */ - @java.lang.Override public int getAggregationIntervalValue() { + @java.lang.Override + public int getAggregationIntervalValue() { return aggregationInterval_; } /** - * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; + * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; + * + * * @param value The enum numeric value on the wire for aggregationInterval to set. * @return This builder for chaining. */ @@ -789,20 +846,30 @@ public Builder setAggregationIntervalValue(int value) { return this; } /** - * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; + * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; + * + * * @return The aggregationInterval. */ @java.lang.Override - public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggregationInterval() { - com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result = com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.forNumber(aggregationInterval_); - return result == null ? com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.UNRECOGNIZED : result; + public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval + getAggregationInterval() { + com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result = + com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.forNumber( + aggregationInterval_); + return result == null + ? com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.UNRECOGNIZED + : result; } /** - * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; + * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; + * + * * @param value The aggregationInterval to set. * @return This builder for chaining. */ - public Builder setAggregationInterval(com.google.cloud.billing.v1.AggregationInfo.AggregationInterval value) { + public Builder setAggregationInterval( + com.google.cloud.billing.v1.AggregationInfo.AggregationInterval value) { if (value == null) { throw new NullPointerException(); } @@ -812,7 +879,9 @@ public Builder setAggregationInterval(com.google.cloud.billing.v1.AggregationInf return this; } /** - * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; + * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; + * + * * @return This builder for chaining. */ public Builder clearAggregationInterval() { @@ -822,8 +891,10 @@ public Builder clearAggregationInterval() { return this; } - private int aggregationCount_ ; + private int aggregationCount_; /** + * + * *
      * The number of intervals to aggregate over.
      * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -831,6 +902,7 @@ public Builder clearAggregationInterval() {
      * 
* * int32 aggregation_count = 3; + * * @return The aggregationCount. */ @java.lang.Override @@ -838,6 +910,8 @@ public int getAggregationCount() { return aggregationCount_; } /** + * + * *
      * The number of intervals to aggregate over.
      * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -845,6 +919,7 @@ public int getAggregationCount() {
      * 
* * int32 aggregation_count = 3; + * * @param value The aggregationCount to set. * @return This builder for chaining. */ @@ -856,6 +931,8 @@ public Builder setAggregationCount(int value) { return this; } /** + * + * *
      * The number of intervals to aggregate over.
      * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -863,6 +940,7 @@ public Builder setAggregationCount(int value) {
      * 
* * int32 aggregation_count = 3; + * * @return This builder for chaining. */ public Builder clearAggregationCount() { @@ -871,9 +949,9 @@ public Builder clearAggregationCount() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -883,12 +961,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.AggregationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.AggregationInfo) private static final com.google.cloud.billing.v1.AggregationInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.AggregationInfo(); } @@ -897,27 +975,27 @@ public static com.google.cloud.billing.v1.AggregationInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AggregationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AggregationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -932,6 +1010,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.AggregationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java similarity index 65% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java index 229a54512c79..b8fa798ddc22 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java @@ -1,35 +1,59 @@ +/* + * 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 interface AggregationInfoOrBuilder extends +public interface AggregationInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.AggregationInfo) com.google.protobuf.MessageOrBuilder { /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; + * * @return The enum numeric value on the wire for aggregationLevel. */ int getAggregationLevelValue(); /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; + * * @return The aggregationLevel. */ com.google.cloud.billing.v1.AggregationInfo.AggregationLevel getAggregationLevel(); /** - * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; + * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; + * + * * @return The enum numeric value on the wire for aggregationInterval. */ int getAggregationIntervalValue(); /** - * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; + * .google.cloud.billing.v1.AggregationInfo.AggregationInterval aggregation_interval = 2; + * + * * @return The aggregationInterval. */ com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggregationInterval(); /** + * + * *
    * The number of intervals to aggregate over.
    * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -37,6 +61,7 @@ public interface AggregationInfoOrBuilder extends
    * 
* * int32 aggregation_count = 3; + * * @return The aggregationCount. */ int getAggregationCount(); diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java similarity index 73% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java index 465531ad0366..929245abbf46 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java @@ -1,9 +1,26 @@ +/* + * 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; /** + * + * *
  * A billing account in the
  * [Google Cloud Console](https://console.cloud.google.com/). You can assign a
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.billing.v1.BillingAccount}
  */
-public final class BillingAccount extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BillingAccount extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.BillingAccount)
     BillingAccountOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BillingAccount.newBuilder() to construct.
   private BillingAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BillingAccount() {
     name_ = "";
     displayName_ = "";
@@ -30,28 +48,32 @@ private BillingAccount() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BillingAccount();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.v1.CloudBillingProto
+        .internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable
+    return com.google.cloud.billing.v1.CloudBillingProto
+        .internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.v1.BillingAccount.class, com.google.cloud.billing.v1.BillingAccount.Builder.class);
+            com.google.cloud.billing.v1.BillingAccount.class,
+            com.google.cloud.billing.v1.BillingAccount.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. The resource name of the billing account. The resource name
    * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -59,7 +81,10 @@ protected java.lang.Object newInstance(
    * billing account `012345-567890-ABCDEF`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -68,14 +93,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name of the billing account. The resource name
    * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -83,17 +109,18 @@ public java.lang.String getName() {
    * billing account `012345-567890-ABCDEF`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -104,6 +131,8 @@ public java.lang.String getName() { public static final int OPEN_FIELD_NUMBER = 2; private boolean open_ = false; /** + * + * *
    * Output only. True if the billing account is open, and will therefore be
    * charged for any usage on associated projects. False if the billing account
@@ -112,6 +141,7 @@ public java.lang.String getName() {
    * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The open. */ @java.lang.Override @@ -120,15 +150,19 @@ public boolean getOpen() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * The display name given to the billing account, such as `My Billing
    * Account`. This name is displayed in the Google Cloud Console.
    * 
* * string display_name = 3; + * * @return The displayName. */ @java.lang.Override @@ -137,30 +171,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * The display name given to the billing account, such as `My Billing
    * Account`. This name is displayed in the Google Cloud Console.
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -169,9 +203,12 @@ public java.lang.String getDisplayName() { } public static final int MASTER_BILLING_ACCOUNT_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object masterBillingAccount_ = ""; /** + * + * *
    * If this account is a
    * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -181,6 +218,7 @@ public java.lang.String getDisplayName() {
    * 
* * string master_billing_account = 4; + * * @return The masterBillingAccount. */ @java.lang.Override @@ -189,14 +227,15 @@ public java.lang.String getMasterBillingAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); masterBillingAccount_ = s; return s; } } /** + * + * *
    * If this account is a
    * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -206,16 +245,15 @@ public java.lang.String getMasterBillingAccount() {
    * 
* * string master_billing_account = 4; + * * @return The bytes for masterBillingAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getMasterBillingAccountBytes() { + public com.google.protobuf.ByteString getMasterBillingAccountBytes() { java.lang.Object ref = masterBillingAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); masterBillingAccount_ = b; return b; } else { @@ -224,9 +262,12 @@ public java.lang.String getMasterBillingAccount() { } public static final int PARENT_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Output only. The billing account's parent resource identifier.
    * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -239,6 +280,7 @@ public java.lang.String getMasterBillingAccount() {
    * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The parent. */ @java.lang.Override @@ -247,14 +289,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Output only. The billing account's parent resource identifier.
    * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -267,16 +310,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -285,6 +327,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -296,8 +339,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -326,8 +368,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (open_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, open_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, open_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); @@ -346,23 +387,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.BillingAccount)) { return super.equals(obj); } - com.google.cloud.billing.v1.BillingAccount other = (com.google.cloud.billing.v1.BillingAccount) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getOpen() - != other.getOpen()) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getMasterBillingAccount() - .equals(other.getMasterBillingAccount())) return false; - if (!getParent() - .equals(other.getParent())) return false; + com.google.cloud.billing.v1.BillingAccount other = + (com.google.cloud.billing.v1.BillingAccount) obj; + + if (!getName().equals(other.getName())) return false; + if (getOpen() != other.getOpen()) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getMasterBillingAccount().equals(other.getMasterBillingAccount())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -377,8 +414,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + OPEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOpen()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOpen()); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + MASTER_BILLING_ACCOUNT_FIELD_NUMBER; @@ -390,99 +426,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.BillingAccount parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.BillingAccount parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.BillingAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.BillingAccount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.BillingAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.BillingAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A billing account in the
    * [Google Cloud Console](https://console.cloud.google.com/). You can assign a
@@ -491,33 +532,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.v1.BillingAccount}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.BillingAccount)
       com.google.cloud.billing.v1.BillingAccountOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.v1.CloudBillingProto
+          .internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable
+      return com.google.cloud.billing.v1.CloudBillingProto
+          .internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.v1.BillingAccount.class, com.google.cloud.billing.v1.BillingAccount.Builder.class);
+              com.google.cloud.billing.v1.BillingAccount.class,
+              com.google.cloud.billing.v1.BillingAccount.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.v1.BillingAccount.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -531,9 +571,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.v1.CloudBillingProto
+          .internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
     }
 
     @java.lang.Override
@@ -552,8 +592,11 @@ public com.google.cloud.billing.v1.BillingAccount build() {
 
     @java.lang.Override
     public com.google.cloud.billing.v1.BillingAccount buildPartial() {
-      com.google.cloud.billing.v1.BillingAccount result = new com.google.cloud.billing.v1.BillingAccount(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.billing.v1.BillingAccount result =
+          new com.google.cloud.billing.v1.BillingAccount(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -581,38 +624,39 @@ private void buildPartial0(com.google.cloud.billing.v1.BillingAccount result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.billing.v1.BillingAccount) {
-        return mergeFrom((com.google.cloud.billing.v1.BillingAccount)other);
+        return mergeFrom((com.google.cloud.billing.v1.BillingAccount) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -670,37 +714,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              open_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              masterBillingAccount_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 50: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                open_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                masterBillingAccount_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 50:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -710,10 +760,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name of the billing account. The resource name
      * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -721,14 +774,16 @@ public Builder mergeFrom(
      * billing account `012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -737,6 +792,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the billing account. The resource name
      * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -744,16 +801,17 @@ public java.lang.String getName() {
      * billing account `012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -761,6 +819,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the billing account. The resource name
      * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -768,19 +828,25 @@ public java.lang.String getName() {
      * billing account `012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the billing account. The resource name
      * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -788,7 +854,10 @@ public Builder setName(
      * billing account `012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -798,6 +867,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the billing account. The resource name
      * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -805,13 +876,17 @@ public Builder clearName() {
      * billing account `012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -819,8 +894,10 @@ public Builder setNameBytes( return this; } - private boolean open_ ; + private boolean open_; /** + * + * *
      * Output only. True if the billing account is open, and will therefore be
      * charged for any usage on associated projects. False if the billing account
@@ -829,6 +906,7 @@ public Builder setNameBytes(
      * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The open. */ @java.lang.Override @@ -836,6 +914,8 @@ public boolean getOpen() { return open_; } /** + * + * *
      * Output only. True if the billing account is open, and will therefore be
      * charged for any usage on associated projects. False if the billing account
@@ -844,6 +924,7 @@ public boolean getOpen() {
      * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The open to set. * @return This builder for chaining. */ @@ -855,6 +936,8 @@ public Builder setOpen(boolean value) { return this; } /** + * + * *
      * Output only. True if the billing account is open, and will therefore be
      * charged for any usage on associated projects. False if the billing account
@@ -863,6 +946,7 @@ public Builder setOpen(boolean value) {
      * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearOpen() { @@ -874,19 +958,21 @@ public Builder clearOpen() { private java.lang.Object displayName_ = ""; /** + * + * *
      * The display name given to the billing account, such as `My Billing
      * Account`. This name is displayed in the Google Cloud Console.
      * 
* * string display_name = 3; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -895,21 +981,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The display name given to the billing account, such as `My Billing
      * Account`. This name is displayed in the Google Cloud Console.
      * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -917,30 +1004,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The display name given to the billing account, such as `My Billing
      * Account`. This name is displayed in the Google Cloud Console.
      * 
* * string display_name = 3; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The display name given to the billing account, such as `My Billing
      * Account`. This name is displayed in the Google Cloud Console.
      * 
* * string display_name = 3; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -950,18 +1044,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * The display name given to the billing account, such as `My Billing
      * Account`. This name is displayed in the Google Cloud Console.
      * 
* * string display_name = 3; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -971,6 +1069,8 @@ public Builder setDisplayNameBytes( private java.lang.Object masterBillingAccount_ = ""; /** + * + * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -980,13 +1080,13 @@ public Builder setDisplayNameBytes(
      * 
* * string master_billing_account = 4; + * * @return The masterBillingAccount. */ public java.lang.String getMasterBillingAccount() { java.lang.Object ref = masterBillingAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); masterBillingAccount_ = s; return s; @@ -995,6 +1095,8 @@ public java.lang.String getMasterBillingAccount() { } } /** + * + * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -1004,15 +1106,14 @@ public java.lang.String getMasterBillingAccount() {
      * 
* * string master_billing_account = 4; + * * @return The bytes for masterBillingAccount. */ - public com.google.protobuf.ByteString - getMasterBillingAccountBytes() { + public com.google.protobuf.ByteString getMasterBillingAccountBytes() { java.lang.Object ref = masterBillingAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); masterBillingAccount_ = b; return b; } else { @@ -1020,6 +1121,8 @@ public java.lang.String getMasterBillingAccount() { } } /** + * + * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -1029,18 +1132,22 @@ public java.lang.String getMasterBillingAccount() {
      * 
* * string master_billing_account = 4; + * * @param value The masterBillingAccount to set. * @return This builder for chaining. */ - public Builder setMasterBillingAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMasterBillingAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } masterBillingAccount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -1050,6 +1157,7 @@ public Builder setMasterBillingAccount(
      * 
* * string master_billing_account = 4; + * * @return This builder for chaining. */ public Builder clearMasterBillingAccount() { @@ -1059,6 +1167,8 @@ public Builder clearMasterBillingAccount() { return this; } /** + * + * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -1068,12 +1178,14 @@ public Builder clearMasterBillingAccount() {
      * 
* * string master_billing_account = 4; + * * @param value The bytes for masterBillingAccount to set. * @return This builder for chaining. */ - public Builder setMasterBillingAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMasterBillingAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); masterBillingAccount_ = value; bitField0_ |= 0x00000008; @@ -1083,6 +1195,8 @@ public Builder setMasterBillingAccountBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Output only. The billing account's parent resource identifier.
      * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -1095,13 +1209,13 @@ public Builder setMasterBillingAccountBytes(
      * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1110,6 +1224,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Output only. The billing account's parent resource identifier.
      * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -1122,15 +1238,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1138,6 +1253,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Output only. The billing account's parent resource identifier.
      * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -1150,18 +1267,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. The billing account's parent resource identifier.
      * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -1174,6 +1295,7 @@ public Builder setParent(
      * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1183,6 +1305,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Output only. The billing account's parent resource identifier.
      * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -1195,21 +1319,23 @@ public Builder clearParent() {
      * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1219,12 +1345,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.BillingAccount) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.BillingAccount) private static final com.google.cloud.billing.v1.BillingAccount DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.BillingAccount(); } @@ -1233,27 +1359,27 @@ public static com.google.cloud.billing.v1.BillingAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BillingAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BillingAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1268,6 +1394,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.BillingAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java similarity index 100% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java similarity index 75% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java index 8658ecadd6b3..c9fd00cb2cd5 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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 BillingAccountOrBuilder extends +public interface BillingAccountOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.BillingAccount) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the billing account. The resource name
    * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -15,11 +33,16 @@ public interface BillingAccountOrBuilder extends
    * billing account `012345-567890-ABCDEF`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the billing account. The resource name
    * has the form `billingAccounts/{billing_account_id}`. For example,
@@ -27,13 +50,17 @@ public interface BillingAccountOrBuilder extends
    * billing account `012345-567890-ABCDEF`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. True if the billing account is open, and will therefore be
    * charged for any usage on associated projects. False if the billing account
@@ -42,33 +69,41 @@ public interface BillingAccountOrBuilder extends
    * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The open. */ boolean getOpen(); /** + * + * *
    * The display name given to the billing account, such as `My Billing
    * Account`. This name is displayed in the Google Cloud Console.
    * 
* * string display_name = 3; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The display name given to the billing account, such as `My Billing
    * Account`. This name is displayed in the Google Cloud Console.
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * If this account is a
    * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -78,10 +113,13 @@ public interface BillingAccountOrBuilder extends
    * 
* * string master_billing_account = 4; + * * @return The masterBillingAccount. */ java.lang.String getMasterBillingAccount(); /** + * + * *
    * If this account is a
    * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -91,12 +129,14 @@ public interface BillingAccountOrBuilder extends
    * 
* * string master_billing_account = 4; + * * @return The bytes for masterBillingAccount. */ - com.google.protobuf.ByteString - getMasterBillingAccountBytes(); + com.google.protobuf.ByteString getMasterBillingAccountBytes(); /** + * + * *
    * Output only. The billing account's parent resource identifier.
    * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -109,10 +149,13 @@ public interface BillingAccountOrBuilder extends
    * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Output only. The billing account's parent resource identifier.
    * Use the `MoveBillingAccount` method to update the account's parent resource
@@ -125,8 +168,8 @@ public interface BillingAccountOrBuilder extends
    * 
* * string parent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java similarity index 71% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java index e0382455de8c..5964fa7b4010 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java @@ -1,24 +1,42 @@ +/* + * 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 category hierarchy of a SKU.
  * 
* * Protobuf type {@code google.cloud.billing.v1.Category} */ -public final class Category extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Category extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.Category) CategoryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Category.newBuilder() to construct. private Category(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Category() { serviceDisplayName_ = ""; resourceFamily_ = ""; @@ -28,33 +46,38 @@ private Category() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Category(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Category_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Category_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Category_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Category_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.Category.class, com.google.cloud.billing.v1.Category.Builder.class); + com.google.cloud.billing.v1.Category.class, + com.google.cloud.billing.v1.Category.Builder.class); } public static final int SERVICE_DISPLAY_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object serviceDisplayName_ = ""; /** + * + * *
    * The display name of the service this SKU belongs to.
    * 
* * string service_display_name = 1; + * * @return The serviceDisplayName. */ @java.lang.Override @@ -63,29 +86,29 @@ public java.lang.String getServiceDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceDisplayName_ = s; return s; } } /** + * + * *
    * The display name of the service this SKU belongs to.
    * 
* * string service_display_name = 1; + * * @return The bytes for serviceDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceDisplayNameBytes() { + public com.google.protobuf.ByteString getServiceDisplayNameBytes() { java.lang.Object ref = serviceDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceDisplayName_ = b; return b; } else { @@ -94,15 +117,19 @@ public java.lang.String getServiceDisplayName() { } public static final int RESOURCE_FAMILY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object resourceFamily_ = ""; /** + * + * *
    * The type of product the SKU refers to.
    * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
    * 
* * string resource_family = 2; + * * @return The resourceFamily. */ @java.lang.Override @@ -111,30 +138,30 @@ public java.lang.String getResourceFamily() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFamily_ = s; return s; } } /** + * + * *
    * The type of product the SKU refers to.
    * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
    * 
* * string resource_family = 2; + * * @return The bytes for resourceFamily. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceFamilyBytes() { + public com.google.protobuf.ByteString getResourceFamilyBytes() { java.lang.Object ref = resourceFamily_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceFamily_ = b; return b; } else { @@ -143,15 +170,19 @@ public java.lang.String getResourceFamily() { } public static final int RESOURCE_GROUP_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object resourceGroup_ = ""; /** + * + * *
    * A group classification for related SKUs.
    * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
    * 
* * string resource_group = 3; + * * @return The resourceGroup. */ @java.lang.Override @@ -160,30 +191,30 @@ public java.lang.String getResourceGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceGroup_ = s; return s; } } /** + * + * *
    * A group classification for related SKUs.
    * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
    * 
* * string resource_group = 3; + * * @return The bytes for resourceGroup. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceGroupBytes() { + public com.google.protobuf.ByteString getResourceGroupBytes() { java.lang.Object ref = resourceGroup_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceGroup_ = b; return b; } else { @@ -192,15 +223,19 @@ public java.lang.String getResourceGroup() { } public static final int USAGE_TYPE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object usageType_ = ""; /** + * + * *
    * Represents how the SKU is consumed.
    * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
    * 
* * string usage_type = 4; + * * @return The usageType. */ @java.lang.Override @@ -209,30 +244,30 @@ public java.lang.String getUsageType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usageType_ = s; return s; } } /** + * + * *
    * Represents how the SKU is consumed.
    * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
    * 
* * string usage_type = 4; + * * @return The bytes for usageType. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsageTypeBytes() { + public com.google.protobuf.ByteString getUsageTypeBytes() { java.lang.Object ref = usageType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); usageType_ = b; return b; } else { @@ -241,6 +276,7 @@ public java.lang.String getUsageType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,8 +288,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceDisplayName_); } @@ -295,21 +330,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.Category)) { return super.equals(obj); } com.google.cloud.billing.v1.Category other = (com.google.cloud.billing.v1.Category) obj; - if (!getServiceDisplayName() - .equals(other.getServiceDisplayName())) return false; - if (!getResourceFamily() - .equals(other.getResourceFamily())) return false; - if (!getResourceGroup() - .equals(other.getResourceGroup())) return false; - if (!getUsageType() - .equals(other.getUsageType())) return false; + if (!getServiceDisplayName().equals(other.getServiceDisplayName())) return false; + if (!getResourceFamily().equals(other.getResourceFamily())) return false; + if (!getResourceGroup().equals(other.getResourceGroup())) return false; + if (!getUsageType().equals(other.getUsageType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -334,132 +365,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.Category parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.Category parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.Category parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.Category parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.billing.v1.Category parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.Category parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.Category parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.Category parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.Category parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.Category parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.cloud.billing.v1.Category parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.Category parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.Category parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.Category parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.Category prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the category hierarchy of a SKU.
    * 
* * Protobuf type {@code google.cloud.billing.v1.Category} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.Category) com.google.cloud.billing.v1.CategoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Category_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Category_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Category_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Category_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.Category.class, com.google.cloud.billing.v1.Category.Builder.class); + com.google.cloud.billing.v1.Category.class, + com.google.cloud.billing.v1.Category.Builder.class); } // Construct using com.google.cloud.billing.v1.Category.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -472,9 +506,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Category_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Category_descriptor; } @java.lang.Override @@ -494,7 +528,9 @@ public com.google.cloud.billing.v1.Category build() { @java.lang.Override public com.google.cloud.billing.v1.Category buildPartial() { com.google.cloud.billing.v1.Category result = new com.google.cloud.billing.v1.Category(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -519,38 +555,39 @@ private void buildPartial0(com.google.cloud.billing.v1.Category result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.Category) { - return mergeFrom((com.google.cloud.billing.v1.Category)other); + return mergeFrom((com.google.cloud.billing.v1.Category) other); } else { super.mergeFrom(other); return this; @@ -605,32 +642,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - serviceDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - resourceFamily_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - resourceGroup_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - usageType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + serviceDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + resourceFamily_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + resourceGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + usageType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -640,22 +682,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object serviceDisplayName_ = ""; /** + * + * *
      * The display name of the service this SKU belongs to.
      * 
* * string service_display_name = 1; + * * @return The serviceDisplayName. */ public java.lang.String getServiceDisplayName() { java.lang.Object ref = serviceDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceDisplayName_ = s; return s; @@ -664,20 +709,21 @@ public java.lang.String getServiceDisplayName() { } } /** + * + * *
      * The display name of the service this SKU belongs to.
      * 
* * string service_display_name = 1; + * * @return The bytes for serviceDisplayName. */ - public com.google.protobuf.ByteString - getServiceDisplayNameBytes() { + public com.google.protobuf.ByteString getServiceDisplayNameBytes() { java.lang.Object ref = serviceDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceDisplayName_ = b; return b; } else { @@ -685,28 +731,35 @@ public java.lang.String getServiceDisplayName() { } } /** + * + * *
      * The display name of the service this SKU belongs to.
      * 
* * string service_display_name = 1; + * * @param value The serviceDisplayName to set. * @return This builder for chaining. */ - public Builder setServiceDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceDisplayName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The display name of the service this SKU belongs to.
      * 
* * string service_display_name = 1; + * * @return This builder for chaining. */ public Builder clearServiceDisplayName() { @@ -716,17 +769,21 @@ public Builder clearServiceDisplayName() { return this; } /** + * + * *
      * The display name of the service this SKU belongs to.
      * 
* * string service_display_name = 1; + * * @param value The bytes for serviceDisplayName to set. * @return This builder for chaining. */ - public Builder setServiceDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceDisplayName_ = value; bitField0_ |= 0x00000001; @@ -736,19 +793,21 @@ public Builder setServiceDisplayNameBytes( private java.lang.Object resourceFamily_ = ""; /** + * + * *
      * The type of product the SKU refers to.
      * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
      * 
* * string resource_family = 2; + * * @return The resourceFamily. */ public java.lang.String getResourceFamily() { java.lang.Object ref = resourceFamily_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFamily_ = s; return s; @@ -757,21 +816,22 @@ public java.lang.String getResourceFamily() { } } /** + * + * *
      * The type of product the SKU refers to.
      * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
      * 
* * string resource_family = 2; + * * @return The bytes for resourceFamily. */ - public com.google.protobuf.ByteString - getResourceFamilyBytes() { + public com.google.protobuf.ByteString getResourceFamilyBytes() { java.lang.Object ref = resourceFamily_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceFamily_ = b; return b; } else { @@ -779,30 +839,37 @@ public java.lang.String getResourceFamily() { } } /** + * + * *
      * The type of product the SKU refers to.
      * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
      * 
* * string resource_family = 2; + * * @param value The resourceFamily to set. * @return This builder for chaining. */ - public Builder setResourceFamily( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceFamily(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resourceFamily_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The type of product the SKU refers to.
      * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
      * 
* * string resource_family = 2; + * * @return This builder for chaining. */ public Builder clearResourceFamily() { @@ -812,18 +879,22 @@ public Builder clearResourceFamily() { return this; } /** + * + * *
      * The type of product the SKU refers to.
      * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
      * 
* * string resource_family = 2; + * * @param value The bytes for resourceFamily to set. * @return This builder for chaining. */ - public Builder setResourceFamilyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceFamilyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resourceFamily_ = value; bitField0_ |= 0x00000002; @@ -833,19 +904,21 @@ public Builder setResourceFamilyBytes( private java.lang.Object resourceGroup_ = ""; /** + * + * *
      * A group classification for related SKUs.
      * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
      * 
* * string resource_group = 3; + * * @return The resourceGroup. */ public java.lang.String getResourceGroup() { java.lang.Object ref = resourceGroup_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceGroup_ = s; return s; @@ -854,21 +927,22 @@ public java.lang.String getResourceGroup() { } } /** + * + * *
      * A group classification for related SKUs.
      * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
      * 
* * string resource_group = 3; + * * @return The bytes for resourceGroup. */ - public com.google.protobuf.ByteString - getResourceGroupBytes() { + public com.google.protobuf.ByteString getResourceGroupBytes() { java.lang.Object ref = resourceGroup_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceGroup_ = b; return b; } else { @@ -876,30 +950,37 @@ public java.lang.String getResourceGroup() { } } /** + * + * *
      * A group classification for related SKUs.
      * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
      * 
* * string resource_group = 3; + * * @param value The resourceGroup to set. * @return This builder for chaining. */ - public Builder setResourceGroup( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resourceGroup_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A group classification for related SKUs.
      * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
      * 
* * string resource_group = 3; + * * @return This builder for chaining. */ public Builder clearResourceGroup() { @@ -909,18 +990,22 @@ public Builder clearResourceGroup() { return this; } /** + * + * *
      * A group classification for related SKUs.
      * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
      * 
* * string resource_group = 3; + * * @param value The bytes for resourceGroup to set. * @return This builder for chaining. */ - public Builder setResourceGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resourceGroup_ = value; bitField0_ |= 0x00000004; @@ -930,19 +1015,21 @@ public Builder setResourceGroupBytes( private java.lang.Object usageType_ = ""; /** + * + * *
      * Represents how the SKU is consumed.
      * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
      * 
* * string usage_type = 4; + * * @return The usageType. */ public java.lang.String getUsageType() { java.lang.Object ref = usageType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usageType_ = s; return s; @@ -951,21 +1038,22 @@ public java.lang.String getUsageType() { } } /** + * + * *
      * Represents how the SKU is consumed.
      * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
      * 
* * string usage_type = 4; + * * @return The bytes for usageType. */ - public com.google.protobuf.ByteString - getUsageTypeBytes() { + public com.google.protobuf.ByteString getUsageTypeBytes() { java.lang.Object ref = usageType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); usageType_ = b; return b; } else { @@ -973,30 +1061,37 @@ public java.lang.String getUsageType() { } } /** + * + * *
      * Represents how the SKU is consumed.
      * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
      * 
* * string usage_type = 4; + * * @param value The usageType to set. * @return This builder for chaining. */ - public Builder setUsageType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsageType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } usageType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Represents how the SKU is consumed.
      * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
      * 
* * string usage_type = 4; + * * @return This builder for chaining. */ public Builder clearUsageType() { @@ -1006,27 +1101,31 @@ public Builder clearUsageType() { return this; } /** + * + * *
      * Represents how the SKU is consumed.
      * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
      * 
* * string usage_type = 4; + * * @param value The bytes for usageType to set. * @return This builder for chaining. */ - public Builder setUsageTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsageTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); usageType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1036,12 +1135,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.Category) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.Category) private static final com.google.cloud.billing.v1.Category DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.Category(); } @@ -1050,27 +1149,27 @@ public static com.google.cloud.billing.v1.Category getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Category parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Category parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1085,6 +1184,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.Category getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java similarity index 69% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java index 0a422ab1a769..7825a3783315 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java @@ -1,95 +1,131 @@ +/* + * 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 interface CategoryOrBuilder extends +public interface CategoryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.Category) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The display name of the service this SKU belongs to.
    * 
* * string service_display_name = 1; + * * @return The serviceDisplayName. */ java.lang.String getServiceDisplayName(); /** + * + * *
    * The display name of the service this SKU belongs to.
    * 
* * string service_display_name = 1; + * * @return The bytes for serviceDisplayName. */ - com.google.protobuf.ByteString - getServiceDisplayNameBytes(); + com.google.protobuf.ByteString getServiceDisplayNameBytes(); /** + * + * *
    * The type of product the SKU refers to.
    * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
    * 
* * string resource_family = 2; + * * @return The resourceFamily. */ java.lang.String getResourceFamily(); /** + * + * *
    * The type of product the SKU refers to.
    * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
    * 
* * string resource_family = 2; + * * @return The bytes for resourceFamily. */ - com.google.protobuf.ByteString - getResourceFamilyBytes(); + com.google.protobuf.ByteString getResourceFamilyBytes(); /** + * + * *
    * A group classification for related SKUs.
    * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
    * 
* * string resource_group = 3; + * * @return The resourceGroup. */ java.lang.String getResourceGroup(); /** + * + * *
    * A group classification for related SKUs.
    * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
    * 
* * string resource_group = 3; + * * @return The bytes for resourceGroup. */ - com.google.protobuf.ByteString - getResourceGroupBytes(); + com.google.protobuf.ByteString getResourceGroupBytes(); /** + * + * *
    * Represents how the SKU is consumed.
    * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
    * 
* * string usage_type = 4; + * * @return The usageType. */ java.lang.String getUsageType(); /** + * + * *
    * Represents how the SKU is consumed.
    * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
    * 
* * string usage_type = 4; + * * @return The bytes for usageType. */ - com.google.protobuf.ByteString - getUsageTypeBytes(); + com.google.protobuf.ByteString getUsageTypeBytes(); } 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 new file mode 100644 index 000000000000..76ba2b3c455f --- /dev/null +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java @@ -0,0 +1,342 @@ +/* + * 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 new file mode 100644 index 000000000000..851665193b44 --- /dev/null +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java @@ -0,0 +1,313 @@ +/* + * 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/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java similarity index 66% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java index cc83ff48dbc9..8c52bd811d99 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java @@ -1,51 +1,72 @@ +/* + * 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; /** + * + * *
  * Request message for `CreateBillingAccount`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.CreateBillingAccountRequest} */ -public final class CreateBillingAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateBillingAccountRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.CreateBillingAccountRequest) CreateBillingAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateBillingAccountRequest.newBuilder() to construct. private CreateBillingAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateBillingAccountRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBillingAccountRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.CreateBillingAccountRequest.class, com.google.cloud.billing.v1.CreateBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.CreateBillingAccountRequest.class, + com.google.cloud.billing.v1.CreateBillingAccountRequest.Builder.class); } public static final int BILLING_ACCOUNT_FIELD_NUMBER = 1; private com.google.cloud.billing.v1.BillingAccount billingAccount_; /** + * + * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -53,7 +74,10 @@ protected java.lang.Object newInstance(
    * account.
    * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the billingAccount field is set. */ @java.lang.Override @@ -61,6 +85,8 @@ public boolean hasBillingAccount() { return billingAccount_ != null; } /** + * + * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -68,14 +94,21 @@ public boolean hasBillingAccount() {
    * account.
    * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The billingAccount. */ @java.lang.Override public com.google.cloud.billing.v1.BillingAccount getBillingAccount() { - return billingAccount_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_; + return billingAccount_ == null + ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() + : billingAccount_; } /** + * + * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -83,17 +116,24 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccount() {
    * account.
    * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder() { - return billingAccount_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_; + return billingAccount_ == null + ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() + : billingAccount_; } public static final int PARENT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Optional. The parent to create a billing account from.
    * Format:
@@ -104,6 +144,7 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBu
    * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The parent. */ @java.lang.Override @@ -112,14 +153,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Optional. The parent to create a billing account from.
    * Format:
@@ -130,16 +172,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -148,6 +189,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (billingAccount_ != null) { output.writeMessage(1, getBillingAccount()); } @@ -177,8 +218,7 @@ public int getSerializedSize() { size = 0; if (billingAccount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBillingAccount()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBillingAccount()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); @@ -191,20 +231,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.CreateBillingAccountRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.CreateBillingAccountRequest other = (com.google.cloud.billing.v1.CreateBillingAccountRequest) obj; + com.google.cloud.billing.v1.CreateBillingAccountRequest other = + (com.google.cloud.billing.v1.CreateBillingAccountRequest) obj; if (hasBillingAccount() != other.hasBillingAccount()) return false; if (hasBillingAccount()) { - if (!getBillingAccount() - .equals(other.getBillingAccount())) return false; + if (!getBillingAccount().equals(other.getBillingAccount())) return false; } - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -228,131 +267,136 @@ public int hashCode() { } public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.CreateBillingAccountRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.CreateBillingAccountRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.v1.CreateBillingAccountRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `CreateBillingAccount`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.CreateBillingAccountRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.CreateBillingAccountRequest) com.google.cloud.billing.v1.CreateBillingAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.CreateBillingAccountRequest.class, com.google.cloud.billing.v1.CreateBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.CreateBillingAccountRequest.class, + com.google.cloud.billing.v1.CreateBillingAccountRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.CreateBillingAccountRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -367,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor; } @java.lang.Override @@ -388,8 +432,11 @@ public com.google.cloud.billing.v1.CreateBillingAccountRequest build() { @java.lang.Override public com.google.cloud.billing.v1.CreateBillingAccountRequest buildPartial() { - com.google.cloud.billing.v1.CreateBillingAccountRequest result = new com.google.cloud.billing.v1.CreateBillingAccountRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.v1.CreateBillingAccountRequest result = + new com.google.cloud.billing.v1.CreateBillingAccountRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -397,9 +444,8 @@ public com.google.cloud.billing.v1.CreateBillingAccountRequest buildPartial() { private void buildPartial0(com.google.cloud.billing.v1.CreateBillingAccountRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.billingAccount_ = billingAccountBuilder_ == null - ? billingAccount_ - : billingAccountBuilder_.build(); + result.billingAccount_ = + billingAccountBuilder_ == null ? billingAccount_ : billingAccountBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.parent_ = parent_; @@ -410,38 +456,39 @@ private void buildPartial0(com.google.cloud.billing.v1.CreateBillingAccountReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.CreateBillingAccountRequest) { - return mergeFrom((com.google.cloud.billing.v1.CreateBillingAccountRequest)other); + return mergeFrom((com.google.cloud.billing.v1.CreateBillingAccountRequest) other); } else { super.mergeFrom(other); return this; @@ -449,7 +496,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.CreateBillingAccountRequest other) { - if (other == com.google.cloud.billing.v1.CreateBillingAccountRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.CreateBillingAccountRequest.getDefaultInstance()) + return this; if (other.hasBillingAccount()) { mergeBillingAccount(other.getBillingAccount()); } @@ -484,24 +532,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getBillingAccountFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getBillingAccountFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -511,12 +560,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.billing.v1.BillingAccount billingAccount_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> billingAccountBuilder_; + com.google.cloud.billing.v1.BillingAccount, + com.google.cloud.billing.v1.BillingAccount.Builder, + com.google.cloud.billing.v1.BillingAccountOrBuilder> + billingAccountBuilder_; /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -524,13 +579,18 @@ public Builder mergeFrom(
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the billingAccount field is set. */ public boolean hasBillingAccount() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -538,17 +598,24 @@ public boolean hasBillingAccount() {
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The billingAccount. */ public com.google.cloud.billing.v1.BillingAccount getBillingAccount() { if (billingAccountBuilder_ == null) { - return billingAccount_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_; + return billingAccount_ == null + ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() + : billingAccount_; } else { return billingAccountBuilder_.getMessage(); } } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -556,7 +623,9 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccount() {
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBillingAccount(com.google.cloud.billing.v1.BillingAccount value) { if (billingAccountBuilder_ == null) { @@ -572,6 +641,8 @@ public Builder setBillingAccount(com.google.cloud.billing.v1.BillingAccount valu return this; } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -579,7 +650,9 @@ public Builder setBillingAccount(com.google.cloud.billing.v1.BillingAccount valu
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBillingAccount( com.google.cloud.billing.v1.BillingAccount.Builder builderForValue) { @@ -593,6 +666,8 @@ public Builder setBillingAccount( return this; } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -600,13 +675,15 @@ public Builder setBillingAccount(
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBillingAccount(com.google.cloud.billing.v1.BillingAccount value) { if (billingAccountBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - billingAccount_ != null && - billingAccount_ != com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && billingAccount_ != null + && billingAccount_ != com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()) { getBillingAccountBuilder().mergeFrom(value); } else { billingAccount_ = value; @@ -619,6 +696,8 @@ public Builder mergeBillingAccount(com.google.cloud.billing.v1.BillingAccount va return this; } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -626,7 +705,9 @@ public Builder mergeBillingAccount(com.google.cloud.billing.v1.BillingAccount va
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBillingAccount() { bitField0_ = (bitField0_ & ~0x00000001); @@ -639,6 +720,8 @@ public Builder clearBillingAccount() { return this; } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -646,7 +729,9 @@ public Builder clearBillingAccount() {
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountBuilder() { bitField0_ |= 0x00000001; @@ -654,6 +739,8 @@ public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountBuild return getBillingAccountFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -661,17 +748,22 @@ public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountBuild
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder() { if (billingAccountBuilder_ != null) { return billingAccountBuilder_.getMessageOrBuilder(); } else { - return billingAccount_ == null ? - com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_; + return billingAccount_ == null + ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() + : billingAccount_; } } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -679,17 +771,22 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBu
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> + com.google.cloud.billing.v1.BillingAccount, + com.google.cloud.billing.v1.BillingAccount.Builder, + com.google.cloud.billing.v1.BillingAccountOrBuilder> getBillingAccountFieldBuilder() { if (billingAccountBuilder_ == null) { - billingAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder>( - getBillingAccount(), - getParentForChildren(), - isClean()); + billingAccountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.v1.BillingAccount, + com.google.cloud.billing.v1.BillingAccount.Builder, + com.google.cloud.billing.v1.BillingAccountOrBuilder>( + getBillingAccount(), getParentForChildren(), isClean()); billingAccount_ = null; } return billingAccountBuilder_; @@ -697,6 +794,8 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBu private java.lang.Object parent_ = ""; /** + * + * *
      * Optional. The parent to create a billing account from.
      * Format:
@@ -707,13 +806,13 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBu
      * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -722,6 +821,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. The parent to create a billing account from.
      * Format:
@@ -732,15 +833,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -748,6 +848,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. The parent to create a billing account from.
      * Format:
@@ -758,18 +860,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The parent to create a billing account from.
      * Format:
@@ -780,6 +886,7 @@ public Builder setParent(
      * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -789,6 +896,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Optional. The parent to create a billing account from.
      * Format:
@@ -799,21 +908,23 @@ public Builder clearParent() {
      * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -823,12 +934,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.CreateBillingAccountRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.CreateBillingAccountRequest) private static final com.google.cloud.billing.v1.CreateBillingAccountRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.CreateBillingAccountRequest(); } @@ -837,27 +948,27 @@ public static com.google.cloud.billing.v1.CreateBillingAccountRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBillingAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBillingAccountRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -872,6 +983,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.billing.v1.CreateBillingAccountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java index df3feca6df92..14f080a1595e 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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 CreateBillingAccountRequestOrBuilder extends +public interface CreateBillingAccountRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.CreateBillingAccountRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -15,11 +33,16 @@ public interface CreateBillingAccountRequestOrBuilder extends
    * account.
    * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the billingAccount field is set. */ boolean hasBillingAccount(); /** + * + * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -27,11 +50,16 @@ public interface CreateBillingAccountRequestOrBuilder extends
    * account.
    * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The billingAccount. */ com.google.cloud.billing.v1.BillingAccount getBillingAccount(); /** + * + * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -39,11 +67,15 @@ public interface CreateBillingAccountRequestOrBuilder extends
    * account.
    * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder(); /** + * + * *
    * Optional. The parent to create a billing account from.
    * Format:
@@ -54,10 +86,13 @@ public interface CreateBillingAccountRequestOrBuilder extends
    * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Optional. The parent to create a billing account from.
    * Format:
@@ -68,8 +103,8 @@ public interface CreateBillingAccountRequestOrBuilder extends
    * 
* * string parent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java similarity index 71% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java index 9d02367334db..ad5a12f45619 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java @@ -1,60 +1,81 @@ +/* + * 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; /** + * + * *
  * Encapsulates the geographic taxonomy data for a sku.
  * 
* * Protobuf type {@code google.cloud.billing.v1.GeoTaxonomy} */ -public final class GeoTaxonomy extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GeoTaxonomy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.GeoTaxonomy) GeoTaxonomyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GeoTaxonomy.newBuilder() to construct. private GeoTaxonomy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GeoTaxonomy() { type_ = 0; - regions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GeoTaxonomy(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_GeoTaxonomy_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_GeoTaxonomy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.GeoTaxonomy.class, com.google.cloud.billing.v1.GeoTaxonomy.Builder.class); + com.google.cloud.billing.v1.GeoTaxonomy.class, + com.google.cloud.billing.v1.GeoTaxonomy.Builder.class); } /** + * + * *
    * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
    * 
* * Protobuf enum {@code google.cloud.billing.v1.GeoTaxonomy.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The type is not specified.
      * 
@@ -63,6 +84,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * The sku is global in nature, e.g. a license sku. Global skus are
      * available in all regions, and so have an empty region list.
@@ -72,6 +95,8 @@ public enum Type
      */
     GLOBAL(1),
     /**
+     *
+     *
      * 
      * The sku is available in a specific region, e.g. "us-west2".
      * 
@@ -80,6 +105,8 @@ public enum Type */ REGIONAL(2), /** + * + * *
      * The sku is associated with multiple regions, e.g. "us-west2" and
      * "us-east1".
@@ -92,6 +119,8 @@ public enum Type
     ;
 
     /**
+     *
+     *
      * 
      * The type is not specified.
      * 
@@ -100,6 +129,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The sku is global in nature, e.g. a license sku. Global skus are
      * available in all regions, and so have an empty region list.
@@ -109,6 +140,8 @@ public enum Type
      */
     public static final int GLOBAL_VALUE = 1;
     /**
+     *
+     *
      * 
      * The sku is available in a specific region, e.g. "us-west2".
      * 
@@ -117,6 +150,8 @@ public enum Type */ public static final int REGIONAL_VALUE = 2; /** + * + * *
      * The sku is associated with multiple regions, e.g. "us-west2" and
      * "us-east1".
@@ -126,7 +161,6 @@ public enum Type
      */
     public static final int MULTI_REGIONAL_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -151,50 +185,51 @@ public static Type valueOf(int value) {
      */
     public static Type forNumber(int value) {
       switch (value) {
-        case 0: return TYPE_UNSPECIFIED;
-        case 1: return GLOBAL;
-        case 2: return REGIONAL;
-        case 3: return MULTI_REGIONAL;
-        default: return null;
+        case 0:
+          return TYPE_UNSPECIFIED;
+        case 1:
+          return GLOBAL;
+        case 2:
+          return REGIONAL;
+        case 3:
+          return MULTI_REGIONAL;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        Type> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Type findValueByNumber(int number) {
-              return Type.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Type findValueByNumber(int number) {
+            return Type.forNumber(number);
+          }
+        };
+
+    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.GeoTaxonomy.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Type[] VALUES = values();
 
-    public static Type valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Type 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;
@@ -214,65 +249,83 @@ private Type(int value) {
   public static final int TYPE_FIELD_NUMBER = 1;
   private int type_ = 0;
   /**
+   *
+   *
    * 
    * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.billing.v1.GeoTaxonomy.Type getType() { - com.google.cloud.billing.v1.GeoTaxonomy.Type result = com.google.cloud.billing.v1.GeoTaxonomy.Type.forNumber(type_); + @java.lang.Override + public com.google.cloud.billing.v1.GeoTaxonomy.Type getType() { + com.google.cloud.billing.v1.GeoTaxonomy.Type result = + com.google.cloud.billing.v1.GeoTaxonomy.Type.forNumber(type_); return result == null ? com.google.cloud.billing.v1.GeoTaxonomy.Type.UNRECOGNIZED : result; } public static final int REGIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; + * * @return A list containing the regions. */ - public com.google.protobuf.ProtocolStringList - getRegionsList() { + public com.google.protobuf.ProtocolStringList getRegionsList() { return regions_; } /** + * + * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; + * * @return The count of regions. */ public int getRegionsCount() { return regions_.size(); } /** + * + * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; + * * @param index The index of the element to return. * @return The regions at the given index. */ @@ -280,21 +333,24 @@ public java.lang.String getRegions(int index) { return regions_.get(index); } /** + * + * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; + * * @param index The index of the value to return. * @return The bytes of the regions at the given index. */ - public com.google.protobuf.ByteString - getRegionsBytes(int index) { + public com.google.protobuf.ByteString getRegionsBytes(int index) { return regions_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -306,8 +362,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != com.google.cloud.billing.v1.GeoTaxonomy.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } @@ -324,8 +379,7 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.billing.v1.GeoTaxonomy.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } { int dataSize = 0; @@ -343,7 +397,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.GeoTaxonomy)) { return super.equals(obj); @@ -351,8 +405,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.billing.v1.GeoTaxonomy other = (com.google.cloud.billing.v1.GeoTaxonomy) obj; if (type_ != other.type_) return false; - if (!getRegionsList() - .equals(other.getRegionsList())) return false; + if (!getRegionsList().equals(other.getRegionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -375,146 +428,149 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.GeoTaxonomy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.GeoTaxonomy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.GeoTaxonomy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.GeoTaxonomy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Encapsulates the geographic taxonomy data for a sku.
    * 
* * Protobuf type {@code google.cloud.billing.v1.GeoTaxonomy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.GeoTaxonomy) com.google.cloud.billing.v1.GeoTaxonomyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_GeoTaxonomy_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_GeoTaxonomy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.GeoTaxonomy.class, com.google.cloud.billing.v1.GeoTaxonomy.Builder.class); + com.google.cloud.billing.v1.GeoTaxonomy.class, + com.google.cloud.billing.v1.GeoTaxonomy.Builder.class); } // Construct using com.google.cloud.billing.v1.GeoTaxonomy.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 0; - regions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_GeoTaxonomy_descriptor; } @java.lang.Override @@ -533,8 +589,11 @@ public com.google.cloud.billing.v1.GeoTaxonomy build() { @java.lang.Override public com.google.cloud.billing.v1.GeoTaxonomy buildPartial() { - com.google.cloud.billing.v1.GeoTaxonomy result = new com.google.cloud.billing.v1.GeoTaxonomy(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.v1.GeoTaxonomy result = + new com.google.cloud.billing.v1.GeoTaxonomy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -554,38 +613,39 @@ private void buildPartial0(com.google.cloud.billing.v1.GeoTaxonomy result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.GeoTaxonomy) { - return mergeFrom((com.google.cloud.billing.v1.GeoTaxonomy)other); + return mergeFrom((com.google.cloud.billing.v1.GeoTaxonomy) other); } else { super.mergeFrom(other); return this; @@ -633,23 +693,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - type_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureRegionsIsMutable(); - regions_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRegionsIsMutable(); + regions_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,26 +722,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int type_ = 0; /** + * + * *
      * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -689,24 +760,31 @@ public Builder setTypeValue(int value) { return this; } /** + * + * *
      * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; + * * @return The type. */ @java.lang.Override public com.google.cloud.billing.v1.GeoTaxonomy.Type getType() { - com.google.cloud.billing.v1.GeoTaxonomy.Type result = com.google.cloud.billing.v1.GeoTaxonomy.Type.forNumber(type_); + com.google.cloud.billing.v1.GeoTaxonomy.Type result = + com.google.cloud.billing.v1.GeoTaxonomy.Type.forNumber(type_); return result == null ? com.google.cloud.billing.v1.GeoTaxonomy.Type.UNRECOGNIZED : result; } /** + * + * *
      * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; + * * @param value The type to set. * @return This builder for chaining. */ @@ -720,11 +798,14 @@ public Builder setType(com.google.cloud.billing.v1.GeoTaxonomy.Type value) { return this; } /** + * + * *
      * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; + * * @return This builder for chaining. */ public Builder clearType() { @@ -736,6 +817,7 @@ public Builder clearType() { private com.google.protobuf.LazyStringArrayList regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRegionsIsMutable() { if (!regions_.isModifiable()) { regions_ = new com.google.protobuf.LazyStringArrayList(regions_); @@ -743,38 +825,46 @@ private void ensureRegionsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; + * * @return A list containing the regions. */ - public com.google.protobuf.ProtocolStringList - getRegionsList() { + public com.google.protobuf.ProtocolStringList getRegionsList() { regions_.makeImmutable(); return regions_; } /** + * + * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; + * * @return The count of regions. */ public int getRegionsCount() { return regions_.size(); } /** + * + * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; + * * @param index The index of the element to return. * @return The regions at the given index. */ @@ -782,33 +872,39 @@ public java.lang.String getRegions(int index) { return regions_.get(index); } /** + * + * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; + * * @param index The index of the value to return. * @return The bytes of the regions at the given index. */ - public com.google.protobuf.ByteString - getRegionsBytes(int index) { + public com.google.protobuf.ByteString getRegionsBytes(int index) { return regions_.getByteString(index); } /** + * + * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; + * * @param index The index to set the value at. * @param value The regions to set. * @return This builder for chaining. */ - public Builder setRegions( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRegions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureRegionsIsMutable(); regions_.set(index, value); bitField0_ |= 0x00000002; @@ -816,18 +912,22 @@ public Builder setRegions( return this; } /** + * + * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; + * * @param value The regions to add. * @return This builder for chaining. */ - public Builder addRegions( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addRegions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureRegionsIsMutable(); regions_.add(value); bitField0_ |= 0x00000002; @@ -835,53 +935,61 @@ public Builder addRegions( return this; } /** + * + * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; + * * @param values The regions to add. * @return This builder for chaining. */ - public Builder addAllRegions( - java.lang.Iterable values) { + public Builder addAllRegions(java.lang.Iterable values) { ensureRegionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, regions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, regions_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; + * * @return This builder for chaining. */ public Builder clearRegions() { - regions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * The list of regions associated with a sku. Empty for Global skus, which are
      * associated with all Google Cloud regions.
      * 
* * repeated string regions = 2; + * * @param value The bytes of the regions to add. * @return This builder for chaining. */ - public Builder addRegionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addRegionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureRegionsIsMutable(); regions_.add(value); @@ -889,9 +997,9 @@ public Builder addRegionsBytes( onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -901,12 +1009,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.GeoTaxonomy) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.GeoTaxonomy) private static final com.google.cloud.billing.v1.GeoTaxonomy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.GeoTaxonomy(); } @@ -915,27 +1023,27 @@ public static com.google.cloud.billing.v1.GeoTaxonomy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GeoTaxonomy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeoTaxonomy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,6 +1058,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.GeoTaxonomy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java similarity index 70% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java index ba34e758c02d..d760f0f9020d 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java @@ -1,73 +1,105 @@ +/* + * 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 interface GeoTaxonomyOrBuilder extends +public interface GeoTaxonomyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.GeoTaxonomy) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy.Type type = 1; + * * @return The type. */ com.google.cloud.billing.v1.GeoTaxonomy.Type getType(); /** + * + * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; + * * @return A list containing the regions. */ - java.util.List - getRegionsList(); + java.util.List getRegionsList(); /** + * + * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; + * * @return The count of regions. */ int getRegionsCount(); /** + * + * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; + * * @param index The index of the element to return. * @return The regions at the given index. */ java.lang.String getRegions(int index); /** + * + * *
    * The list of regions associated with a sku. Empty for Global skus, which are
    * associated with all Google Cloud regions.
    * 
* * repeated string regions = 2; + * * @param index The index of the value to return. * @return The bytes of the regions at the given index. */ - com.google.protobuf.ByteString - getRegionsBytes(int index); + com.google.protobuf.ByteString getRegionsBytes(int index); } diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java similarity index 62% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java index 8d73a50c88ca..b5d332003fe8 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java @@ -1,58 +1,83 @@ +/* + * 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; /** + * + * *
  * Request message for `GetBillingAccount`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.GetBillingAccountRequest} */ -public final class GetBillingAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetBillingAccountRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.GetBillingAccountRequest) GetBillingAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetBillingAccountRequest.newBuilder() to construct. private GetBillingAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetBillingAccountRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetBillingAccountRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.GetBillingAccountRequest.class, com.google.cloud.billing.v1.GetBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.GetBillingAccountRequest.class, + com.google.cloud.billing.v1.GetBillingAccountRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.GetBillingAccountRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.GetBillingAccountRequest other = (com.google.cloud.billing.v1.GetBillingAccountRequest) obj; + com.google.cloud.billing.v1.GetBillingAccountRequest other = + (com.google.cloud.billing.v1.GetBillingAccountRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,135 @@ public int hashCode() { } public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.GetBillingAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.GetBillingAccountRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.GetBillingAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.GetBillingAccountRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.GetBillingAccountRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GetBillingAccount`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.GetBillingAccountRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.GetBillingAccountRequest) com.google.cloud.billing.v1.GetBillingAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.GetBillingAccountRequest.class, com.google.cloud.billing.v1.GetBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.GetBillingAccountRequest.class, + com.google.cloud.billing.v1.GetBillingAccountRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.GetBillingAccountRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor; } @java.lang.Override @@ -312,8 +343,11 @@ public com.google.cloud.billing.v1.GetBillingAccountRequest build() { @java.lang.Override public com.google.cloud.billing.v1.GetBillingAccountRequest buildPartial() { - com.google.cloud.billing.v1.GetBillingAccountRequest result = new com.google.cloud.billing.v1.GetBillingAccountRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.v1.GetBillingAccountRequest result = + new com.google.cloud.billing.v1.GetBillingAccountRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +363,39 @@ private void buildPartial0(com.google.cloud.billing.v1.GetBillingAccountRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.GetBillingAccountRequest) { - return mergeFrom((com.google.cloud.billing.v1.GetBillingAccountRequest)other); + return mergeFrom((com.google.cloud.billing.v1.GetBillingAccountRequest) other); } else { super.mergeFrom(other); return this; @@ -368,7 +403,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.GetBillingAccountRequest other) { - if (other == com.google.cloud.billing.v1.GetBillingAccountRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.GetBillingAccountRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +436,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +458,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,21 +488,24 @@ public 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -467,30 +513,41 @@ public 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -500,27 +557,33 @@ public Builder clearName() { return this; } /** + * + * *
      * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +593,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.GetBillingAccountRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.GetBillingAccountRequest) private static final com.google.cloud.billing.v1.GetBillingAccountRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.GetBillingAccountRequest(); } @@ -544,27 +607,27 @@ public static com.google.cloud.billing.v1.GetBillingAccountRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBillingAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBillingAccountRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +642,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.GetBillingAccountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - 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 new file mode 100644 index 000000000000..1c4f43ff36f8 --- /dev/null +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java similarity index 62% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java index 6430ca9c560b..15c4d8fab4fc 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java @@ -1,58 +1,83 @@ +/* + * 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; /** + * + * *
  * Request message for `GetProjectBillingInfo`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.GetProjectBillingInfoRequest} */ -public final class GetProjectBillingInfoRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetProjectBillingInfoRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.GetProjectBillingInfoRequest) GetProjectBillingInfoRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetProjectBillingInfoRequest.newBuilder() to construct. private GetProjectBillingInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetProjectBillingInfoRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetProjectBillingInfoRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.GetProjectBillingInfoRequest.class, com.google.cloud.billing.v1.GetProjectBillingInfoRequest.Builder.class); + com.google.cloud.billing.v1.GetProjectBillingInfoRequest.class, + com.google.cloud.billing.v1.GetProjectBillingInfoRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -61,30 +86,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -129,15 +156,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.GetProjectBillingInfoRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.GetProjectBillingInfoRequest other = (com.google.cloud.billing.v1.GetProjectBillingInfoRequest) obj; + com.google.cloud.billing.v1.GetProjectBillingInfoRequest other = + (com.google.cloud.billing.v1.GetProjectBillingInfoRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,136 @@ public int hashCode() { } public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.GetProjectBillingInfoRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.v1.GetProjectBillingInfoRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GetProjectBillingInfo`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.GetProjectBillingInfoRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.GetProjectBillingInfoRequest) com.google.cloud.billing.v1.GetProjectBillingInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.GetProjectBillingInfoRequest.class, com.google.cloud.billing.v1.GetProjectBillingInfoRequest.Builder.class); + com.google.cloud.billing.v1.GetProjectBillingInfoRequest.class, + com.google.cloud.billing.v1.GetProjectBillingInfoRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.GetProjectBillingInfoRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor; } @java.lang.Override @@ -312,8 +344,11 @@ public com.google.cloud.billing.v1.GetProjectBillingInfoRequest build() { @java.lang.Override public com.google.cloud.billing.v1.GetProjectBillingInfoRequest buildPartial() { - com.google.cloud.billing.v1.GetProjectBillingInfoRequest result = new com.google.cloud.billing.v1.GetProjectBillingInfoRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.v1.GetProjectBillingInfoRequest result = + new com.google.cloud.billing.v1.GetProjectBillingInfoRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +364,39 @@ private void buildPartial0(com.google.cloud.billing.v1.GetProjectBillingInfoRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.GetProjectBillingInfoRequest) { - return mergeFrom((com.google.cloud.billing.v1.GetProjectBillingInfoRequest)other); + return mergeFrom((com.google.cloud.billing.v1.GetProjectBillingInfoRequest) other); } else { super.mergeFrom(other); return this; @@ -368,7 +404,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.GetProjectBillingInfoRequest other) { - if (other == com.google.cloud.billing.v1.GetProjectBillingInfoRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.GetProjectBillingInfoRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -400,17 +437,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +459,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,21 +489,24 @@ public 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -467,30 +514,41 @@ public 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -500,27 +558,33 @@ public Builder clearName() { return this; } /** + * + * *
      * 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) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -530,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.GetProjectBillingInfoRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.GetProjectBillingInfoRequest) private static final com.google.cloud.billing.v1.GetProjectBillingInfoRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.GetProjectBillingInfoRequest(); } @@ -544,27 +608,27 @@ public static com.google.cloud.billing.v1.GetProjectBillingInfoRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProjectBillingInfoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProjectBillingInfoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +643,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.billing.v1.GetProjectBillingInfoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - 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 new file mode 100644 index 000000000000..d303aa1819fa --- /dev/null +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java similarity index 73% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java index 91dbfe97027c..7be373e0d517 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
  * Request message for `ListBillingAccounts`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListBillingAccountsRequest} */ -public final class ListBillingAccountsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBillingAccountsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListBillingAccountsRequest) ListBillingAccountsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBillingAccountsRequest.newBuilder() to construct. private ListBillingAccountsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBillingAccountsRequest() { pageToken_ = ""; filter_ = ""; @@ -27,33 +45,37 @@ private ListBillingAccountsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBillingAccountsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListBillingAccountsRequest.class, com.google.cloud.billing.v1.ListBillingAccountsRequest.Builder.class); + com.google.cloud.billing.v1.ListBillingAccountsRequest.class, + com.google.cloud.billing.v1.ListBillingAccountsRequest.Builder.class); } public static final int PAGE_SIZE_FIELD_NUMBER = 1; private int pageSize_ = 0; /** + * + * *
    * Requested page size. The maximum page size is 100; this is also the
    * default.
    * 
* * int32 page_size = 1; + * * @return The pageSize. */ @java.lang.Override @@ -62,9 +84,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -72,6 +97,7 @@ public int getPageSize() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -80,14 +106,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -95,16 +122,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -113,9 +139,12 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Options for how to filter the returned billing accounts.
    * This only supports filtering for
@@ -127,6 +156,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 3; + * * @return The filter. */ @java.lang.Override @@ -135,14 +165,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Options for how to filter the returned billing accounts.
    * This only supports filtering for
@@ -154,16 +185,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -172,9 +202,12 @@ public java.lang.String getFilter() { } public static final int PARENT_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Optional. The parent resource to list billing accounts from.
    * Format:
@@ -185,6 +218,7 @@ public java.lang.String getFilter() {
    * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The parent. */ @java.lang.Override @@ -193,14 +227,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Optional. The parent resource to list billing accounts from.
    * Format:
@@ -211,16 +246,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -229,6 +263,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,8 +275,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -264,8 +298,7 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); @@ -284,21 +317,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListBillingAccountsRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListBillingAccountsRequest other = (com.google.cloud.billing.v1.ListBillingAccountsRequest) obj; - - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getParent() - .equals(other.getParent())) return false; + com.google.cloud.billing.v1.ListBillingAccountsRequest other = + (com.google.cloud.billing.v1.ListBillingAccountsRequest) obj; + + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,131 +354,136 @@ public int hashCode() { } public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListBillingAccountsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.ListBillingAccountsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.v1.ListBillingAccountsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `ListBillingAccounts`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListBillingAccountsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListBillingAccountsRequest) com.google.cloud.billing.v1.ListBillingAccountsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListBillingAccountsRequest.class, com.google.cloud.billing.v1.ListBillingAccountsRequest.Builder.class); + com.google.cloud.billing.v1.ListBillingAccountsRequest.class, + com.google.cloud.billing.v1.ListBillingAccountsRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.ListBillingAccountsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -461,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor; } @java.lang.Override @@ -482,8 +517,11 @@ public com.google.cloud.billing.v1.ListBillingAccountsRequest build() { @java.lang.Override public com.google.cloud.billing.v1.ListBillingAccountsRequest buildPartial() { - com.google.cloud.billing.v1.ListBillingAccountsRequest result = new com.google.cloud.billing.v1.ListBillingAccountsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.v1.ListBillingAccountsRequest result = + new com.google.cloud.billing.v1.ListBillingAccountsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -508,38 +546,39 @@ private void buildPartial0(com.google.cloud.billing.v1.ListBillingAccountsReques public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListBillingAccountsRequest) { - return mergeFrom((com.google.cloud.billing.v1.ListBillingAccountsRequest)other); + return mergeFrom((com.google.cloud.billing.v1.ListBillingAccountsRequest) other); } else { super.mergeFrom(other); return this; @@ -547,7 +586,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListBillingAccountsRequest other) { - if (other == com.google.cloud.billing.v1.ListBillingAccountsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.ListBillingAccountsRequest.getDefaultInstance()) + return this; if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } @@ -592,32 +632,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -627,16 +672,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Requested page size. The maximum page size is 100; this is also the
      * default.
      * 
* * int32 page_size = 1; + * * @return The pageSize. */ @java.lang.Override @@ -644,12 +693,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. The maximum page size is 100; this is also the
      * default.
      * 
* * int32 page_size = 1; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -661,12 +713,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Requested page size. The maximum page size is 100; this is also the
      * default.
      * 
* * int32 page_size = 1; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -678,6 +733,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -685,13 +742,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -700,6 +757,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -707,15 +766,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -723,6 +781,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -730,18 +790,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -749,6 +813,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -758,6 +823,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -765,12 +832,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -780,6 +849,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Options for how to filter the returned billing accounts.
      * This only supports filtering for
@@ -791,13 +862,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 3; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -806,6 +877,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Options for how to filter the returned billing accounts.
      * This only supports filtering for
@@ -817,15 +890,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -833,6 +905,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Options for how to filter the returned billing accounts.
      * This only supports filtering for
@@ -844,18 +918,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Options for how to filter the returned billing accounts.
      * This only supports filtering for
@@ -867,6 +945,7 @@ public Builder setFilter(
      * 
* * string filter = 3; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -876,6 +955,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Options for how to filter the returned billing accounts.
      * This only supports filtering for
@@ -887,12 +968,14 @@ public Builder clearFilter() {
      * 
* * string filter = 3; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000004; @@ -902,6 +985,8 @@ public Builder setFilterBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Optional. The parent resource to list billing accounts from.
      * Format:
@@ -912,13 +997,13 @@ public Builder setFilterBytes(
      * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -927,6 +1012,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. The parent resource to list billing accounts from.
      * Format:
@@ -937,15 +1024,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -953,6 +1039,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Optional. The parent resource to list billing accounts from.
      * Format:
@@ -963,18 +1051,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The parent resource to list billing accounts from.
      * Format:
@@ -985,6 +1077,7 @@ public Builder setParent(
      * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -994,6 +1087,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Optional. The parent resource to list billing accounts from.
      * Format:
@@ -1004,21 +1099,23 @@ public Builder clearParent() {
      * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1028,12 +1125,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListBillingAccountsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListBillingAccountsRequest) private static final com.google.cloud.billing.v1.ListBillingAccountsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListBillingAccountsRequest(); } @@ -1042,27 +1139,27 @@ public static com.google.cloud.billing.v1.ListBillingAccountsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBillingAccountsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBillingAccountsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1077,6 +1174,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.billing.v1.ListBillingAccountsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java index 51a1eb401551..4fef7fe19e50 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java @@ -1,24 +1,45 @@ +/* + * 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 ListBillingAccountsRequestOrBuilder extends +public interface ListBillingAccountsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListBillingAccountsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Requested page size. The maximum page size is 100; this is also the
    * default.
    * 
* * int32 page_size = 1; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -26,10 +47,13 @@ public interface ListBillingAccountsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -37,12 +61,14 @@ public interface ListBillingAccountsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Options for how to filter the returned billing accounts.
    * This only supports filtering for
@@ -54,10 +80,13 @@ public interface ListBillingAccountsRequestOrBuilder extends
    * 
* * string filter = 3; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Options for how to filter the returned billing accounts.
    * This only supports filtering for
@@ -69,12 +98,14 @@ public interface ListBillingAccountsRequestOrBuilder extends
    * 
* * string filter = 3; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. The parent resource to list billing accounts from.
    * Format:
@@ -85,10 +116,13 @@ public interface ListBillingAccountsRequestOrBuilder extends
    * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Optional. The parent resource to list billing accounts from.
    * Format:
@@ -99,8 +133,8 @@ public interface ListBillingAccountsRequestOrBuilder extends
    * 
* * string parent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java similarity index 72% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java index bf7eaa480d55..893a40bbd660 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
  * Response message for `ListBillingAccounts`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListBillingAccountsResponse} */ -public final class ListBillingAccountsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBillingAccountsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListBillingAccountsResponse) ListBillingAccountsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBillingAccountsResponse.newBuilder() to construct. private ListBillingAccountsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBillingAccountsResponse() { billingAccounts_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListBillingAccountsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBillingAccountsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListBillingAccountsResponse.class, com.google.cloud.billing.v1.ListBillingAccountsResponse.Builder.class); + com.google.cloud.billing.v1.ListBillingAccountsResponse.class, + com.google.cloud.billing.v1.ListBillingAccountsResponse.Builder.class); } public static final int BILLING_ACCOUNTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List billingAccounts_; /** + * + * *
    * A list of billing accounts.
    * 
@@ -59,6 +81,8 @@ public java.util.List getBillingAcco return billingAccounts_; } /** + * + * *
    * A list of billing accounts.
    * 
@@ -66,11 +90,13 @@ public java.util.List getBillingAcco * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBillingAccountsOrBuilderList() { return billingAccounts_; } /** + * + * *
    * A list of billing accounts.
    * 
@@ -82,6 +108,8 @@ public int getBillingAccountsCount() { return billingAccounts_.size(); } /** + * + * *
    * A list of billing accounts.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccounts(int index) return billingAccounts_.get(index); } /** + * + * *
    * A list of billing accounts.
    * 
@@ -106,9 +136,12 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -116,6 +149,7 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +158,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -139,16 +174,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +191,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < billingAccounts_.size(); i++) { output.writeMessage(1, billingAccounts_.get(i)); } @@ -186,8 +220,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < billingAccounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, billingAccounts_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, billingAccounts_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -200,17 +233,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListBillingAccountsResponse)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListBillingAccountsResponse other = (com.google.cloud.billing.v1.ListBillingAccountsResponse) obj; + com.google.cloud.billing.v1.ListBillingAccountsResponse other = + (com.google.cloud.billing.v1.ListBillingAccountsResponse) obj; - if (!getBillingAccountsList() - .equals(other.getBillingAccountsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getBillingAccountsList().equals(other.getBillingAccountsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,131 +266,136 @@ public int hashCode() { } public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListBillingAccountsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.ListBillingAccountsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.v1.ListBillingAccountsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for `ListBillingAccounts`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListBillingAccountsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListBillingAccountsResponse) com.google.cloud.billing.v1.ListBillingAccountsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListBillingAccountsResponse.class, com.google.cloud.billing.v1.ListBillingAccountsResponse.Builder.class); + com.google.cloud.billing.v1.ListBillingAccountsResponse.class, + com.google.cloud.billing.v1.ListBillingAccountsResponse.Builder.class); } // Construct using com.google.cloud.billing.v1.ListBillingAccountsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor; } @java.lang.Override @@ -396,14 +433,18 @@ public com.google.cloud.billing.v1.ListBillingAccountsResponse build() { @java.lang.Override public com.google.cloud.billing.v1.ListBillingAccountsResponse buildPartial() { - com.google.cloud.billing.v1.ListBillingAccountsResponse result = new com.google.cloud.billing.v1.ListBillingAccountsResponse(this); + com.google.cloud.billing.v1.ListBillingAccountsResponse result = + new com.google.cloud.billing.v1.ListBillingAccountsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.billing.v1.ListBillingAccountsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.billing.v1.ListBillingAccountsResponse result) { if (billingAccountsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { billingAccounts_ = java.util.Collections.unmodifiableList(billingAccounts_); @@ -426,38 +467,39 @@ private void buildPartial0(com.google.cloud.billing.v1.ListBillingAccountsRespon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListBillingAccountsResponse) { - return mergeFrom((com.google.cloud.billing.v1.ListBillingAccountsResponse)other); + return mergeFrom((com.google.cloud.billing.v1.ListBillingAccountsResponse) other); } else { super.mergeFrom(other); return this; @@ -465,7 +507,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListBillingAccountsResponse other) { - if (other == com.google.cloud.billing.v1.ListBillingAccountsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.ListBillingAccountsResponse.getDefaultInstance()) + return this; if (billingAccountsBuilder_ == null) { if (!other.billingAccounts_.isEmpty()) { if (billingAccounts_.isEmpty()) { @@ -484,9 +527,10 @@ public Builder mergeFrom(com.google.cloud.billing.v1.ListBillingAccountsResponse billingAccountsBuilder_ = null; billingAccounts_ = other.billingAccounts_; bitField0_ = (bitField0_ & ~0x00000001); - billingAccountsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBillingAccountsFieldBuilder() : null; + billingAccountsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBillingAccountsFieldBuilder() + : null; } else { billingAccountsBuilder_.addAllMessages(other.billingAccounts_); } @@ -523,30 +567,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.billing.v1.BillingAccount m = - input.readMessage( - com.google.cloud.billing.v1.BillingAccount.parser(), - extensionRegistry); - if (billingAccountsBuilder_ == null) { - ensureBillingAccountsIsMutable(); - billingAccounts_.add(m); - } else { - billingAccountsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.billing.v1.BillingAccount m = + input.readMessage( + com.google.cloud.billing.v1.BillingAccount.parser(), extensionRegistry); + if (billingAccountsBuilder_ == null) { + ensureBillingAccountsIsMutable(); + billingAccounts_.add(m); + } else { + billingAccountsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,21 +602,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List billingAccounts_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBillingAccountsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - billingAccounts_ = new java.util.ArrayList(billingAccounts_); + billingAccounts_ = + new java.util.ArrayList(billingAccounts_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> billingAccountsBuilder_; + com.google.cloud.billing.v1.BillingAccount, + com.google.cloud.billing.v1.BillingAccount.Builder, + com.google.cloud.billing.v1.BillingAccountOrBuilder> + billingAccountsBuilder_; /** + * + * *
      * A list of billing accounts.
      * 
@@ -585,6 +639,8 @@ public java.util.List getBillingAcco } } /** + * + * *
      * A list of billing accounts.
      * 
@@ -599,6 +655,8 @@ public int getBillingAccountsCount() { } } /** + * + * *
      * A list of billing accounts.
      * 
@@ -613,14 +671,15 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccounts(int index) } } /** + * + * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public Builder setBillingAccounts( - int index, com.google.cloud.billing.v1.BillingAccount value) { + public Builder setBillingAccounts(int index, com.google.cloud.billing.v1.BillingAccount value) { if (billingAccountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -634,6 +693,8 @@ public Builder setBillingAccounts( return this; } /** + * + * *
      * A list of billing accounts.
      * 
@@ -652,6 +713,8 @@ public Builder setBillingAccounts( return this; } /** + * + * *
      * A list of billing accounts.
      * 
@@ -672,14 +735,15 @@ public Builder addBillingAccounts(com.google.cloud.billing.v1.BillingAccount val return this; } /** + * + * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public Builder addBillingAccounts( - int index, com.google.cloud.billing.v1.BillingAccount value) { + public Builder addBillingAccounts(int index, com.google.cloud.billing.v1.BillingAccount value) { if (billingAccountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,6 +757,8 @@ public Builder addBillingAccounts( return this; } /** + * + * *
      * A list of billing accounts.
      * 
@@ -711,6 +777,8 @@ public Builder addBillingAccounts( return this; } /** + * + * *
      * A list of billing accounts.
      * 
@@ -729,6 +797,8 @@ public Builder addBillingAccounts( return this; } /** + * + * *
      * A list of billing accounts.
      * 
@@ -739,8 +809,7 @@ public Builder addAllBillingAccounts( java.lang.Iterable values) { if (billingAccountsBuilder_ == null) { ensureBillingAccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, billingAccounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, billingAccounts_); onChanged(); } else { billingAccountsBuilder_.addAllMessages(values); @@ -748,6 +817,8 @@ public Builder addAllBillingAccounts( return this; } /** + * + * *
      * A list of billing accounts.
      * 
@@ -765,6 +836,8 @@ public Builder clearBillingAccounts() { return this; } /** + * + * *
      * A list of billing accounts.
      * 
@@ -782,17 +855,20 @@ public Builder removeBillingAccounts(int index) { return this; } /** + * + * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountsBuilder( - int index) { + public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountsBuilder(int index) { return getBillingAccountsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of billing accounts.
      * 
@@ -802,19 +878,22 @@ public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountsBuil public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrBuilder( int index) { if (billingAccountsBuilder_ == null) { - return billingAccounts_.get(index); } else { + return billingAccounts_.get(index); + } else { return billingAccountsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public java.util.List - getBillingAccountsOrBuilderList() { + public java.util.List + getBillingAccountsOrBuilderList() { if (billingAccountsBuilder_ != null) { return billingAccountsBuilder_.getMessageOrBuilderList(); } else { @@ -822,6 +901,8 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB } } /** + * + * *
      * A list of billing accounts.
      * 
@@ -829,38 +910,47 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ public com.google.cloud.billing.v1.BillingAccount.Builder addBillingAccountsBuilder() { - return getBillingAccountsFieldBuilder().addBuilder( - com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()); + return getBillingAccountsFieldBuilder() + .addBuilder(com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()); } /** + * + * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public com.google.cloud.billing.v1.BillingAccount.Builder addBillingAccountsBuilder( - int index) { - return getBillingAccountsFieldBuilder().addBuilder( - index, com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()); + public com.google.cloud.billing.v1.BillingAccount.Builder addBillingAccountsBuilder(int index) { + return getBillingAccountsFieldBuilder() + .addBuilder(index, com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()); } /** + * + * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public java.util.List - getBillingAccountsBuilderList() { + public java.util.List + getBillingAccountsBuilderList() { return getBillingAccountsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> + com.google.cloud.billing.v1.BillingAccount, + com.google.cloud.billing.v1.BillingAccount.Builder, + com.google.cloud.billing.v1.BillingAccountOrBuilder> getBillingAccountsFieldBuilder() { if (billingAccountsBuilder_ == null) { - billingAccountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder>( + billingAccountsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.v1.BillingAccount, + com.google.cloud.billing.v1.BillingAccount.Builder, + com.google.cloud.billing.v1.BillingAccountOrBuilder>( billingAccounts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -872,6 +962,8 @@ public com.google.cloud.billing.v1.BillingAccount.Builder addBillingAccountsBuil private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -879,13 +971,13 @@ public com.google.cloud.billing.v1.BillingAccount.Builder addBillingAccountsBuil
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -894,6 +986,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -901,15 +995,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +1010,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -924,18 +1019,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -943,6 +1042,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1052,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -959,21 +1061,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1087,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListBillingAccountsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListBillingAccountsResponse) private static final com.google.cloud.billing.v1.ListBillingAccountsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListBillingAccountsResponse(); } @@ -997,27 +1101,27 @@ public static com.google.cloud.billing.v1.ListBillingAccountsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBillingAccountsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBillingAccountsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,6 +1136,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.billing.v1.ListBillingAccountsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java index 6315edcd99b1..04d96fe6669d 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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 ListBillingAccountsResponseOrBuilder extends +public interface ListBillingAccountsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListBillingAccountsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of billing accounts.
    * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - java.util.List - getBillingAccountsList(); + java.util.List getBillingAccountsList(); /** + * + * *
    * A list of billing accounts.
    * 
@@ -25,6 +44,8 @@ public interface ListBillingAccountsResponseOrBuilder extends */ com.google.cloud.billing.v1.BillingAccount getBillingAccounts(int index); /** + * + * *
    * A list of billing accounts.
    * 
@@ -33,25 +54,30 @@ public interface ListBillingAccountsResponseOrBuilder extends */ int getBillingAccountsCount(); /** + * + * *
    * A list of billing accounts.
    * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - java.util.List + java.util.List getBillingAccountsOrBuilderList(); /** + * + * *
    * A list of billing accounts.
    * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrBuilder( - int index); + com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrBuilder(int index); /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -59,10 +85,13 @@ com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -70,8 +99,8 @@ com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java similarity index 67% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java index 99e9b7ccb929..65d5902f905a 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
  * Request message for `ListProjectBillingInfo`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListProjectBillingInfoRequest} */ -public final class ListProjectBillingInfoRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProjectBillingInfoRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListProjectBillingInfoRequest) ListProjectBillingInfoRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProjectBillingInfoRequest.newBuilder() to construct. private ListProjectBillingInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProjectBillingInfoRequest() { name_ = ""; pageToken_ = ""; @@ -26,35 +44,42 @@ private ListProjectBillingInfoRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProjectBillingInfoRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListProjectBillingInfoRequest.class, com.google.cloud.billing.v1.ListProjectBillingInfoRequest.Builder.class); + com.google.cloud.billing.v1.ListProjectBillingInfoRequest.class, + com.google.cloud.billing.v1.ListProjectBillingInfoRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the billing account associated with the
    * projects that you want to list. For example,
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -63,31 +88,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the billing account associated with the
    * projects that you want to list. For example,
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,12 +125,15 @@ public java.lang.String getName() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Requested page size. The maximum page size is 100; this is also the
    * default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,9 +142,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -122,6 +155,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -130,14 +164,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -145,16 +180,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -163,6 +197,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -174,8 +209,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -198,8 +232,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -212,19 +245,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListProjectBillingInfoRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListProjectBillingInfoRequest other = (com.google.cloud.billing.v1.ListProjectBillingInfoRequest) obj; + com.google.cloud.billing.v1.ListProjectBillingInfoRequest other = + (com.google.cloud.billing.v1.ListProjectBillingInfoRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -248,131 +279,136 @@ public int hashCode() { } public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.ListProjectBillingInfoRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.v1.ListProjectBillingInfoRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `ListProjectBillingInfo`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListProjectBillingInfoRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListProjectBillingInfoRequest) com.google.cloud.billing.v1.ListProjectBillingInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListProjectBillingInfoRequest.class, com.google.cloud.billing.v1.ListProjectBillingInfoRequest.Builder.class); + com.google.cloud.billing.v1.ListProjectBillingInfoRequest.class, + com.google.cloud.billing.v1.ListProjectBillingInfoRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.ListProjectBillingInfoRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor; } @java.lang.Override @@ -405,8 +441,11 @@ public com.google.cloud.billing.v1.ListProjectBillingInfoRequest build() { @java.lang.Override public com.google.cloud.billing.v1.ListProjectBillingInfoRequest buildPartial() { - com.google.cloud.billing.v1.ListProjectBillingInfoRequest result = new com.google.cloud.billing.v1.ListProjectBillingInfoRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.v1.ListProjectBillingInfoRequest result = + new com.google.cloud.billing.v1.ListProjectBillingInfoRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -428,38 +467,39 @@ private void buildPartial0(com.google.cloud.billing.v1.ListProjectBillingInfoReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListProjectBillingInfoRequest) { - return mergeFrom((com.google.cloud.billing.v1.ListProjectBillingInfoRequest)other); + return mergeFrom((com.google.cloud.billing.v1.ListProjectBillingInfoRequest) other); } else { super.mergeFrom(other); return this; @@ -467,7 +507,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListProjectBillingInfoRequest other) { - if (other == com.google.cloud.billing.v1.ListProjectBillingInfoRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.ListProjectBillingInfoRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -507,27 +548,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -537,24 +582,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the billing account associated with the
      * projects that you want to list. For example,
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -563,22 +613,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the billing account associated with the
      * projects that you want to list. For example,
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -586,32 +639,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the billing account associated with the
      * projects that you want to list. For example,
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the billing account associated with the
      * projects that you want to list. For example,
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -621,19 +685,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the billing account associated with the
      * projects that you want to list. For example,
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -641,14 +711,17 @@ public Builder setNameBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Requested page size. The maximum page size is 100; this is also the
      * default.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -656,12 +729,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. The maximum page size is 100; this is also the
      * default.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -673,12 +749,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Requested page size. The maximum page size is 100; this is also the
      * default.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -690,6 +769,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -697,13 +778,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -712,6 +793,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -719,15 +802,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -735,6 +817,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -742,18 +826,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -761,6 +849,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -770,6 +859,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -777,21 +868,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -801,12 +894,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListProjectBillingInfoRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListProjectBillingInfoRequest) private static final com.google.cloud.billing.v1.ListProjectBillingInfoRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListProjectBillingInfoRequest(); } @@ -815,27 +908,27 @@ public static com.google.cloud.billing.v1.ListProjectBillingInfoRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProjectBillingInfoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProjectBillingInfoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -850,6 +943,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.billing.v1.ListProjectBillingInfoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java index 381aa730d919..d9c193277cdf 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java @@ -1,48 +1,78 @@ +/* + * 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 ListProjectBillingInfoRequestOrBuilder extends +public interface ListProjectBillingInfoRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListProjectBillingInfoRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the billing account associated with the
    * projects that you want to list. For example,
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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 associated with the
    * projects that you want to list. For example,
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Requested page size. The maximum page size is 100; this is also the
    * default.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -50,10 +80,13 @@ public interface ListProjectBillingInfoRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -61,8 +94,8 @@ public interface ListProjectBillingInfoRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java similarity index 74% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java index 5890bc05a811..2197fb89227c 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java @@ -1,24 +1,43 @@ +/* + * 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; /** + * + * *
  * Request message for `ListProjectBillingInfoResponse`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListProjectBillingInfoResponse} */ -public final class ListProjectBillingInfoResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListProjectBillingInfoResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListProjectBillingInfoResponse) ListProjectBillingInfoResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListProjectBillingInfoResponse.newBuilder() to construct. - private ListProjectBillingInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListProjectBillingInfoResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListProjectBillingInfoResponse() { projectBillingInfo_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +45,32 @@ private ListProjectBillingInfoResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListProjectBillingInfoResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListProjectBillingInfoResponse.class, com.google.cloud.billing.v1.ListProjectBillingInfoResponse.Builder.class); + com.google.cloud.billing.v1.ListProjectBillingInfoResponse.class, + com.google.cloud.billing.v1.ListProjectBillingInfoResponse.Builder.class); } public static final int PROJECT_BILLING_INFO_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List projectBillingInfo_; /** + * + * *
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -56,10 +79,13 @@ protected java.lang.Object newInstance(
    * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
    */
   @java.lang.Override
-  public java.util.List getProjectBillingInfoList() {
+  public java.util.List
+      getProjectBillingInfoList() {
     return projectBillingInfo_;
   }
   /**
+   *
+   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -68,11 +94,13 @@ public java.util.List getProject
    * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getProjectBillingInfoOrBuilderList() {
     return projectBillingInfo_;
   }
   /**
+   *
+   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -85,6 +113,8 @@ public int getProjectBillingInfoCount() {
     return projectBillingInfo_.size();
   }
   /**
+   *
+   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -97,6 +127,8 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(int
     return projectBillingInfo_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -111,9 +143,12 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
+   *
+   *
    * 
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -121,6 +156,7 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,14 +165,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -144,16 +181,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -162,6 +198,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < projectBillingInfo_.size(); i++) { output.writeMessage(1, projectBillingInfo_.get(i)); } @@ -191,8 +227,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < projectBillingInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, projectBillingInfo_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, projectBillingInfo_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -205,17 +241,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListProjectBillingInfoResponse)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListProjectBillingInfoResponse other = (com.google.cloud.billing.v1.ListProjectBillingInfoResponse) obj; + com.google.cloud.billing.v1.ListProjectBillingInfoResponse other = + (com.google.cloud.billing.v1.ListProjectBillingInfoResponse) obj; - if (!getProjectBillingInfoList() - .equals(other.getProjectBillingInfoList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getProjectBillingInfoList().equals(other.getProjectBillingInfoList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,131 +274,136 @@ public int hashCode() { } public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.ListProjectBillingInfoResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.v1.ListProjectBillingInfoResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `ListProjectBillingInfoResponse`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListProjectBillingInfoResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListProjectBillingInfoResponse) com.google.cloud.billing.v1.ListProjectBillingInfoResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListProjectBillingInfoResponse.class, com.google.cloud.billing.v1.ListProjectBillingInfoResponse.Builder.class); + com.google.cloud.billing.v1.ListProjectBillingInfoResponse.class, + com.google.cloud.billing.v1.ListProjectBillingInfoResponse.Builder.class); } // Construct using com.google.cloud.billing.v1.ListProjectBillingInfoResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor; } @java.lang.Override @@ -401,14 +441,18 @@ public com.google.cloud.billing.v1.ListProjectBillingInfoResponse build() { @java.lang.Override public com.google.cloud.billing.v1.ListProjectBillingInfoResponse buildPartial() { - com.google.cloud.billing.v1.ListProjectBillingInfoResponse result = new com.google.cloud.billing.v1.ListProjectBillingInfoResponse(this); + com.google.cloud.billing.v1.ListProjectBillingInfoResponse result = + new com.google.cloud.billing.v1.ListProjectBillingInfoResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.billing.v1.ListProjectBillingInfoResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.billing.v1.ListProjectBillingInfoResponse result) { if (projectBillingInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { projectBillingInfo_ = java.util.Collections.unmodifiableList(projectBillingInfo_); @@ -431,38 +475,39 @@ private void buildPartial0(com.google.cloud.billing.v1.ListProjectBillingInfoRes public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListProjectBillingInfoResponse) { - return mergeFrom((com.google.cloud.billing.v1.ListProjectBillingInfoResponse)other); + return mergeFrom((com.google.cloud.billing.v1.ListProjectBillingInfoResponse) other); } else { super.mergeFrom(other); return this; @@ -470,7 +515,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListProjectBillingInfoResponse other) { - if (other == com.google.cloud.billing.v1.ListProjectBillingInfoResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.ListProjectBillingInfoResponse.getDefaultInstance()) + return this; if (projectBillingInfoBuilder_ == null) { if (!other.projectBillingInfo_.isEmpty()) { if (projectBillingInfo_.isEmpty()) { @@ -489,9 +535,10 @@ public Builder mergeFrom(com.google.cloud.billing.v1.ListProjectBillingInfoRespo projectBillingInfoBuilder_ = null; projectBillingInfo_ = other.projectBillingInfo_; bitField0_ = (bitField0_ & ~0x00000001); - projectBillingInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProjectBillingInfoFieldBuilder() : null; + projectBillingInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProjectBillingInfoFieldBuilder() + : null; } else { projectBillingInfoBuilder_.addAllMessages(other.projectBillingInfo_); } @@ -528,30 +575,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.billing.v1.ProjectBillingInfo m = - input.readMessage( - com.google.cloud.billing.v1.ProjectBillingInfo.parser(), - extensionRegistry); - if (projectBillingInfoBuilder_ == null) { - ensureProjectBillingInfoIsMutable(); - projectBillingInfo_.add(m); - } else { - projectBillingInfoBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.billing.v1.ProjectBillingInfo m = + input.readMessage( + com.google.cloud.billing.v1.ProjectBillingInfo.parser(), extensionRegistry); + if (projectBillingInfoBuilder_ == null) { + ensureProjectBillingInfoIsMutable(); + projectBillingInfo_.add(m); + } else { + projectBillingInfoBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -561,21 +610,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List projectBillingInfo_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureProjectBillingInfoIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - projectBillingInfo_ = new java.util.ArrayList(projectBillingInfo_); + projectBillingInfo_ = + new java.util.ArrayList( + projectBillingInfo_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> projectBillingInfoBuilder_; + com.google.cloud.billing.v1.ProjectBillingInfo, + com.google.cloud.billing.v1.ProjectBillingInfo.Builder, + com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> + projectBillingInfoBuilder_; /** + * + * *
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -583,7 +641,8 @@ private void ensureProjectBillingInfoIsMutable() {
      *
      * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
      */
-    public java.util.List getProjectBillingInfoList() {
+    public java.util.List
+        getProjectBillingInfoList() {
       if (projectBillingInfoBuilder_ == null) {
         return java.util.Collections.unmodifiableList(projectBillingInfo_);
       } else {
@@ -591,6 +650,8 @@ public java.util.List getProject
       }
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -606,6 +667,8 @@ public int getProjectBillingInfoCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -621,6 +684,8 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(int
       }
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -643,6 +708,8 @@ public Builder setProjectBillingInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -662,6 +729,8 @@ public Builder setProjectBillingInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -683,6 +752,8 @@ public Builder addProjectBillingInfo(com.google.cloud.billing.v1.ProjectBillingI
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -705,6 +776,8 @@ public Builder addProjectBillingInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -724,6 +797,8 @@ public Builder addProjectBillingInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -743,6 +818,8 @@ public Builder addProjectBillingInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -754,8 +831,7 @@ public Builder addAllProjectBillingInfo(
         java.lang.Iterable values) {
       if (projectBillingInfoBuilder_ == null) {
         ensureProjectBillingInfoIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, projectBillingInfo_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectBillingInfo_);
         onChanged();
       } else {
         projectBillingInfoBuilder_.addAllMessages(values);
@@ -763,6 +839,8 @@ public Builder addAllProjectBillingInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -781,6 +859,8 @@ public Builder clearProjectBillingInfo() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -799,6 +879,8 @@ public Builder removeProjectBillingInfo(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -811,6 +893,8 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder getProjectBillingI
       return getProjectBillingInfoFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -821,11 +905,14 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder getProjectBillingI
     public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder(
         int index) {
       if (projectBillingInfoBuilder_ == null) {
-        return projectBillingInfo_.get(index);  } else {
+        return projectBillingInfo_.get(index);
+      } else {
         return projectBillingInfoBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -833,8 +920,8 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
      *
      * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
      */
-    public java.util.List 
-         getProjectBillingInfoOrBuilderList() {
+    public java.util.List
+        getProjectBillingInfoOrBuilderList() {
       if (projectBillingInfoBuilder_ != null) {
         return projectBillingInfoBuilder_.getMessageOrBuilderList();
       } else {
@@ -842,6 +929,8 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
       }
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -850,10 +939,12 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
      * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
      */
     public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingInfoBuilder() {
-      return getProjectBillingInfoFieldBuilder().addBuilder(
-          com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance());
+      return getProjectBillingInfoFieldBuilder()
+          .addBuilder(com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -863,10 +954,12 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingI
      */
     public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingInfoBuilder(
         int index) {
-      return getProjectBillingInfoFieldBuilder().addBuilder(
-          index, com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance());
+      return getProjectBillingInfoFieldBuilder()
+          .addBuilder(index, com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -874,16 +967,22 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingI
      *
      * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
      */
-    public java.util.List 
-         getProjectBillingInfoBuilderList() {
+    public java.util.List
+        getProjectBillingInfoBuilderList() {
       return getProjectBillingInfoFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> 
+            com.google.cloud.billing.v1.ProjectBillingInfo,
+            com.google.cloud.billing.v1.ProjectBillingInfo.Builder,
+            com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>
         getProjectBillingInfoFieldBuilder() {
       if (projectBillingInfoBuilder_ == null) {
-        projectBillingInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>(
+        projectBillingInfoBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.billing.v1.ProjectBillingInfo,
+                com.google.cloud.billing.v1.ProjectBillingInfo.Builder,
+                com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>(
                 projectBillingInfo_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -895,6 +994,8 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingI
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -902,13 +1003,13 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingI
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -917,6 +1018,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -924,15 +1027,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -940,6 +1042,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -947,18 +1051,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -966,6 +1074,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -975,6 +1084,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -982,21 +1093,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1006,12 +1119,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListProjectBillingInfoResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListProjectBillingInfoResponse) private static final com.google.cloud.billing.v1.ListProjectBillingInfoResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListProjectBillingInfoResponse(); } @@ -1020,27 +1133,27 @@ public static com.google.cloud.billing.v1.ListProjectBillingInfoResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProjectBillingInfoResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProjectBillingInfoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1055,6 +1168,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.billing.v1.ListProjectBillingInfoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java index 76816d2b55dd..3c1ec5c7b538 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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 ListProjectBillingInfoResponseOrBuilder extends +public interface ListProjectBillingInfoResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListProjectBillingInfoResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -15,9 +33,10 @@ public interface ListProjectBillingInfoResponseOrBuilder extends
    *
    * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
    */
-  java.util.List 
-      getProjectBillingInfoList();
+  java.util.List getProjectBillingInfoList();
   /**
+   *
+   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -27,6 +46,8 @@ public interface ListProjectBillingInfoResponseOrBuilder extends
    */
   com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(int index);
   /**
+   *
+   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -36,6 +57,8 @@ public interface ListProjectBillingInfoResponseOrBuilder extends
    */
   int getProjectBillingInfoCount();
   /**
+   *
+   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -43,9 +66,11 @@ public interface ListProjectBillingInfoResponseOrBuilder extends
    *
    * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
    */
-  java.util.List 
+  java.util.List
       getProjectBillingInfoOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -53,10 +78,11 @@ public interface ListProjectBillingInfoResponseOrBuilder extends
    *
    * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
    */
-  com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder(
-      int index);
+  com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -64,10 +90,13 @@ com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrB
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -75,8 +104,8 @@ com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrB
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java similarity index 68% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java index 1539edc1e846..8b8c2e613d80 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java @@ -1,56 +1,78 @@ +/* + * 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; /** + * + * *
  * Request message for `ListServices`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListServicesRequest} */ -public final class ListServicesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListServicesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListServicesRequest) ListServicesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListServicesRequest.newBuilder() to construct. private ListServicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListServicesRequest() { pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListServicesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListServicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListServicesRequest.class, com.google.cloud.billing.v1.ListServicesRequest.Builder.class); + com.google.cloud.billing.v1.ListServicesRequest.class, + com.google.cloud.billing.v1.ListServicesRequest.Builder.class); } public static final int PAGE_SIZE_FIELD_NUMBER = 1; private int pageSize_ = 0; /** + * + * *
    * Requested page size. Defaults to 5000.
    * 
* * int32 page_size = 1; + * * @return The pageSize. */ @java.lang.Override @@ -59,9 +81,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListServices`
@@ -69,6 +94,7 @@ public int getPageSize() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -77,14 +103,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListServices`
@@ -92,16 +119,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -110,6 +136,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +148,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -139,8 +165,7 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); @@ -153,17 +178,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListServicesRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListServicesRequest other = (com.google.cloud.billing.v1.ListServicesRequest) obj; + com.google.cloud.billing.v1.ListServicesRequest other = + (com.google.cloud.billing.v1.ListServicesRequest) obj; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,132 +208,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.ListServicesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListServicesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListServicesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListServicesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListServicesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListServicesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListServicesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.ListServicesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `ListServices`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListServicesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListServicesRequest) com.google.cloud.billing.v1.ListServicesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListServicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListServicesRequest.class, com.google.cloud.billing.v1.ListServicesRequest.Builder.class); + com.google.cloud.billing.v1.ListServicesRequest.class, + com.google.cloud.billing.v1.ListServicesRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.ListServicesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListServicesRequest_descriptor; } @java.lang.Override @@ -341,8 +369,11 @@ public com.google.cloud.billing.v1.ListServicesRequest build() { @java.lang.Override public com.google.cloud.billing.v1.ListServicesRequest buildPartial() { - com.google.cloud.billing.v1.ListServicesRequest result = new com.google.cloud.billing.v1.ListServicesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.v1.ListServicesRequest result = + new com.google.cloud.billing.v1.ListServicesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -361,38 +392,39 @@ private void buildPartial0(com.google.cloud.billing.v1.ListServicesRequest resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListServicesRequest) { - return mergeFrom((com.google.cloud.billing.v1.ListServicesRequest)other); + return mergeFrom((com.google.cloud.billing.v1.ListServicesRequest) other); } else { super.mergeFrom(other); return this; @@ -400,7 +432,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListServicesRequest other) { - if (other == com.google.cloud.billing.v1.ListServicesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.ListServicesRequest.getDefaultInstance()) + return this; if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } @@ -435,22 +468,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,15 +496,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 1; + * * @return The pageSize. */ @java.lang.Override @@ -476,11 +516,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 1; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -492,11 +535,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 1; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -508,6 +554,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListServices`
@@ -515,13 +563,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -530,6 +578,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListServices`
@@ -537,15 +587,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -553,6 +602,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListServices`
@@ -560,18 +611,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListServices`
@@ -579,6 +634,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -588,6 +644,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListServices`
@@ -595,21 +653,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -619,12 +679,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListServicesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListServicesRequest) private static final com.google.cloud.billing.v1.ListServicesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListServicesRequest(); } @@ -633,27 +693,27 @@ public static com.google.cloud.billing.v1.ListServicesRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServicesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServicesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -668,6 +728,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListServicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java index 021861745f5d..53d723a434cc 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java @@ -1,23 +1,44 @@ +/* + * 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 interface ListServicesRequestOrBuilder extends +public interface ListServicesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListServicesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Requested page size. Defaults to 5000.
    * 
* * int32 page_size = 1; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListServices`
@@ -25,10 +46,13 @@ public interface ListServicesRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListServices`
@@ -36,8 +60,8 @@ public interface ListServicesRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java similarity index 71% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java index c2d7c1a2905e..c9bc8e9674ea 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
  * Response message for `ListServices`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListServicesResponse} */ -public final class ListServicesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListServicesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListServicesResponse) ListServicesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListServicesResponse.newBuilder() to construct. private ListServicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListServicesResponse() { services_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListServicesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListServicesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListServicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListServicesResponse.class, com.google.cloud.billing.v1.ListServicesResponse.Builder.class); + com.google.cloud.billing.v1.ListServicesResponse.class, + com.google.cloud.billing.v1.ListServicesResponse.Builder.class); } public static final int SERVICES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List services_; /** + * + * *
    * A list of services.
    * 
@@ -59,6 +81,8 @@ public java.util.List getServicesList() { return services_; } /** + * + * *
    * A list of services.
    * 
@@ -66,11 +90,13 @@ public java.util.List getServicesList() { * repeated .google.cloud.billing.v1.Service services = 1; */ @java.lang.Override - public java.util.List + public java.util.List getServicesOrBuilderList() { return services_; } /** + * + * *
    * A list of services.
    * 
@@ -82,6 +108,8 @@ public int getServicesCount() { return services_.size(); } /** + * + * *
    * A list of services.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.billing.v1.Service getServices(int index) { return services_.get(index); } /** + * + * *
    * A list of services.
    * 
@@ -100,15 +130,17 @@ public com.google.cloud.billing.v1.Service getServices(int index) { * repeated .google.cloud.billing.v1.Service services = 1; */ @java.lang.Override - public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder( - int index) { + public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int index) { return services_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListServices` again with the `page_token` field set to this
@@ -116,6 +148,7 @@ public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +157,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListServices` again with the `page_token` field set to this
@@ -139,16 +173,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < services_.size(); i++) { output.writeMessage(1, services_.get(i)); } @@ -186,8 +219,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < services_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, services_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, services_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -200,17 +232,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListServicesResponse)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListServicesResponse other = (com.google.cloud.billing.v1.ListServicesResponse) obj; + com.google.cloud.billing.v1.ListServicesResponse other = + (com.google.cloud.billing.v1.ListServicesResponse) obj; - if (!getServicesList() - .equals(other.getServicesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getServicesList().equals(other.getServicesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,132 +264,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.ListServicesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListServicesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.ListServicesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListServicesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListServicesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListServicesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListServicesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.ListServicesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for `ListServices`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListServicesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListServicesResponse) com.google.cloud.billing.v1.ListServicesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListServicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListServicesResponse.class, com.google.cloud.billing.v1.ListServicesResponse.Builder.class); + com.google.cloud.billing.v1.ListServicesResponse.class, + com.google.cloud.billing.v1.ListServicesResponse.Builder.class); } // Construct using com.google.cloud.billing.v1.ListServicesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListServicesResponse_descriptor; } @java.lang.Override @@ -396,14 +431,18 @@ public com.google.cloud.billing.v1.ListServicesResponse build() { @java.lang.Override public com.google.cloud.billing.v1.ListServicesResponse buildPartial() { - com.google.cloud.billing.v1.ListServicesResponse result = new com.google.cloud.billing.v1.ListServicesResponse(this); + com.google.cloud.billing.v1.ListServicesResponse result = + new com.google.cloud.billing.v1.ListServicesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.billing.v1.ListServicesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.billing.v1.ListServicesResponse result) { if (servicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { services_ = java.util.Collections.unmodifiableList(services_); @@ -426,38 +465,39 @@ private void buildPartial0(com.google.cloud.billing.v1.ListServicesResponse resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListServicesResponse) { - return mergeFrom((com.google.cloud.billing.v1.ListServicesResponse)other); + return mergeFrom((com.google.cloud.billing.v1.ListServicesResponse) other); } else { super.mergeFrom(other); return this; @@ -465,7 +505,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListServicesResponse other) { - if (other == com.google.cloud.billing.v1.ListServicesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.ListServicesResponse.getDefaultInstance()) + return this; if (servicesBuilder_ == null) { if (!other.services_.isEmpty()) { if (services_.isEmpty()) { @@ -484,9 +525,10 @@ public Builder mergeFrom(com.google.cloud.billing.v1.ListServicesResponse other) servicesBuilder_ = null; services_ = other.services_; bitField0_ = (bitField0_ & ~0x00000001); - servicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServicesFieldBuilder() : null; + servicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getServicesFieldBuilder() + : null; } else { servicesBuilder_.addAllMessages(other.services_); } @@ -523,30 +565,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.billing.v1.Service m = - input.readMessage( - com.google.cloud.billing.v1.Service.parser(), - extensionRegistry); - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.add(m); - } else { - servicesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.billing.v1.Service m = + input.readMessage( + com.google.cloud.billing.v1.Service.parser(), extensionRegistry); + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + services_.add(m); + } else { + servicesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,21 +600,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List services_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureServicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { services_ = new java.util.ArrayList(services_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Service, com.google.cloud.billing.v1.Service.Builder, com.google.cloud.billing.v1.ServiceOrBuilder> servicesBuilder_; + com.google.cloud.billing.v1.Service, + com.google.cloud.billing.v1.Service.Builder, + com.google.cloud.billing.v1.ServiceOrBuilder> + servicesBuilder_; /** + * + * *
      * A list of services.
      * 
@@ -585,6 +636,8 @@ public java.util.List getServicesList() { } } /** + * + * *
      * A list of services.
      * 
@@ -599,6 +652,8 @@ public int getServicesCount() { } } /** + * + * *
      * A list of services.
      * 
@@ -613,14 +668,15 @@ public com.google.cloud.billing.v1.Service getServices(int index) { } } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public Builder setServices( - int index, com.google.cloud.billing.v1.Service value) { + public Builder setServices(int index, com.google.cloud.billing.v1.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -634,6 +690,8 @@ public Builder setServices( return this; } /** + * + * *
      * A list of services.
      * 
@@ -652,6 +710,8 @@ public Builder setServices( return this; } /** + * + * *
      * A list of services.
      * 
@@ -672,14 +732,15 @@ public Builder addServices(com.google.cloud.billing.v1.Service value) { return this; } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public Builder addServices( - int index, com.google.cloud.billing.v1.Service value) { + public Builder addServices(int index, com.google.cloud.billing.v1.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,14 +754,15 @@ public Builder addServices( return this; } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public Builder addServices( - com.google.cloud.billing.v1.Service.Builder builderForValue) { + public Builder addServices(com.google.cloud.billing.v1.Service.Builder builderForValue) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); services_.add(builderForValue.build()); @@ -711,6 +773,8 @@ public Builder addServices( return this; } /** + * + * *
      * A list of services.
      * 
@@ -729,6 +793,8 @@ public Builder addServices( return this; } /** + * + * *
      * A list of services.
      * 
@@ -739,8 +805,7 @@ public Builder addAllServices( java.lang.Iterable values) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); onChanged(); } else { servicesBuilder_.addAllMessages(values); @@ -748,6 +813,8 @@ public Builder addAllServices( return this; } /** + * + * *
      * A list of services.
      * 
@@ -765,6 +832,8 @@ public Builder clearServices() { return this; } /** + * + * *
      * A list of services.
      * 
@@ -782,39 +851,44 @@ public Builder removeServices(int index) { return this; } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public com.google.cloud.billing.v1.Service.Builder getServicesBuilder( - int index) { + public com.google.cloud.billing.v1.Service.Builder getServicesBuilder(int index) { return getServicesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder( - int index) { + public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int index) { if (servicesBuilder_ == null) { - return services_.get(index); } else { + return services_.get(index); + } else { return servicesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public java.util.List - getServicesOrBuilderList() { + public java.util.List + getServicesOrBuilderList() { if (servicesBuilder_ != null) { return servicesBuilder_.getMessageOrBuilderList(); } else { @@ -822,6 +896,8 @@ public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder( } } /** + * + * *
      * A list of services.
      * 
@@ -829,42 +905,47 @@ public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder( * repeated .google.cloud.billing.v1.Service services = 1; */ public com.google.cloud.billing.v1.Service.Builder addServicesBuilder() { - return getServicesFieldBuilder().addBuilder( - com.google.cloud.billing.v1.Service.getDefaultInstance()); + return getServicesFieldBuilder() + .addBuilder(com.google.cloud.billing.v1.Service.getDefaultInstance()); } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public com.google.cloud.billing.v1.Service.Builder addServicesBuilder( - int index) { - return getServicesFieldBuilder().addBuilder( - index, com.google.cloud.billing.v1.Service.getDefaultInstance()); + public com.google.cloud.billing.v1.Service.Builder addServicesBuilder(int index) { + return getServicesFieldBuilder() + .addBuilder(index, com.google.cloud.billing.v1.Service.getDefaultInstance()); } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public java.util.List - getServicesBuilderList() { + public java.util.List getServicesBuilderList() { return getServicesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Service, com.google.cloud.billing.v1.Service.Builder, com.google.cloud.billing.v1.ServiceOrBuilder> + com.google.cloud.billing.v1.Service, + com.google.cloud.billing.v1.Service.Builder, + com.google.cloud.billing.v1.ServiceOrBuilder> getServicesFieldBuilder() { if (servicesBuilder_ == null) { - servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Service, com.google.cloud.billing.v1.Service.Builder, com.google.cloud.billing.v1.ServiceOrBuilder>( - services_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + servicesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.v1.Service, + com.google.cloud.billing.v1.Service.Builder, + com.google.cloud.billing.v1.ServiceOrBuilder>( + services_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); services_ = null; } return servicesBuilder_; @@ -872,6 +953,8 @@ public com.google.cloud.billing.v1.Service.Builder addServicesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListServices` again with the `page_token` field set to this
@@ -879,13 +962,13 @@ public com.google.cloud.billing.v1.Service.Builder addServicesBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -894,6 +977,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListServices` again with the `page_token` field set to this
@@ -901,15 +986,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +1001,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListServices` again with the `page_token` field set to this
@@ -924,18 +1010,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListServices` again with the `page_token` field set to this
@@ -943,6 +1033,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1043,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListServices` again with the `page_token` field set to this
@@ -959,21 +1052,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1078,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListServicesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListServicesResponse) private static final com.google.cloud.billing.v1.ListServicesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListServicesResponse(); } @@ -997,27 +1092,27 @@ public static com.google.cloud.billing.v1.ListServicesResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServicesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,6 +1127,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListServicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java index 72fed9545291..cb23fc10ebdd 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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 interface ListServicesResponseOrBuilder extends +public interface ListServicesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListServicesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of services.
    * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - java.util.List - getServicesList(); + java.util.List getServicesList(); /** + * + * *
    * A list of services.
    * 
@@ -25,6 +44,8 @@ public interface ListServicesResponseOrBuilder extends */ com.google.cloud.billing.v1.Service getServices(int index); /** + * + * *
    * A list of services.
    * 
@@ -33,25 +54,29 @@ public interface ListServicesResponseOrBuilder extends */ int getServicesCount(); /** + * + * *
    * A list of services.
    * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - java.util.List - getServicesOrBuilderList(); + java.util.List getServicesOrBuilderList(); /** + * + * *
    * A list of services.
    * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder( - int index); + com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int index); /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListServices` again with the `page_token` field set to this
@@ -59,10 +84,13 @@ com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListServices` again with the `page_token` field set to this
@@ -70,8 +98,8 @@ com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java similarity index 75% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java index 24ff208c6352..8412391181da 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
  * Request message for `ListSkus`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListSkusRequest} */ -public final class ListSkusRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSkusRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListSkusRequest) ListSkusRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSkusRequest.newBuilder() to construct. private ListSkusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSkusRequest() { parent_ = ""; currencyCode_ = ""; @@ -27,34 +45,41 @@ private ListSkusRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSkusRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListSkusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListSkusRequest.class, com.google.cloud.billing.v1.ListSkusRequest.Builder.class); + com.google.cloud.billing.v1.ListSkusRequest.class, + com.google.cloud.billing.v1.ListSkusRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the service.
    * Example: "services/DA34-426B-A397"
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -63,30 +88,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the service.
    * Example: "services/DA34-426B-A397"
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -97,6 +124,8 @@ public java.lang.String getParent() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -107,6 +136,7 @@ public java.lang.String getParent() {
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -114,6 +144,8 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -124,6 +156,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ @java.lang.Override @@ -131,6 +164,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -150,6 +185,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
   public static final int END_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Timestamp endTime_;
   /**
+   *
+   *
    * 
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -160,6 +197,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -167,6 +205,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -177,6 +217,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ @java.lang.Override @@ -184,6 +225,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -201,9 +244,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   }
 
   public static final int CURRENCY_CODE_FIELD_NUMBER = 4;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object currencyCode_ = "";
   /**
+   *
+   *
    * 
    * The ISO 4217 currency code for the pricing info in the response proto.
    * Will use the conversion rate as of start_time.
@@ -211,6 +257,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * string currency_code = 4; + * * @return The currencyCode. */ @java.lang.Override @@ -219,14 +266,15 @@ public java.lang.String getCurrencyCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** + * + * *
    * The ISO 4217 currency code for the pricing info in the response proto.
    * Will use the conversion rate as of start_time.
@@ -234,16 +282,15 @@ public java.lang.String getCurrencyCode() {
    * 
* * string currency_code = 4; + * * @return The bytes for currencyCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { + public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -254,11 +301,14 @@ public java.lang.String getCurrencyCode() { public static final int PAGE_SIZE_FIELD_NUMBER = 5; private int pageSize_ = 0; /** + * + * *
    * Requested page size. Defaults to 5000.
    * 
* * int32 page_size = 5; + * * @return The pageSize. */ @java.lang.Override @@ -267,9 +317,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListSkus`
@@ -277,6 +330,7 @@ public int getPageSize() {
    * 
* * string page_token = 6; + * * @return The pageToken. */ @java.lang.Override @@ -285,14 +339,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListSkus`
@@ -300,16 +355,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -318,6 +372,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -329,8 +384,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -362,19 +416,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currencyCode_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -387,31 +438,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListSkusRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListSkusRequest other = (com.google.cloud.billing.v1.ListSkusRequest) obj; + com.google.cloud.billing.v1.ListSkusRequest other = + (com.google.cloud.billing.v1.ListSkusRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getCurrencyCode() - .equals(other.getCurrencyCode())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -444,132 +490,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.ListSkusRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListSkusRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListSkusRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListSkusRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListSkusRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListSkusRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListSkusRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.ListSkusRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `ListSkus`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListSkusRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListSkusRequest) com.google.cloud.billing.v1.ListSkusRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListSkusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListSkusRequest.class, com.google.cloud.billing.v1.ListSkusRequest.Builder.class); + com.google.cloud.billing.v1.ListSkusRequest.class, + com.google.cloud.billing.v1.ListSkusRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.ListSkusRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -592,9 +642,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListSkusRequest_descriptor; } @java.lang.Override @@ -613,8 +663,11 @@ public com.google.cloud.billing.v1.ListSkusRequest build() { @java.lang.Override public com.google.cloud.billing.v1.ListSkusRequest buildPartial() { - com.google.cloud.billing.v1.ListSkusRequest result = new com.google.cloud.billing.v1.ListSkusRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.v1.ListSkusRequest result = + new com.google.cloud.billing.v1.ListSkusRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -625,14 +678,10 @@ private void buildPartial0(com.google.cloud.billing.v1.ListSkusRequest result) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.currencyCode_ = currencyCode_; @@ -649,38 +698,39 @@ private void buildPartial0(com.google.cloud.billing.v1.ListSkusRequest result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListSkusRequest) { - return mergeFrom((com.google.cloud.billing.v1.ListSkusRequest)other); + return mergeFrom((com.google.cloud.billing.v1.ListSkusRequest) other); } else { super.mergeFrom(other); return this; @@ -739,46 +789,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - currencyCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + currencyCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -788,23 +841,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the service.
      * Example: "services/DA34-426B-A397"
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -813,21 +871,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the service.
      * Example: "services/DA34-426B-A397"
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -835,30 +896,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the service.
      * Example: "services/DA34-426B-A397"
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the service.
      * Example: "services/DA34-426B-A397"
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -868,18 +940,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the service.
      * Example: "services/DA34-426B-A397"
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -889,8 +967,13 @@ public Builder setParentBytes( private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -901,12 +984,15 @@ public Builder setParentBytes(
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -917,6 +1003,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -927,6 +1014,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -952,6 +1041,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -963,8 +1054,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp start_time = 2;
      */
-    public Builder setStartTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
       } else {
@@ -975,6 +1065,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -988,9 +1080,9 @@ public Builder setStartTime(
      */
     public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       if (startTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          startTime_ != null &&
-          startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && startTime_ != null
+            && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getStartTimeBuilder().mergeFrom(value);
         } else {
           startTime_ = value;
@@ -1003,6 +1095,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1025,6 +1119,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1042,6 +1138,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1057,11 +1155,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1074,14 +1173,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Timestamp start_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getStartTime(),
-                getParentForChildren(),
-                isClean());
+        startTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getStartTime(), getParentForChildren(), isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
@@ -1089,8 +1191,13 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp endTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        endTimeBuilder_;
     /**
+     *
+     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1101,12 +1208,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1117,6 +1227,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1127,6 +1238,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1152,6 +1265,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1163,8 +1278,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
       } else {
@@ -1175,6 +1289,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1188,9 +1304,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1203,6 +1319,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1225,6 +1343,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1242,6 +1362,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1257,11 +1379,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1274,14 +1397,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
@@ -1289,6 +1415,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
 
     private java.lang.Object currencyCode_ = "";
     /**
+     *
+     *
      * 
      * The ISO 4217 currency code for the pricing info in the response proto.
      * Will use the conversion rate as of start_time.
@@ -1296,13 +1424,13 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * 
* * string currency_code = 4; + * * @return The currencyCode. */ public java.lang.String getCurrencyCode() { java.lang.Object ref = currencyCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; @@ -1311,6 +1439,8 @@ public java.lang.String getCurrencyCode() { } } /** + * + * *
      * The ISO 4217 currency code for the pricing info in the response proto.
      * Will use the conversion rate as of start_time.
@@ -1318,15 +1448,14 @@ public java.lang.String getCurrencyCode() {
      * 
* * string currency_code = 4; + * * @return The bytes for currencyCode. */ - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { + public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -1334,6 +1463,8 @@ public java.lang.String getCurrencyCode() { } } /** + * + * *
      * The ISO 4217 currency code for the pricing info in the response proto.
      * Will use the conversion rate as of start_time.
@@ -1341,18 +1472,22 @@ public java.lang.String getCurrencyCode() {
      * 
* * string currency_code = 4; + * * @param value The currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCurrencyCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } currencyCode_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The ISO 4217 currency code for the pricing info in the response proto.
      * Will use the conversion rate as of start_time.
@@ -1360,6 +1495,7 @@ public Builder setCurrencyCode(
      * 
* * string currency_code = 4; + * * @return This builder for chaining. */ public Builder clearCurrencyCode() { @@ -1369,6 +1505,8 @@ public Builder clearCurrencyCode() { return this; } /** + * + * *
      * The ISO 4217 currency code for the pricing info in the response proto.
      * Will use the conversion rate as of start_time.
@@ -1376,12 +1514,14 @@ public Builder clearCurrencyCode() {
      * 
* * string currency_code = 4; + * * @param value The bytes for currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); currencyCode_ = value; bitField0_ |= 0x00000008; @@ -1389,13 +1529,16 @@ public Builder setCurrencyCodeBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 5; + * * @return The pageSize. */ @java.lang.Override @@ -1403,11 +1546,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 5; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1419,11 +1565,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 5; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1435,6 +1584,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListSkus`
@@ -1442,13 +1593,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 6; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1457,6 +1608,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListSkus`
@@ -1464,15 +1617,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1480,6 +1632,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListSkus`
@@ -1487,18 +1641,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListSkus`
@@ -1506,6 +1664,7 @@ public Builder setPageToken(
      * 
* * string page_token = 6; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1515,6 +1674,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListSkus`
@@ -1522,21 +1683,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 6; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1546,12 +1709,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListSkusRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListSkusRequest) private static final com.google.cloud.billing.v1.ListSkusRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListSkusRequest(); } @@ -1560,27 +1723,27 @@ public static com.google.cloud.billing.v1.ListSkusRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSkusRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSkusRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1595,6 +1758,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListSkusRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java index e9fffd88b5a7..c166f8a50edd 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * 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 interface ListSkusRequestOrBuilder extends +public interface ListSkusRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListSkusRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the service.
    * Example: "services/DA34-426B-A397"
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The name of the service.
    * Example: "services/DA34-426B-A397"
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -40,10 +67,13 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -54,10 +84,13 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -72,6 +105,8 @@ public interface ListSkusRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -82,10 +117,13 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -96,10 +134,13 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -114,6 +155,8 @@ public interface ListSkusRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The ISO 4217 currency code for the pricing info in the response proto.
    * Will use the conversion rate as of start_time.
@@ -121,10 +164,13 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * string currency_code = 4; + * * @return The currencyCode. */ java.lang.String getCurrencyCode(); /** + * + * *
    * The ISO 4217 currency code for the pricing info in the response proto.
    * Will use the conversion rate as of start_time.
@@ -132,22 +178,27 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * string currency_code = 4; + * * @return The bytes for currencyCode. */ - com.google.protobuf.ByteString - getCurrencyCodeBytes(); + com.google.protobuf.ByteString getCurrencyCodeBytes(); /** + * + * *
    * Requested page size. Defaults to 5000.
    * 
* * int32 page_size = 5; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListSkus`
@@ -155,10 +206,13 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListSkus`
@@ -166,8 +220,8 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java similarity index 72% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java index 80c7b4f09c22..96ffb1a1fdc7 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
  * Response message for `ListSkus`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.ListSkusResponse} */ -public final class ListSkusResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSkusResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ListSkusResponse) ListSkusResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSkusResponse.newBuilder() to construct. private ListSkusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSkusResponse() { skus_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,28 +44,32 @@ private ListSkusResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSkusResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListSkusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListSkusResponse.class, com.google.cloud.billing.v1.ListSkusResponse.Builder.class); + com.google.cloud.billing.v1.ListSkusResponse.class, + com.google.cloud.billing.v1.ListSkusResponse.Builder.class); } public static final int SKUS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List skus_; /** + * + * *
    * The list of public SKUs of the given service.
    * 
@@ -59,6 +81,8 @@ public java.util.List getSkusList() { return skus_; } /** + * + * *
    * The list of public SKUs of the given service.
    * 
@@ -66,11 +90,12 @@ public java.util.List getSkusList() { * repeated .google.cloud.billing.v1.Sku skus = 1; */ @java.lang.Override - public java.util.List - getSkusOrBuilderList() { + public java.util.List getSkusOrBuilderList() { return skus_; } /** + * + * *
    * The list of public SKUs of the given service.
    * 
@@ -82,6 +107,8 @@ public int getSkusCount() { return skus_.size(); } /** + * + * *
    * The list of public SKUs of the given service.
    * 
@@ -93,6 +120,8 @@ public com.google.cloud.billing.v1.Sku getSkus(int index) { return skus_.get(index); } /** + * + * *
    * The list of public SKUs of the given service.
    * 
@@ -100,15 +129,17 @@ public com.google.cloud.billing.v1.Sku getSkus(int index) { * repeated .google.cloud.billing.v1.Sku skus = 1; */ @java.lang.Override - public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder( - int index) { + public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index) { return skus_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListSkus` again with the `page_token` field set to this
@@ -116,6 +147,7 @@ public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +156,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListSkus` again with the `page_token` field set to this
@@ -139,16 +172,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < skus_.size(); i++) { output.writeMessage(1, skus_.get(i)); } @@ -186,8 +218,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < skus_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, skus_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, skus_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -200,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListSkusResponse)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListSkusResponse other = (com.google.cloud.billing.v1.ListSkusResponse) obj; + com.google.cloud.billing.v1.ListSkusResponse other = + (com.google.cloud.billing.v1.ListSkusResponse) obj; - if (!getSkusList() - .equals(other.getSkusList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSkusList().equals(other.getSkusList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,132 +263,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.ListSkusResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListSkusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ListSkusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ListSkusResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ListSkusResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ListSkusResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ListSkusResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.ListSkusResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for `ListSkus`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.ListSkusResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ListSkusResponse) com.google.cloud.billing.v1.ListSkusResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusResponse_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListSkusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.ListSkusResponse.class, com.google.cloud.billing.v1.ListSkusResponse.Builder.class); + com.google.cloud.billing.v1.ListSkusResponse.class, + com.google.cloud.billing.v1.ListSkusResponse.Builder.class); } // Construct using com.google.cloud.billing.v1.ListSkusResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_ListSkusResponse_descriptor; } @java.lang.Override @@ -396,9 +430,12 @@ public com.google.cloud.billing.v1.ListSkusResponse build() { @java.lang.Override public com.google.cloud.billing.v1.ListSkusResponse buildPartial() { - com.google.cloud.billing.v1.ListSkusResponse result = new com.google.cloud.billing.v1.ListSkusResponse(this); + com.google.cloud.billing.v1.ListSkusResponse result = + new com.google.cloud.billing.v1.ListSkusResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -426,38 +463,39 @@ private void buildPartial0(com.google.cloud.billing.v1.ListSkusResponse result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.ListSkusResponse) { - return mergeFrom((com.google.cloud.billing.v1.ListSkusResponse)other); + return mergeFrom((com.google.cloud.billing.v1.ListSkusResponse) other); } else { super.mergeFrom(other); return this; @@ -484,9 +522,10 @@ public Builder mergeFrom(com.google.cloud.billing.v1.ListSkusResponse other) { skusBuilder_ = null; skus_ = other.skus_; bitField0_ = (bitField0_ & ~0x00000001); - skusBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSkusFieldBuilder() : null; + skusBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkusFieldBuilder() + : null; } else { skusBuilder_.addAllMessages(other.skus_); } @@ -523,30 +562,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.billing.v1.Sku m = - input.readMessage( - com.google.cloud.billing.v1.Sku.parser(), - extensionRegistry); - if (skusBuilder_ == null) { - ensureSkusIsMutable(); - skus_.add(m); - } else { - skusBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.billing.v1.Sku m = + input.readMessage(com.google.cloud.billing.v1.Sku.parser(), extensionRegistry); + if (skusBuilder_ == null) { + ensureSkusIsMutable(); + skus_.add(m); + } else { + skusBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,21 +596,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List skus_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSkusIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { skus_ = new java.util.ArrayList(skus_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Sku, com.google.cloud.billing.v1.Sku.Builder, com.google.cloud.billing.v1.SkuOrBuilder> skusBuilder_; + com.google.cloud.billing.v1.Sku, + com.google.cloud.billing.v1.Sku.Builder, + com.google.cloud.billing.v1.SkuOrBuilder> + skusBuilder_; /** + * + * *
      * The list of public SKUs of the given service.
      * 
@@ -585,6 +632,8 @@ public java.util.List getSkusList() { } } /** + * + * *
      * The list of public SKUs of the given service.
      * 
@@ -599,6 +648,8 @@ public int getSkusCount() { } } /** + * + * *
      * The list of public SKUs of the given service.
      * 
@@ -613,14 +664,15 @@ public com.google.cloud.billing.v1.Sku getSkus(int index) { } } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public Builder setSkus( - int index, com.google.cloud.billing.v1.Sku value) { + public Builder setSkus(int index, com.google.cloud.billing.v1.Sku value) { if (skusBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -634,14 +686,15 @@ public Builder setSkus( return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public Builder setSkus( - int index, com.google.cloud.billing.v1.Sku.Builder builderForValue) { + public Builder setSkus(int index, com.google.cloud.billing.v1.Sku.Builder builderForValue) { if (skusBuilder_ == null) { ensureSkusIsMutable(); skus_.set(index, builderForValue.build()); @@ -652,6 +705,8 @@ public Builder setSkus( return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
@@ -672,14 +727,15 @@ public Builder addSkus(com.google.cloud.billing.v1.Sku value) { return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public Builder addSkus( - int index, com.google.cloud.billing.v1.Sku value) { + public Builder addSkus(int index, com.google.cloud.billing.v1.Sku value) { if (skusBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,14 +749,15 @@ public Builder addSkus( return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public Builder addSkus( - com.google.cloud.billing.v1.Sku.Builder builderForValue) { + public Builder addSkus(com.google.cloud.billing.v1.Sku.Builder builderForValue) { if (skusBuilder_ == null) { ensureSkusIsMutable(); skus_.add(builderForValue.build()); @@ -711,14 +768,15 @@ public Builder addSkus( return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public Builder addSkus( - int index, com.google.cloud.billing.v1.Sku.Builder builderForValue) { + public Builder addSkus(int index, com.google.cloud.billing.v1.Sku.Builder builderForValue) { if (skusBuilder_ == null) { ensureSkusIsMutable(); skus_.add(index, builderForValue.build()); @@ -729,6 +787,8 @@ public Builder addSkus( return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
@@ -739,8 +799,7 @@ public Builder addAllSkus( java.lang.Iterable values) { if (skusBuilder_ == null) { ensureSkusIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, skus_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skus_); onChanged(); } else { skusBuilder_.addAllMessages(values); @@ -748,6 +807,8 @@ public Builder addAllSkus( return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
@@ -765,6 +826,8 @@ public Builder clearSkus() { return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
@@ -782,39 +845,44 @@ public Builder removeSkus(int index) { return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public com.google.cloud.billing.v1.Sku.Builder getSkusBuilder( - int index) { + public com.google.cloud.billing.v1.Sku.Builder getSkusBuilder(int index) { return getSkusFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder( - int index) { + public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index) { if (skusBuilder_ == null) { - return skus_.get(index); } else { + return skus_.get(index); + } else { return skusBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public java.util.List - getSkusOrBuilderList() { + public java.util.List + getSkusOrBuilderList() { if (skusBuilder_ != null) { return skusBuilder_.getMessageOrBuilderList(); } else { @@ -822,6 +890,8 @@ public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder( } } /** + * + * *
      * The list of public SKUs of the given service.
      * 
@@ -829,42 +899,46 @@ public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder( * repeated .google.cloud.billing.v1.Sku skus = 1; */ public com.google.cloud.billing.v1.Sku.Builder addSkusBuilder() { - return getSkusFieldBuilder().addBuilder( - com.google.cloud.billing.v1.Sku.getDefaultInstance()); + return getSkusFieldBuilder().addBuilder(com.google.cloud.billing.v1.Sku.getDefaultInstance()); } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public com.google.cloud.billing.v1.Sku.Builder addSkusBuilder( - int index) { - return getSkusFieldBuilder().addBuilder( - index, com.google.cloud.billing.v1.Sku.getDefaultInstance()); + public com.google.cloud.billing.v1.Sku.Builder addSkusBuilder(int index) { + return getSkusFieldBuilder() + .addBuilder(index, com.google.cloud.billing.v1.Sku.getDefaultInstance()); } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public java.util.List - getSkusBuilderList() { + public java.util.List getSkusBuilderList() { return getSkusFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Sku, com.google.cloud.billing.v1.Sku.Builder, com.google.cloud.billing.v1.SkuOrBuilder> + com.google.cloud.billing.v1.Sku, + com.google.cloud.billing.v1.Sku.Builder, + com.google.cloud.billing.v1.SkuOrBuilder> getSkusFieldBuilder() { if (skusBuilder_ == null) { - skusBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Sku, com.google.cloud.billing.v1.Sku.Builder, com.google.cloud.billing.v1.SkuOrBuilder>( - skus_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + skusBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.v1.Sku, + com.google.cloud.billing.v1.Sku.Builder, + com.google.cloud.billing.v1.SkuOrBuilder>( + skus_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); skus_ = null; } return skusBuilder_; @@ -872,6 +946,8 @@ public com.google.cloud.billing.v1.Sku.Builder addSkusBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListSkus` again with the `page_token` field set to this
@@ -879,13 +955,13 @@ public com.google.cloud.billing.v1.Sku.Builder addSkusBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -894,6 +970,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListSkus` again with the `page_token` field set to this
@@ -901,15 +979,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +994,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListSkus` again with the `page_token` field set to this
@@ -924,18 +1003,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListSkus` again with the `page_token` field set to this
@@ -943,6 +1026,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1036,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListSkus` again with the `page_token` field set to this
@@ -959,21 +1045,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1071,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ListSkusResponse) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ListSkusResponse) private static final com.google.cloud.billing.v1.ListSkusResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ListSkusResponse(); } @@ -997,27 +1085,27 @@ public static com.google.cloud.billing.v1.ListSkusResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSkusResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSkusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,6 +1120,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListSkusResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java index aeebda347aa9..b667ed018427 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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 interface ListSkusResponseOrBuilder extends +public interface ListSkusResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListSkusResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of public SKUs of the given service.
    * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - java.util.List - getSkusList(); + java.util.List getSkusList(); /** + * + * *
    * The list of public SKUs of the given service.
    * 
@@ -25,6 +44,8 @@ public interface ListSkusResponseOrBuilder extends */ com.google.cloud.billing.v1.Sku getSkus(int index); /** + * + * *
    * The list of public SKUs of the given service.
    * 
@@ -33,25 +54,29 @@ public interface ListSkusResponseOrBuilder extends */ int getSkusCount(); /** + * + * *
    * The list of public SKUs of the given service.
    * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - java.util.List - getSkusOrBuilderList(); + java.util.List getSkusOrBuilderList(); /** + * + * *
    * The list of public SKUs of the given service.
    * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder( - int index); + com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index); /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListSkus` again with the `page_token` field set to this
@@ -59,10 +84,13 @@ com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListSkus` again with the `page_token` field set to this
@@ -70,8 +98,8 @@ com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequest.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequest.java similarity index 64% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequest.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequest.java index cb8d5c91793f..4b8b1db3a6cb 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequest.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequest.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
  * Request message for `MoveBillingAccount` RPC.
  * 
* * Protobuf type {@code google.cloud.billing.v1.MoveBillingAccountRequest} */ -public final class MoveBillingAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MoveBillingAccountRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.MoveBillingAccountRequest) MoveBillingAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MoveBillingAccountRequest.newBuilder() to construct. private MoveBillingAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MoveBillingAccountRequest() { name_ = ""; destinationParent_ = ""; @@ -26,28 +44,32 @@ private MoveBillingAccountRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MoveBillingAccountRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.MoveBillingAccountRequest.class, com.google.cloud.billing.v1.MoveBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.MoveBillingAccountRequest.class, + com.google.cloud.billing.v1.MoveBillingAccountRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the billing account to move.
    * Must be of the form `billingAccounts/{billing_account_id}`.
@@ -55,7 +77,10 @@ protected java.lang.Object newInstance(
    * always belongs to the same organization as its parent account.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,14 +89,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the billing account to move.
    * Must be of the form `billingAccounts/{billing_account_id}`.
@@ -79,17 +105,18 @@ public java.lang.String getName() {
    * always belongs to the same organization as its parent account.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,16 +125,22 @@ public java.lang.String getName() { } public static final int DESTINATION_PARENT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object destinationParent_ = ""; /** + * + * *
    * Required. The resource name of the Organization to move
    * 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) = { ... } + * + * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The destinationParent. */ @java.lang.Override @@ -116,31 +149,33 @@ public java.lang.String getDestinationParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationParent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the Organization to move
    * 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) = { ... } + * + * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for destinationParent. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestinationParentBytes() { + public com.google.protobuf.ByteString getDestinationParentBytes() { java.lang.Object ref = destinationParent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationParent_ = b; return b; } else { @@ -149,6 +184,7 @@ public java.lang.String getDestinationParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -160,8 +196,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -191,17 +226,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.MoveBillingAccountRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.MoveBillingAccountRequest other = (com.google.cloud.billing.v1.MoveBillingAccountRequest) obj; + com.google.cloud.billing.v1.MoveBillingAccountRequest other = + (com.google.cloud.billing.v1.MoveBillingAccountRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDestinationParent() - .equals(other.getDestinationParent())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDestinationParent().equals(other.getDestinationParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,131 +257,136 @@ public int hashCode() { } public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.MoveBillingAccountRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.MoveBillingAccountRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.billing.v1.MoveBillingAccountRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `MoveBillingAccount` RPC.
    * 
* * Protobuf type {@code google.cloud.billing.v1.MoveBillingAccountRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.MoveBillingAccountRequest) com.google.cloud.billing.v1.MoveBillingAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.MoveBillingAccountRequest.class, com.google.cloud.billing.v1.MoveBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.MoveBillingAccountRequest.class, + com.google.cloud.billing.v1.MoveBillingAccountRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.MoveBillingAccountRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -358,9 +397,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_MoveBillingAccountRequest_descriptor; } @java.lang.Override @@ -379,8 +418,11 @@ public com.google.cloud.billing.v1.MoveBillingAccountRequest build() { @java.lang.Override public com.google.cloud.billing.v1.MoveBillingAccountRequest buildPartial() { - com.google.cloud.billing.v1.MoveBillingAccountRequest result = new com.google.cloud.billing.v1.MoveBillingAccountRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.v1.MoveBillingAccountRequest result = + new com.google.cloud.billing.v1.MoveBillingAccountRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -399,38 +441,39 @@ private void buildPartial0(com.google.cloud.billing.v1.MoveBillingAccountRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.MoveBillingAccountRequest) { - return mergeFrom((com.google.cloud.billing.v1.MoveBillingAccountRequest)other); + return mergeFrom((com.google.cloud.billing.v1.MoveBillingAccountRequest) other); } else { super.mergeFrom(other); return this; @@ -438,7 +481,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.MoveBillingAccountRequest other) { - if (other == com.google.cloud.billing.v1.MoveBillingAccountRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.MoveBillingAccountRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -475,22 +519,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - destinationParent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + destinationParent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,10 +547,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the billing account to move.
      * Must be of the form `billingAccounts/{billing_account_id}`.
@@ -511,14 +561,16 @@ public Builder mergeFrom(
      * always belongs to the same organization as its parent account.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -527,6 +579,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the billing account to move.
      * Must be of the form `billingAccounts/{billing_account_id}`.
@@ -534,16 +588,17 @@ public java.lang.String getName() {
      * always belongs to the same organization as its parent account.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -551,6 +606,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the billing account to move.
      * Must be of the form `billingAccounts/{billing_account_id}`.
@@ -558,19 +615,25 @@ public java.lang.String getName() {
      * always belongs to the same organization as its parent account.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the billing account to move.
      * Must be of the form `billingAccounts/{billing_account_id}`.
@@ -578,7 +641,10 @@ public Builder setName(
      * always belongs to the same organization as its parent account.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -588,6 +654,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the billing account to move.
      * Must be of the form `billingAccounts/{billing_account_id}`.
@@ -595,13 +663,17 @@ public Builder clearName() {
      * always belongs to the same organization as its parent account.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -611,20 +683,24 @@ public Builder setNameBytes( private java.lang.Object destinationParent_ = ""; /** + * + * *
      * Required. The resource name of the Organization to move
      * 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) = { ... } + * + * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The destinationParent. */ public java.lang.String getDestinationParent() { java.lang.Object ref = destinationParent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationParent_ = s; return s; @@ -633,22 +709,25 @@ public java.lang.String getDestinationParent() { } } /** + * + * *
      * Required. The resource name of the Organization to move
      * 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) = { ... } + * + * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for destinationParent. */ - public com.google.protobuf.ByteString - getDestinationParentBytes() { + public com.google.protobuf.ByteString getDestinationParentBytes() { java.lang.Object ref = destinationParent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationParent_ = b; return b; } else { @@ -656,32 +735,43 @@ public java.lang.String getDestinationParent() { } } /** + * + * *
      * Required. The resource name of the Organization to move
      * 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) = { ... } + * + * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The destinationParent to set. * @return This builder for chaining. */ - public Builder setDestinationParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } destinationParent_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Organization to move
      * 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) = { ... } + * + * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearDestinationParent() { @@ -691,28 +781,34 @@ public Builder clearDestinationParent() { return this; } /** + * + * *
      * Required. The resource name of the Organization to move
      * 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) = { ... } + * + * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for destinationParent to set. * @return This builder for chaining. */ - public Builder setDestinationParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); destinationParent_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -722,12 +818,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.MoveBillingAccountRequest) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.MoveBillingAccountRequest) private static final com.google.cloud.billing.v1.MoveBillingAccountRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.MoveBillingAccountRequest(); } @@ -736,27 +832,27 @@ public static com.google.cloud.billing.v1.MoveBillingAccountRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MoveBillingAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MoveBillingAccountRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -771,6 +867,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.billing.v1.MoveBillingAccountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/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 similarity index 52% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequestOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/MoveBillingAccountRequestOrBuilder.java index e158eceb6c98..54593e3e9474 100644 --- a/owl-bot-staging/java-billing/v1/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 @@ -1,13 +1,31 @@ +/* + * 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 +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}`.
@@ -15,11 +33,16 @@ public interface MoveBillingAccountRequestOrBuilder extends
    * always belongs to the same organization as its parent account.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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}`.
@@ -27,33 +50,44 @@ public interface MoveBillingAccountRequestOrBuilder extends
    * always belongs to the same organization as its parent account.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The resource name of the Organization to move
    * 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) = { ... } + * + * 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 move
    * 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) = { ... } + * + * string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for destinationParent. */ - com.google.protobuf.ByteString - getDestinationParentBytes(); + com.google.protobuf.ByteString getDestinationParentBytes(); } diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/OrganizationName.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/OrganizationName.java similarity index 100% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/OrganizationName.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/OrganizationName.java diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java similarity index 76% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java index ded95b8ae6ef..c1d483286021 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java @@ -1,9 +1,26 @@ +/* + * 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; /** + * + * *
  * Expresses a mathematical pricing formula. For Example:-
  *
@@ -19,15 +36,16 @@
  *
  * Protobuf type {@code google.cloud.billing.v1.PricingExpression}
  */
-public final class PricingExpression extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PricingExpression extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.PricingExpression)
     PricingExpressionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PricingExpression.newBuilder() to construct.
   private PricingExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PricingExpression() {
     usageUnit_ = "";
     tieredRates_ = java.util.Collections.emptyList();
@@ -38,29 +56,33 @@ private PricingExpression() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PricingExpression();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.v1.CloudCatalogProto
+        .internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_fieldAccessorTable
+    return com.google.cloud.billing.v1.CloudCatalogProto
+        .internal_static_google_cloud_billing_v1_PricingExpression_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.v1.PricingExpression.class, com.google.cloud.billing.v1.PricingExpression.Builder.class);
+            com.google.cloud.billing.v1.PricingExpression.class,
+            com.google.cloud.billing.v1.PricingExpression.Builder.class);
   }
 
-  public interface TierRateOrBuilder extends
+  public interface TierRateOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.PricingExpression.TierRate)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Usage is priced at this rate only after this amount.
      * Example: start_usage_amount of 10 indicates that the usage will be priced
@@ -68,31 +90,40 @@ public interface TierRateOrBuilder extends
      * 
* * double start_usage_amount = 1; + * * @return The startUsageAmount. */ double getStartUsageAmount(); /** + * + * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
      * 
* * .google.type.Money unit_price = 2; + * * @return Whether the unitPrice field is set. */ boolean hasUnitPrice(); /** + * + * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
      * 
* * .google.type.Money unit_price = 2; + * * @return The unitPrice. */ com.google.type.Money getUnitPrice(); /** + * + * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -103,47 +134,52 @@ public interface TierRateOrBuilder extends
     com.google.type.MoneyOrBuilder getUnitPriceOrBuilder();
   }
   /**
+   *
+   *
    * 
    * The price rate indicating starting usage and its corresponding price.
    * 
* * Protobuf type {@code google.cloud.billing.v1.PricingExpression.TierRate} */ - public static final class TierRate extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TierRate extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.PricingExpression.TierRate) TierRateOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TierRate.newBuilder() to construct. private TierRate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TierRate() { - } + + private TierRate() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TierRate(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_TierRate_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_PricingExpression_TierRate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.PricingExpression.TierRate.class, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder.class); + com.google.cloud.billing.v1.PricingExpression.TierRate.class, + com.google.cloud.billing.v1.PricingExpression.TierRate.Builder.class); } public static final int START_USAGE_AMOUNT_FIELD_NUMBER = 1; private double startUsageAmount_ = 0D; /** + * + * *
      * Usage is priced at this rate only after this amount.
      * Example: start_usage_amount of 10 indicates that the usage will be priced
@@ -151,6 +187,7 @@ protected java.lang.Object newInstance(
      * 
* * double start_usage_amount = 1; + * * @return The startUsageAmount. */ @java.lang.Override @@ -161,12 +198,15 @@ public double getStartUsageAmount() { public static final int UNIT_PRICE_FIELD_NUMBER = 2; private com.google.type.Money unitPrice_; /** + * + * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
      * 
* * .google.type.Money unit_price = 2; + * * @return Whether the unitPrice field is set. */ @java.lang.Override @@ -174,12 +214,15 @@ public boolean hasUnitPrice() { return unitPrice_ != null; } /** + * + * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
      * 
* * .google.type.Money unit_price = 2; + * * @return The unitPrice. */ @java.lang.Override @@ -187,6 +230,8 @@ public com.google.type.Money getUnitPrice() { return unitPrice_ == null ? com.google.type.Money.getDefaultInstance() : unitPrice_; } /** + * + * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -200,6 +245,7 @@ public com.google.type.MoneyOrBuilder getUnitPriceOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -211,8 +257,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (java.lang.Double.doubleToRawLongBits(startUsageAmount_) != 0) {
         output.writeDouble(1, startUsageAmount_);
       }
@@ -229,12 +274,10 @@ public int getSerializedSize() {
 
       size = 0;
       if (java.lang.Double.doubleToRawLongBits(startUsageAmount_) != 0) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeDoubleSize(1, startUsageAmount_);
+        size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, startUsageAmount_);
       }
       if (unitPrice_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getUnitPrice());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUnitPrice());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -244,20 +287,19 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.cloud.billing.v1.PricingExpression.TierRate)) {
         return super.equals(obj);
       }
-      com.google.cloud.billing.v1.PricingExpression.TierRate other = (com.google.cloud.billing.v1.PricingExpression.TierRate) obj;
+      com.google.cloud.billing.v1.PricingExpression.TierRate other =
+          (com.google.cloud.billing.v1.PricingExpression.TierRate) obj;
 
       if (java.lang.Double.doubleToLongBits(getStartUsageAmount())
-          != java.lang.Double.doubleToLongBits(
-              other.getStartUsageAmount())) return false;
+          != java.lang.Double.doubleToLongBits(other.getStartUsageAmount())) return false;
       if (hasUnitPrice() != other.hasUnitPrice()) return false;
       if (hasUnitPrice()) {
-        if (!getUnitPrice()
-            .equals(other.getUnitPrice())) return false;
+        if (!getUnitPrice().equals(other.getUnitPrice())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -271,8 +313,10 @@ public int hashCode() {
       int hash = 41;
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + START_USAGE_AMOUNT_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-          java.lang.Double.doubleToLongBits(getStartUsageAmount()));
+      hash =
+          (53 * hash)
+              + com.google.protobuf.Internal.hashLong(
+                  java.lang.Double.doubleToLongBits(getStartUsageAmount()));
       if (hasUnitPrice()) {
         hash = (37 * hash) + UNIT_PRICE_FIELD_NUMBER;
         hash = (53 * hash) + getUnitPrice().hashCode();
@@ -283,89 +327,94 @@ public int hashCode() {
     }
 
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
-    public static com.google.cloud.billing.v1.PricingExpression.TierRate parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.billing.v1.PricingExpression.TierRate parseDelimitedFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.cloud.billing.v1.PricingExpression.TierRate prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.billing.v1.PricingExpression.TierRate prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -375,39 +424,41 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * The price rate indicating starting usage and its corresponding price.
      * 
* * Protobuf type {@code google.cloud.billing.v1.PricingExpression.TierRate} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.PricingExpression.TierRate) com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_TierRate_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_PricingExpression_TierRate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.PricingExpression.TierRate.class, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder.class); + com.google.cloud.billing.v1.PricingExpression.TierRate.class, + com.google.cloud.billing.v1.PricingExpression.TierRate.Builder.class); } // Construct using com.google.cloud.billing.v1.PricingExpression.TierRate.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +473,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor; } @java.lang.Override @@ -443,8 +494,11 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate build() { @java.lang.Override public com.google.cloud.billing.v1.PricingExpression.TierRate buildPartial() { - com.google.cloud.billing.v1.PricingExpression.TierRate result = new com.google.cloud.billing.v1.PricingExpression.TierRate(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.v1.PricingExpression.TierRate result = + new com.google.cloud.billing.v1.PricingExpression.TierRate(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -455,9 +509,7 @@ private void buildPartial0(com.google.cloud.billing.v1.PricingExpression.TierRat result.startUsageAmount_ = startUsageAmount_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.unitPrice_ = unitPriceBuilder_ == null - ? unitPrice_ - : unitPriceBuilder_.build(); + result.unitPrice_ = unitPriceBuilder_ == null ? unitPrice_ : unitPriceBuilder_.build(); } } @@ -465,38 +517,41 @@ private void buildPartial0(com.google.cloud.billing.v1.PricingExpression.TierRat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.PricingExpression.TierRate) { - return mergeFrom((com.google.cloud.billing.v1.PricingExpression.TierRate)other); + return mergeFrom((com.google.cloud.billing.v1.PricingExpression.TierRate) other); } else { super.mergeFrom(other); return this; @@ -504,7 +559,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.PricingExpression.TierRate other) { - if (other == com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance()) + return this; if (other.getStartUsageAmount() != 0D) { setStartUsageAmount(other.getStartUsageAmount()); } @@ -537,24 +593,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: { - startUsageAmount_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - case 18: { - input.readMessage( - getUnitPriceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 9: + { + startUsageAmount_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 18: + { + input.readMessage(getUnitPriceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -564,10 +621,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private double startUsageAmount_ ; + private double startUsageAmount_; /** + * + * *
        * Usage is priced at this rate only after this amount.
        * Example: start_usage_amount of 10 indicates that the usage will be priced
@@ -575,6 +635,7 @@ public Builder mergeFrom(
        * 
* * double start_usage_amount = 1; + * * @return The startUsageAmount. */ @java.lang.Override @@ -582,6 +643,8 @@ public double getStartUsageAmount() { return startUsageAmount_; } /** + * + * *
        * Usage is priced at this rate only after this amount.
        * Example: start_usage_amount of 10 indicates that the usage will be priced
@@ -589,6 +652,7 @@ public double getStartUsageAmount() {
        * 
* * double start_usage_amount = 1; + * * @param value The startUsageAmount to set. * @return This builder for chaining. */ @@ -600,6 +664,8 @@ public Builder setStartUsageAmount(double value) { return this; } /** + * + * *
        * Usage is priced at this rate only after this amount.
        * Example: start_usage_amount of 10 indicates that the usage will be priced
@@ -607,6 +673,7 @@ public Builder setStartUsageAmount(double value) {
        * 
* * double start_usage_amount = 1; + * * @return This builder for chaining. */ public Builder clearStartUsageAmount() { @@ -618,26 +685,33 @@ public Builder clearStartUsageAmount() { private com.google.type.Money unitPrice_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> unitPriceBuilder_; + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + unitPriceBuilder_; /** + * + * *
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
        * 
* * .google.type.Money unit_price = 2; + * * @return Whether the unitPrice field is set. */ public boolean hasUnitPrice() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
        * 
* * .google.type.Money unit_price = 2; + * * @return The unitPrice. */ public com.google.type.Money getUnitPrice() { @@ -648,6 +722,8 @@ public com.google.type.Money getUnitPrice() { } } /** + * + * *
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -669,6 +745,8 @@ public Builder setUnitPrice(com.google.type.Money value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -676,8 +754,7 @@ public Builder setUnitPrice(com.google.type.Money value) {
        *
        * .google.type.Money unit_price = 2;
        */
-      public Builder setUnitPrice(
-          com.google.type.Money.Builder builderForValue) {
+      public Builder setUnitPrice(com.google.type.Money.Builder builderForValue) {
         if (unitPriceBuilder_ == null) {
           unitPrice_ = builderForValue.build();
         } else {
@@ -688,6 +765,8 @@ public Builder setUnitPrice(
         return this;
       }
       /**
+       *
+       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -697,9 +776,9 @@ public Builder setUnitPrice(
        */
       public Builder mergeUnitPrice(com.google.type.Money value) {
         if (unitPriceBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0) &&
-            unitPrice_ != null &&
-            unitPrice_ != com.google.type.Money.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0)
+              && unitPrice_ != null
+              && unitPrice_ != com.google.type.Money.getDefaultInstance()) {
             getUnitPriceBuilder().mergeFrom(value);
           } else {
             unitPrice_ = value;
@@ -712,6 +791,8 @@ public Builder mergeUnitPrice(com.google.type.Money value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -730,6 +811,8 @@ public Builder clearUnitPrice() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -743,6 +826,8 @@ public com.google.type.Money.Builder getUnitPriceBuilder() {
         return getUnitPriceFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -754,11 +839,12 @@ public com.google.type.MoneyOrBuilder getUnitPriceOrBuilder() {
         if (unitPriceBuilder_ != null) {
           return unitPriceBuilder_.getMessageOrBuilder();
         } else {
-          return unitPrice_ == null ?
-              com.google.type.Money.getDefaultInstance() : unitPrice_;
+          return unitPrice_ == null ? com.google.type.Money.getDefaultInstance() : unitPrice_;
         }
       }
       /**
+       *
+       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -767,18 +853,20 @@ public com.google.type.MoneyOrBuilder getUnitPriceOrBuilder() {
        * .google.type.Money unit_price = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> 
+              com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
           getUnitPriceFieldBuilder() {
         if (unitPriceBuilder_ == null) {
-          unitPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>(
-                  getUnitPrice(),
-                  getParentForChildren(),
-                  isClean());
+          unitPriceBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.type.Money,
+                  com.google.type.Money.Builder,
+                  com.google.type.MoneyOrBuilder>(
+                  getUnitPrice(), getParentForChildren(), isClean());
           unitPrice_ = null;
         }
         return unitPriceBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -791,12 +879,12 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.PricingExpression.TierRate)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.PricingExpression.TierRate)
     private static final com.google.cloud.billing.v1.PricingExpression.TierRate DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.cloud.billing.v1.PricingExpression.TierRate();
     }
@@ -805,27 +893,28 @@ public static com.google.cloud.billing.v1.PricingExpression.TierRate getDefaultI
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public TierRate parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-        } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(builder.buildPartial());
-        }
-        return builder.buildPartial();
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public TierRate parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              throw e.asInvalidProtocolBufferException()
+                  .setUnfinishedMessage(builder.buildPartial());
+            } catch (java.io.IOException e) {
+              throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                  .setUnfinishedMessage(builder.buildPartial());
+            }
+            return builder.buildPartial();
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -840,19 +929,22 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.cloud.billing.v1.PricingExpression.TierRate getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   public static final int USAGE_UNIT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object usageUnit_ = "";
   /**
+   *
+   *
    * 
    * The short hand for unit of usage this pricing is specified in.
    * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
    * 
* * string usage_unit = 1; + * * @return The usageUnit. */ @java.lang.Override @@ -861,30 +953,30 @@ public java.lang.String getUsageUnit() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usageUnit_ = s; return s; } } /** + * + * *
    * The short hand for unit of usage this pricing is specified in.
    * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
    * 
* * string usage_unit = 1; + * * @return The bytes for usageUnit. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsageUnitBytes() { + public com.google.protobuf.ByteString getUsageUnitBytes() { java.lang.Object ref = usageUnit_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); usageUnit_ = b; return b; } else { @@ -895,6 +987,8 @@ public java.lang.String getUsageUnit() { public static final int DISPLAY_QUANTITY_FIELD_NUMBER = 2; private double displayQuantity_ = 0D; /** + * + * *
    * The recommended quantity of units for displaying pricing info. When
    * displaying pricing info it is recommended to display:
@@ -907,6 +1001,7 @@ public java.lang.String getUsageUnit() {
    * 
* * double display_quantity = 2; + * * @return The displayQuantity. */ @java.lang.Override @@ -915,9 +1010,12 @@ public double getDisplayQuantity() { } public static final int TIERED_RATES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List tieredRates_; /** + * + * *
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -927,10 +1025,13 @@ public double getDisplayQuantity() {
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
   @java.lang.Override
-  public java.util.List getTieredRatesList() {
+  public java.util.List
+      getTieredRatesList() {
     return tieredRates_;
   }
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -940,11 +1041,13 @@ public java.util.List ge
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getTieredRatesOrBuilderList() {
     return tieredRates_;
   }
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -958,6 +1061,8 @@ public int getTieredRatesCount() {
     return tieredRates_.size();
   }
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -971,6 +1076,8 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int
     return tieredRates_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -986,15 +1093,19 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
   }
 
   public static final int USAGE_UNIT_DESCRIPTION_FIELD_NUMBER = 4;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object usageUnitDescription_ = "";
   /**
+   *
+   *
    * 
    * The unit of usage in human readable form.
    * Example: "gibi byte".
    * 
* * string usage_unit_description = 4; + * * @return The usageUnitDescription. */ @java.lang.Override @@ -1003,30 +1114,30 @@ public java.lang.String getUsageUnitDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usageUnitDescription_ = s; return s; } } /** + * + * *
    * The unit of usage in human readable form.
    * Example: "gibi byte".
    * 
* * string usage_unit_description = 4; + * * @return The bytes for usageUnitDescription. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsageUnitDescriptionBytes() { + public com.google.protobuf.ByteString getUsageUnitDescriptionBytes() { java.lang.Object ref = usageUnitDescription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); usageUnitDescription_ = b; return b; } else { @@ -1035,15 +1146,19 @@ public java.lang.String getUsageUnitDescription() { } public static final int BASE_UNIT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object baseUnit_ = ""; /** + * + * *
    * The base unit for the SKU which is the unit used in usage exports.
    * Example: "By"
    * 
* * string base_unit = 5; + * * @return The baseUnit. */ @java.lang.Override @@ -1052,30 +1167,30 @@ public java.lang.String getBaseUnit() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseUnit_ = s; return s; } } /** + * + * *
    * The base unit for the SKU which is the unit used in usage exports.
    * Example: "By"
    * 
* * string base_unit = 5; + * * @return The bytes for baseUnit. */ @java.lang.Override - public com.google.protobuf.ByteString - getBaseUnitBytes() { + public com.google.protobuf.ByteString getBaseUnitBytes() { java.lang.Object ref = baseUnit_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); baseUnit_ = b; return b; } else { @@ -1084,15 +1199,19 @@ public java.lang.String getBaseUnit() { } public static final int BASE_UNIT_DESCRIPTION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object baseUnitDescription_ = ""; /** + * + * *
    * The base unit in human readable form.
    * Example: "byte".
    * 
* * string base_unit_description = 6; + * * @return The baseUnitDescription. */ @java.lang.Override @@ -1101,30 +1220,30 @@ public java.lang.String getBaseUnitDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseUnitDescription_ = s; return s; } } /** + * + * *
    * The base unit in human readable form.
    * Example: "byte".
    * 
* * string base_unit_description = 6; + * * @return The bytes for baseUnitDescription. */ @java.lang.Override - public com.google.protobuf.ByteString - getBaseUnitDescriptionBytes() { + public com.google.protobuf.ByteString getBaseUnitDescriptionBytes() { java.lang.Object ref = baseUnitDescription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); baseUnitDescription_ = b; return b; } else { @@ -1135,6 +1254,8 @@ public java.lang.String getBaseUnitDescription() { public static final int BASE_UNIT_CONVERSION_FACTOR_FIELD_NUMBER = 7; private double baseUnitConversionFactor_ = 0D; /** + * + * *
    * Conversion factor for converting from price per usage_unit to price per
    * base_unit, and start_usage_amount to start_usage_amount in base_unit.
@@ -1144,6 +1265,7 @@ public java.lang.String getBaseUnitDescription() {
    * 
* * double base_unit_conversion_factor = 7; + * * @return The baseUnitConversionFactor. */ @java.lang.Override @@ -1152,6 +1274,7 @@ public double getBaseUnitConversionFactor() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1163,8 +1286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(usageUnit_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, usageUnit_); } @@ -1199,12 +1321,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, usageUnit_); } if (java.lang.Double.doubleToRawLongBits(displayQuantity_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, displayQuantity_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, displayQuantity_); } for (int i = 0; i < tieredRates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, tieredRates_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, tieredRates_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(usageUnitDescription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, usageUnitDescription_); @@ -1216,8 +1336,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, baseUnitDescription_); } if (java.lang.Double.doubleToRawLongBits(baseUnitConversionFactor_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(7, baseUnitConversionFactor_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(7, baseUnitConversionFactor_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1227,29 +1346,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.PricingExpression)) { return super.equals(obj); } - com.google.cloud.billing.v1.PricingExpression other = (com.google.cloud.billing.v1.PricingExpression) obj; + com.google.cloud.billing.v1.PricingExpression other = + (com.google.cloud.billing.v1.PricingExpression) obj; - if (!getUsageUnit() - .equals(other.getUsageUnit())) return false; + if (!getUsageUnit().equals(other.getUsageUnit())) return false; if (java.lang.Double.doubleToLongBits(getDisplayQuantity()) - != java.lang.Double.doubleToLongBits( - other.getDisplayQuantity())) return false; - if (!getTieredRatesList() - .equals(other.getTieredRatesList())) return false; - if (!getUsageUnitDescription() - .equals(other.getUsageUnitDescription())) return false; - if (!getBaseUnit() - .equals(other.getBaseUnit())) return false; - if (!getBaseUnitDescription() - .equals(other.getBaseUnitDescription())) return false; + != java.lang.Double.doubleToLongBits(other.getDisplayQuantity())) return false; + if (!getTieredRatesList().equals(other.getTieredRatesList())) return false; + if (!getUsageUnitDescription().equals(other.getUsageUnitDescription())) return false; + if (!getBaseUnit().equals(other.getBaseUnit())) return false; + if (!getBaseUnitDescription().equals(other.getBaseUnitDescription())) return false; if (java.lang.Double.doubleToLongBits(getBaseUnitConversionFactor()) - != java.lang.Double.doubleToLongBits( - other.getBaseUnitConversionFactor())) return false; + != java.lang.Double.doubleToLongBits(other.getBaseUnitConversionFactor())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1264,8 +1377,10 @@ public int hashCode() { hash = (37 * hash) + USAGE_UNIT_FIELD_NUMBER; hash = (53 * hash) + getUsageUnit().hashCode(); hash = (37 * hash) + DISPLAY_QUANTITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDisplayQuantity())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDisplayQuantity())); if (getTieredRatesCount() > 0) { hash = (37 * hash) + TIERED_RATES_FIELD_NUMBER; hash = (53 * hash) + getTieredRatesList().hashCode(); @@ -1277,106 +1392,113 @@ public int hashCode() { hash = (37 * hash) + BASE_UNIT_DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getBaseUnitDescription().hashCode(); hash = (37 * hash) + BASE_UNIT_CONVERSION_FACTOR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getBaseUnitConversionFactor())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getBaseUnitConversionFactor())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.billing.v1.PricingExpression parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.PricingExpression parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.PricingExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.PricingExpression parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.PricingExpression parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.PricingExpression parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.PricingExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.PricingExpression parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.PricingExpression parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.PricingExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.PricingExpression parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.PricingExpression parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.PricingExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.PricingExpression parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.PricingExpression prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Expresses a mathematical pricing formula. For Example:-
    *
@@ -1392,33 +1514,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.v1.PricingExpression}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.PricingExpression)
       com.google.cloud.billing.v1.PricingExpressionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.v1.CloudCatalogProto
+          .internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_fieldAccessorTable
+      return com.google.cloud.billing.v1.CloudCatalogProto
+          .internal_static_google_cloud_billing_v1_PricingExpression_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.v1.PricingExpression.class, com.google.cloud.billing.v1.PricingExpression.Builder.class);
+              com.google.cloud.billing.v1.PricingExpression.class,
+              com.google.cloud.billing.v1.PricingExpression.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.v1.PricingExpression.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1440,9 +1561,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.v1.CloudCatalogProto
+          .internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
     }
 
     @java.lang.Override
@@ -1461,9 +1582,12 @@ public com.google.cloud.billing.v1.PricingExpression build() {
 
     @java.lang.Override
     public com.google.cloud.billing.v1.PricingExpression buildPartial() {
-      com.google.cloud.billing.v1.PricingExpression result = new com.google.cloud.billing.v1.PricingExpression(this);
+      com.google.cloud.billing.v1.PricingExpression result =
+          new com.google.cloud.billing.v1.PricingExpression(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1506,38 +1630,39 @@ private void buildPartial0(com.google.cloud.billing.v1.PricingExpression result)
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.billing.v1.PricingExpression) {
-        return mergeFrom((com.google.cloud.billing.v1.PricingExpression)other);
+        return mergeFrom((com.google.cloud.billing.v1.PricingExpression) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1572,9 +1697,10 @@ public Builder mergeFrom(com.google.cloud.billing.v1.PricingExpression other) {
             tieredRatesBuilder_ = null;
             tieredRates_ = other.tieredRates_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            tieredRatesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getTieredRatesFieldBuilder() : null;
+            tieredRatesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getTieredRatesFieldBuilder()
+                    : null;
           } else {
             tieredRatesBuilder_.addAllMessages(other.tieredRates_);
           }
@@ -1624,55 +1750,63 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              usageUnit_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 17: {
-              displayQuantity_ = input.readDouble();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 17
-            case 26: {
-              com.google.cloud.billing.v1.PricingExpression.TierRate m =
-                  input.readMessage(
-                      com.google.cloud.billing.v1.PricingExpression.TierRate.parser(),
-                      extensionRegistry);
-              if (tieredRatesBuilder_ == null) {
-                ensureTieredRatesIsMutable();
-                tieredRates_.add(m);
-              } else {
-                tieredRatesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            case 34: {
-              usageUnitDescription_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              baseUnit_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              baseUnitDescription_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 57: {
-              baseUnitConversionFactor_ = input.readDouble();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 57
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                usageUnit_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 17:
+              {
+                displayQuantity_ = input.readDouble();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 17
+            case 26:
+              {
+                com.google.cloud.billing.v1.PricingExpression.TierRate m =
+                    input.readMessage(
+                        com.google.cloud.billing.v1.PricingExpression.TierRate.parser(),
+                        extensionRegistry);
+                if (tieredRatesBuilder_ == null) {
+                  ensureTieredRatesIsMutable();
+                  tieredRates_.add(m);
+                } else {
+                  tieredRatesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            case 34:
+              {
+                usageUnitDescription_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                baseUnit_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                baseUnitDescription_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 57:
+              {
+                baseUnitConversionFactor_ = input.readDouble();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 57
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1682,23 +1816,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object usageUnit_ = "";
     /**
+     *
+     *
      * 
      * The short hand for unit of usage this pricing is specified in.
      * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
      * 
* * string usage_unit = 1; + * * @return The usageUnit. */ public java.lang.String getUsageUnit() { java.lang.Object ref = usageUnit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usageUnit_ = s; return s; @@ -1707,21 +1844,22 @@ public java.lang.String getUsageUnit() { } } /** + * + * *
      * The short hand for unit of usage this pricing is specified in.
      * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
      * 
* * string usage_unit = 1; + * * @return The bytes for usageUnit. */ - public com.google.protobuf.ByteString - getUsageUnitBytes() { + public com.google.protobuf.ByteString getUsageUnitBytes() { java.lang.Object ref = usageUnit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); usageUnit_ = b; return b; } else { @@ -1729,30 +1867,37 @@ public java.lang.String getUsageUnit() { } } /** + * + * *
      * The short hand for unit of usage this pricing is specified in.
      * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
      * 
* * string usage_unit = 1; + * * @param value The usageUnit to set. * @return This builder for chaining. */ - public Builder setUsageUnit( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsageUnit(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } usageUnit_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The short hand for unit of usage this pricing is specified in.
      * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
      * 
* * string usage_unit = 1; + * * @return This builder for chaining. */ public Builder clearUsageUnit() { @@ -1762,18 +1907,22 @@ public Builder clearUsageUnit() { return this; } /** + * + * *
      * The short hand for unit of usage this pricing is specified in.
      * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
      * 
* * string usage_unit = 1; + * * @param value The bytes for usageUnit to set. * @return This builder for chaining. */ - public Builder setUsageUnitBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsageUnitBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); usageUnit_ = value; bitField0_ |= 0x00000001; @@ -1781,8 +1930,10 @@ public Builder setUsageUnitBytes( return this; } - private double displayQuantity_ ; + private double displayQuantity_; /** + * + * *
      * The recommended quantity of units for displaying pricing info. When
      * displaying pricing info it is recommended to display:
@@ -1795,6 +1946,7 @@ public Builder setUsageUnitBytes(
      * 
* * double display_quantity = 2; + * * @return The displayQuantity. */ @java.lang.Override @@ -1802,6 +1954,8 @@ public double getDisplayQuantity() { return displayQuantity_; } /** + * + * *
      * The recommended quantity of units for displaying pricing info. When
      * displaying pricing info it is recommended to display:
@@ -1814,6 +1968,7 @@ public double getDisplayQuantity() {
      * 
* * double display_quantity = 2; + * * @param value The displayQuantity to set. * @return This builder for chaining. */ @@ -1825,6 +1980,8 @@ public Builder setDisplayQuantity(double value) { return this; } /** + * + * *
      * The recommended quantity of units for displaying pricing info. When
      * displaying pricing info it is recommended to display:
@@ -1837,6 +1994,7 @@ public Builder setDisplayQuantity(double value) {
      * 
* * double display_quantity = 2; + * * @return This builder for chaining. */ public Builder clearDisplayQuantity() { @@ -1847,18 +2005,26 @@ public Builder clearDisplayQuantity() { } private java.util.List tieredRates_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTieredRatesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - tieredRates_ = new java.util.ArrayList(tieredRates_); + tieredRates_ = + new java.util.ArrayList( + tieredRates_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.PricingExpression.TierRate, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder> tieredRatesBuilder_; + com.google.cloud.billing.v1.PricingExpression.TierRate, + com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, + com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder> + tieredRatesBuilder_; /** + * + * *
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1867,7 +2033,8 @@ private void ensureTieredRatesIsMutable() {
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public java.util.List getTieredRatesList() {
+    public java.util.List
+        getTieredRatesList() {
       if (tieredRatesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(tieredRates_);
       } else {
@@ -1875,6 +2042,8 @@ public java.util.List ge
       }
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1891,6 +2060,8 @@ public int getTieredRatesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1907,6 +2078,8 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int
       }
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1930,6 +2103,8 @@ public Builder setTieredRates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1950,6 +2125,8 @@ public Builder setTieredRates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1972,6 +2149,8 @@ public Builder addTieredRates(com.google.cloud.billing.v1.PricingExpression.Tier
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1995,6 +2174,8 @@ public Builder addTieredRates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2015,6 +2196,8 @@ public Builder addTieredRates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2035,6 +2218,8 @@ public Builder addTieredRates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2044,11 +2229,11 @@ public Builder addTieredRates(
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
     public Builder addAllTieredRates(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (tieredRatesBuilder_ == null) {
         ensureTieredRatesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, tieredRates_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tieredRates_);
         onChanged();
       } else {
         tieredRatesBuilder_.addAllMessages(values);
@@ -2056,6 +2241,8 @@ public Builder addAllTieredRates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2075,6 +2262,8 @@ public Builder clearTieredRates() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2094,6 +2283,8 @@ public Builder removeTieredRates(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2107,6 +2298,8 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder getTieredR
       return getTieredRatesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2118,11 +2311,14 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder getTieredR
     public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTieredRatesOrBuilder(
         int index) {
       if (tieredRatesBuilder_ == null) {
-        return tieredRates_.get(index);  } else {
+        return tieredRates_.get(index);
+      } else {
         return tieredRatesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2131,8 +2327,8 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public java.util.List 
-         getTieredRatesOrBuilderList() {
+    public java.util.List
+        getTieredRatesOrBuilderList() {
       if (tieredRatesBuilder_ != null) {
         return tieredRatesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2140,6 +2336,8 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
       }
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2149,10 +2347,12 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
     public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredRatesBuilder() {
-      return getTieredRatesFieldBuilder().addBuilder(
-          com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
+      return getTieredRatesFieldBuilder()
+          .addBuilder(com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2163,10 +2363,13 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredR
      */
     public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredRatesBuilder(
         int index) {
-      return getTieredRatesFieldBuilder().addBuilder(
-          index, com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
+      return getTieredRatesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2175,20 +2378,23 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredR
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public java.util.List 
-         getTieredRatesBuilderList() {
+    public java.util.List
+        getTieredRatesBuilderList() {
       return getTieredRatesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.billing.v1.PricingExpression.TierRate, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder> 
+            com.google.cloud.billing.v1.PricingExpression.TierRate,
+            com.google.cloud.billing.v1.PricingExpression.TierRate.Builder,
+            com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder>
         getTieredRatesFieldBuilder() {
       if (tieredRatesBuilder_ == null) {
-        tieredRatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.billing.v1.PricingExpression.TierRate, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder>(
-                tieredRates_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        tieredRatesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.billing.v1.PricingExpression.TierRate,
+                com.google.cloud.billing.v1.PricingExpression.TierRate.Builder,
+                com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder>(
+                tieredRates_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
         tieredRates_ = null;
       }
       return tieredRatesBuilder_;
@@ -2196,19 +2402,21 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredR
 
     private java.lang.Object usageUnitDescription_ = "";
     /**
+     *
+     *
      * 
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; + * * @return The usageUnitDescription. */ public java.lang.String getUsageUnitDescription() { java.lang.Object ref = usageUnitDescription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usageUnitDescription_ = s; return s; @@ -2217,21 +2425,22 @@ public java.lang.String getUsageUnitDescription() { } } /** + * + * *
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; + * * @return The bytes for usageUnitDescription. */ - public com.google.protobuf.ByteString - getUsageUnitDescriptionBytes() { + public com.google.protobuf.ByteString getUsageUnitDescriptionBytes() { java.lang.Object ref = usageUnitDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); usageUnitDescription_ = b; return b; } else { @@ -2239,30 +2448,37 @@ public java.lang.String getUsageUnitDescription() { } } /** + * + * *
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; + * * @param value The usageUnitDescription to set. * @return This builder for chaining. */ - public Builder setUsageUnitDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsageUnitDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } usageUnitDescription_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; + * * @return This builder for chaining. */ public Builder clearUsageUnitDescription() { @@ -2272,18 +2488,22 @@ public Builder clearUsageUnitDescription() { return this; } /** + * + * *
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; + * * @param value The bytes for usageUnitDescription to set. * @return This builder for chaining. */ - public Builder setUsageUnitDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsageUnitDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); usageUnitDescription_ = value; bitField0_ |= 0x00000008; @@ -2293,19 +2513,21 @@ public Builder setUsageUnitDescriptionBytes( private java.lang.Object baseUnit_ = ""; /** + * + * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; + * * @return The baseUnit. */ public java.lang.String getBaseUnit() { java.lang.Object ref = baseUnit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseUnit_ = s; return s; @@ -2314,21 +2536,22 @@ public java.lang.String getBaseUnit() { } } /** + * + * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; + * * @return The bytes for baseUnit. */ - public com.google.protobuf.ByteString - getBaseUnitBytes() { + public com.google.protobuf.ByteString getBaseUnitBytes() { java.lang.Object ref = baseUnit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); baseUnit_ = b; return b; } else { @@ -2336,30 +2559,37 @@ public java.lang.String getBaseUnit() { } } /** + * + * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; + * * @param value The baseUnit to set. * @return This builder for chaining. */ - public Builder setBaseUnit( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBaseUnit(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } baseUnit_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; + * * @return This builder for chaining. */ public Builder clearBaseUnit() { @@ -2369,18 +2599,22 @@ public Builder clearBaseUnit() { return this; } /** + * + * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; + * * @param value The bytes for baseUnit to set. * @return This builder for chaining. */ - public Builder setBaseUnitBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBaseUnitBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); baseUnit_ = value; bitField0_ |= 0x00000010; @@ -2390,19 +2624,21 @@ public Builder setBaseUnitBytes( private java.lang.Object baseUnitDescription_ = ""; /** + * + * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; + * * @return The baseUnitDescription. */ public java.lang.String getBaseUnitDescription() { java.lang.Object ref = baseUnitDescription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseUnitDescription_ = s; return s; @@ -2411,21 +2647,22 @@ public java.lang.String getBaseUnitDescription() { } } /** + * + * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; + * * @return The bytes for baseUnitDescription. */ - public com.google.protobuf.ByteString - getBaseUnitDescriptionBytes() { + public com.google.protobuf.ByteString getBaseUnitDescriptionBytes() { java.lang.Object ref = baseUnitDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); baseUnitDescription_ = b; return b; } else { @@ -2433,30 +2670,37 @@ public java.lang.String getBaseUnitDescription() { } } /** + * + * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; + * * @param value The baseUnitDescription to set. * @return This builder for chaining. */ - public Builder setBaseUnitDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBaseUnitDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } baseUnitDescription_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; + * * @return This builder for chaining. */ public Builder clearBaseUnitDescription() { @@ -2466,18 +2710,22 @@ public Builder clearBaseUnitDescription() { return this; } /** + * + * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; + * * @param value The bytes for baseUnitDescription to set. * @return This builder for chaining. */ - public Builder setBaseUnitDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBaseUnitDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); baseUnitDescription_ = value; bitField0_ |= 0x00000020; @@ -2485,8 +2733,10 @@ public Builder setBaseUnitDescriptionBytes( return this; } - private double baseUnitConversionFactor_ ; + private double baseUnitConversionFactor_; /** + * + * *
      * Conversion factor for converting from price per usage_unit to price per
      * base_unit, and start_usage_amount to start_usage_amount in base_unit.
@@ -2496,6 +2746,7 @@ public Builder setBaseUnitDescriptionBytes(
      * 
* * double base_unit_conversion_factor = 7; + * * @return The baseUnitConversionFactor. */ @java.lang.Override @@ -2503,6 +2754,8 @@ public double getBaseUnitConversionFactor() { return baseUnitConversionFactor_; } /** + * + * *
      * Conversion factor for converting from price per usage_unit to price per
      * base_unit, and start_usage_amount to start_usage_amount in base_unit.
@@ -2512,6 +2765,7 @@ public double getBaseUnitConversionFactor() {
      * 
* * double base_unit_conversion_factor = 7; + * * @param value The baseUnitConversionFactor to set. * @return This builder for chaining. */ @@ -2523,6 +2777,8 @@ public Builder setBaseUnitConversionFactor(double value) { return this; } /** + * + * *
      * Conversion factor for converting from price per usage_unit to price per
      * base_unit, and start_usage_amount to start_usage_amount in base_unit.
@@ -2532,6 +2788,7 @@ public Builder setBaseUnitConversionFactor(double value) {
      * 
* * double base_unit_conversion_factor = 7; + * * @return This builder for chaining. */ public Builder clearBaseUnitConversionFactor() { @@ -2540,9 +2797,9 @@ public Builder clearBaseUnitConversionFactor() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2552,12 +2809,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.PricingExpression) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.PricingExpression) private static final com.google.cloud.billing.v1.PricingExpression DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.PricingExpression(); } @@ -2566,27 +2823,27 @@ public static com.google.cloud.billing.v1.PricingExpression getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PricingExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PricingExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2601,6 +2858,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.PricingExpression getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java similarity index 82% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java index 139bd38a0392..f700691e7026 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java @@ -1,35 +1,58 @@ +/* + * 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 interface PricingExpressionOrBuilder extends +public interface PricingExpressionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.PricingExpression) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The short hand for unit of usage this pricing is specified in.
    * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
    * 
* * string usage_unit = 1; + * * @return The usageUnit. */ java.lang.String getUsageUnit(); /** + * + * *
    * The short hand for unit of usage this pricing is specified in.
    * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
    * 
* * string usage_unit = 1; + * * @return The bytes for usageUnit. */ - com.google.protobuf.ByteString - getUsageUnitBytes(); + com.google.protobuf.ByteString getUsageUnitBytes(); /** + * + * *
    * The recommended quantity of units for displaying pricing info. When
    * displaying pricing info it is recommended to display:
@@ -42,11 +65,14 @@ public interface PricingExpressionOrBuilder extends
    * 
* * double display_quantity = 2; + * * @return The displayQuantity. */ double getDisplayQuantity(); /** + * + * *
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -55,9 +81,10 @@ public interface PricingExpressionOrBuilder extends
    *
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
-  java.util.List 
-      getTieredRatesList();
+  java.util.List getTieredRatesList();
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -68,6 +95,8 @@ public interface PricingExpressionOrBuilder extends
    */
   com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int index);
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -78,6 +107,8 @@ public interface PricingExpressionOrBuilder extends
    */
   int getTieredRatesCount();
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -86,9 +117,11 @@ public interface PricingExpressionOrBuilder extends
    *
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
-  java.util.List 
+  java.util.List
       getTieredRatesOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -101,72 +134,89 @@ com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTieredRatesOr
       int index);
 
   /**
+   *
+   *
    * 
    * The unit of usage in human readable form.
    * Example: "gibi byte".
    * 
* * string usage_unit_description = 4; + * * @return The usageUnitDescription. */ java.lang.String getUsageUnitDescription(); /** + * + * *
    * The unit of usage in human readable form.
    * Example: "gibi byte".
    * 
* * string usage_unit_description = 4; + * * @return The bytes for usageUnitDescription. */ - com.google.protobuf.ByteString - getUsageUnitDescriptionBytes(); + com.google.protobuf.ByteString getUsageUnitDescriptionBytes(); /** + * + * *
    * The base unit for the SKU which is the unit used in usage exports.
    * Example: "By"
    * 
* * string base_unit = 5; + * * @return The baseUnit. */ java.lang.String getBaseUnit(); /** + * + * *
    * The base unit for the SKU which is the unit used in usage exports.
    * Example: "By"
    * 
* * string base_unit = 5; + * * @return The bytes for baseUnit. */ - com.google.protobuf.ByteString - getBaseUnitBytes(); + com.google.protobuf.ByteString getBaseUnitBytes(); /** + * + * *
    * The base unit in human readable form.
    * Example: "byte".
    * 
* * string base_unit_description = 6; + * * @return The baseUnitDescription. */ java.lang.String getBaseUnitDescription(); /** + * + * *
    * The base unit in human readable form.
    * Example: "byte".
    * 
* * string base_unit_description = 6; + * * @return The bytes for baseUnitDescription. */ - com.google.protobuf.ByteString - getBaseUnitDescriptionBytes(); + com.google.protobuf.ByteString getBaseUnitDescriptionBytes(); /** + * + * *
    * Conversion factor for converting from price per usage_unit to price per
    * base_unit, and start_usage_amount to start_usage_amount in base_unit.
@@ -176,6 +226,7 @@ com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTieredRatesOr
    * 
* * double base_unit_conversion_factor = 7; + * * @return The baseUnitConversionFactor. */ double getBaseUnitConversionFactor(); diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java similarity index 73% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java index c76c2a1879f1..1a8b7a064541 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java @@ -1,51 +1,72 @@ +/* + * 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 pricing information for a SKU at a single point of time.
  * 
* * Protobuf type {@code google.cloud.billing.v1.PricingInfo} */ -public final class PricingInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PricingInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.PricingInfo) PricingInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PricingInfo.newBuilder() to construct. private PricingInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PricingInfo() { summary_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PricingInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_PricingInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingInfo_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_PricingInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.PricingInfo.class, com.google.cloud.billing.v1.PricingInfo.Builder.class); + com.google.cloud.billing.v1.PricingInfo.class, + com.google.cloud.billing.v1.PricingInfo.Builder.class); } public static final int EFFECTIVE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp effectiveTime_; /** + * + * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -56,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.Timestamp effective_time = 1; + * * @return Whether the effectiveTime field is set. */ @java.lang.Override @@ -63,6 +85,8 @@ public boolean hasEffectiveTime() { return effectiveTime_ != null; } /** + * + * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -73,13 +97,18 @@ public boolean hasEffectiveTime() {
    * 
* * .google.protobuf.Timestamp effective_time = 1; + * * @return The effectiveTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEffectiveTime() { - return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; + return effectiveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : effectiveTime_; } /** + * + * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -93,19 +122,25 @@ public com.google.protobuf.Timestamp getEffectiveTime() {
    */
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
-    return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_;
+    return effectiveTime_ == null
+        ? com.google.protobuf.Timestamp.getDefaultInstance()
+        : effectiveTime_;
   }
 
   public static final int SUMMARY_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object summary_ = "";
   /**
+   *
+   *
    * 
    * An optional human readable summary of the pricing information, has a
    * maximum length of 256 characters.
    * 
* * string summary = 2; + * * @return The summary. */ @java.lang.Override @@ -114,30 +149,30 @@ public java.lang.String getSummary() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summary_ = s; return s; } } /** + * + * *
    * An optional human readable summary of the pricing information, has a
    * maximum length of 256 characters.
    * 
* * string summary = 2; + * * @return The bytes for summary. */ @java.lang.Override - public com.google.protobuf.ByteString - getSummaryBytes() { + public com.google.protobuf.ByteString getSummaryBytes() { java.lang.Object ref = summary_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); summary_ = b; return b; } else { @@ -148,11 +183,14 @@ public java.lang.String getSummary() { public static final int PRICING_EXPRESSION_FIELD_NUMBER = 3; private com.google.cloud.billing.v1.PricingExpression pricingExpression_; /** + * + * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; + * * @return Whether the pricingExpression field is set. */ @java.lang.Override @@ -160,18 +198,25 @@ public boolean hasPricingExpression() { return pricingExpression_ != null; } /** + * + * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; + * * @return The pricingExpression. */ @java.lang.Override public com.google.cloud.billing.v1.PricingExpression getPricingExpression() { - return pricingExpression_ == null ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() : pricingExpression_; + return pricingExpression_ == null + ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() + : pricingExpression_; } /** + * + * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
@@ -180,18 +225,23 @@ public com.google.cloud.billing.v1.PricingExpression getPricingExpression() { */ @java.lang.Override public com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressionOrBuilder() { - return pricingExpression_ == null ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() : pricingExpression_; + return pricingExpression_ == null + ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() + : pricingExpression_; } public static final int AGGREGATION_INFO_FIELD_NUMBER = 4; private com.google.cloud.billing.v1.AggregationInfo aggregationInfo_; /** + * + * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
    * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; + * * @return Whether the aggregationInfo field is set. */ @java.lang.Override @@ -199,19 +249,26 @@ public boolean hasAggregationInfo() { return aggregationInfo_ != null; } /** + * + * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
    * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; + * * @return The aggregationInfo. */ @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo getAggregationInfo() { - return aggregationInfo_ == null ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance() : aggregationInfo_; + return aggregationInfo_ == null + ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance() + : aggregationInfo_; } /** + * + * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
@@ -221,12 +278,16 @@ public com.google.cloud.billing.v1.AggregationInfo getAggregationInfo() {
    */
   @java.lang.Override
   public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOrBuilder() {
-    return aggregationInfo_ == null ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance() : aggregationInfo_;
+    return aggregationInfo_ == null
+        ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance()
+        : aggregationInfo_;
   }
 
   public static final int CURRENCY_CONVERSION_RATE_FIELD_NUMBER = 5;
   private double currencyConversionRate_ = 0D;
   /**
+   *
+   *
    * 
    * Conversion rate used for currency conversion, from USD to the currency
    * specified in the request. This includes any surcharge collected for billing
@@ -236,6 +297,7 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
    * 
* * double currency_conversion_rate = 5; + * * @return The currencyConversionRate. */ @java.lang.Override @@ -244,6 +306,7 @@ public double getCurrencyConversionRate() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,8 +318,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (effectiveTime_ != null) { output.writeMessage(1, getEffectiveTime()); } @@ -282,23 +344,19 @@ public int getSerializedSize() { size = 0; if (effectiveTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEffectiveTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEffectiveTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, summary_); } if (pricingExpression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPricingExpression()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPricingExpression()); } if (aggregationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAggregationInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAggregationInfo()); } if (java.lang.Double.doubleToRawLongBits(currencyConversionRate_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(5, currencyConversionRate_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, currencyConversionRate_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -308,7 +366,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.PricingInfo)) { return super.equals(obj); @@ -317,24 +375,19 @@ public boolean equals(final java.lang.Object obj) { if (hasEffectiveTime() != other.hasEffectiveTime()) return false; if (hasEffectiveTime()) { - if (!getEffectiveTime() - .equals(other.getEffectiveTime())) return false; + if (!getEffectiveTime().equals(other.getEffectiveTime())) return false; } - if (!getSummary() - .equals(other.getSummary())) return false; + if (!getSummary().equals(other.getSummary())) return false; if (hasPricingExpression() != other.hasPricingExpression()) return false; if (hasPricingExpression()) { - if (!getPricingExpression() - .equals(other.getPricingExpression())) return false; + if (!getPricingExpression().equals(other.getPricingExpression())) return false; } if (hasAggregationInfo() != other.hasAggregationInfo()) return false; if (hasAggregationInfo()) { - if (!getAggregationInfo() - .equals(other.getAggregationInfo())) return false; + if (!getAggregationInfo().equals(other.getAggregationInfo())) return false; } if (java.lang.Double.doubleToLongBits(getCurrencyConversionRate()) - != java.lang.Double.doubleToLongBits( - other.getCurrencyConversionRate())) return false; + != java.lang.Double.doubleToLongBits(other.getCurrencyConversionRate())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -361,139 +414,145 @@ public int hashCode() { hash = (53 * hash) + getAggregationInfo().hashCode(); } hash = (37 * hash) + CURRENCY_CONVERSION_RATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getCurrencyConversionRate())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCurrencyConversionRate())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.billing.v1.PricingInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.PricingInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.PricingInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.PricingInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.PricingInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.PricingInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.PricingInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.PricingInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.PricingInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.PricingInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.PricingInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.PricingInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.PricingInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.PricingInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.PricingInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the pricing information for a SKU at a single point of time.
    * 
* * Protobuf type {@code google.cloud.billing.v1.PricingInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.PricingInfo) com.google.cloud.billing.v1.PricingInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_PricingInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingInfo_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_PricingInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.PricingInfo.class, com.google.cloud.billing.v1.PricingInfo.Builder.class); + com.google.cloud.billing.v1.PricingInfo.class, + com.google.cloud.billing.v1.PricingInfo.Builder.class); } // Construct using com.google.cloud.billing.v1.PricingInfo.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -519,9 +578,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_PricingInfo_descriptor; } @java.lang.Override @@ -540,8 +599,11 @@ public com.google.cloud.billing.v1.PricingInfo build() { @java.lang.Override public com.google.cloud.billing.v1.PricingInfo buildPartial() { - com.google.cloud.billing.v1.PricingInfo result = new com.google.cloud.billing.v1.PricingInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.v1.PricingInfo result = + new com.google.cloud.billing.v1.PricingInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -549,22 +611,21 @@ public com.google.cloud.billing.v1.PricingInfo buildPartial() { private void buildPartial0(com.google.cloud.billing.v1.PricingInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.effectiveTime_ = effectiveTimeBuilder_ == null - ? effectiveTime_ - : effectiveTimeBuilder_.build(); + result.effectiveTime_ = + effectiveTimeBuilder_ == null ? effectiveTime_ : effectiveTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.summary_ = summary_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.pricingExpression_ = pricingExpressionBuilder_ == null - ? pricingExpression_ - : pricingExpressionBuilder_.build(); + result.pricingExpression_ = + pricingExpressionBuilder_ == null + ? pricingExpression_ + : pricingExpressionBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.aggregationInfo_ = aggregationInfoBuilder_ == null - ? aggregationInfo_ - : aggregationInfoBuilder_.build(); + result.aggregationInfo_ = + aggregationInfoBuilder_ == null ? aggregationInfo_ : aggregationInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.currencyConversionRate_ = currencyConversionRate_; @@ -575,38 +636,39 @@ private void buildPartial0(com.google.cloud.billing.v1.PricingInfo result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.PricingInfo) { - return mergeFrom((com.google.cloud.billing.v1.PricingInfo)other); + return mergeFrom((com.google.cloud.billing.v1.PricingInfo) other); } else { super.mergeFrom(other); return this; @@ -658,43 +720,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getEffectiveTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - summary_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getPricingExpressionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getAggregationInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 41: { - currencyConversionRate_ = input.readDouble(); - bitField0_ |= 0x00000010; - break; - } // case 41 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getEffectiveTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + summary_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getPricingExpressionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getAggregationInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 41: + { + currencyConversionRate_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -704,12 +767,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp effectiveTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> effectiveTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + effectiveTimeBuilder_; /** + * + * *
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -720,12 +789,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Timestamp effective_time = 1; + * * @return Whether the effectiveTime field is set. */ public boolean hasEffectiveTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -736,16 +808,21 @@ public boolean hasEffectiveTime() {
      * 
* * .google.protobuf.Timestamp effective_time = 1; + * * @return The effectiveTime. */ public com.google.protobuf.Timestamp getEffectiveTime() { if (effectiveTimeBuilder_ == null) { - return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; + return effectiveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : effectiveTime_; } else { return effectiveTimeBuilder_.getMessage(); } } /** + * + * *
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -771,6 +848,8 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -782,8 +861,7 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp effective_time = 1;
      */
-    public Builder setEffectiveTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (effectiveTimeBuilder_ == null) {
         effectiveTime_ = builderForValue.build();
       } else {
@@ -794,6 +872,8 @@ public Builder setEffectiveTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -807,9 +887,9 @@ public Builder setEffectiveTime(
      */
     public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) {
       if (effectiveTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          effectiveTime_ != null &&
-          effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && effectiveTime_ != null
+            && effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEffectiveTimeBuilder().mergeFrom(value);
         } else {
           effectiveTime_ = value;
@@ -822,6 +902,8 @@ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -844,6 +926,8 @@ public Builder clearEffectiveTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -861,6 +945,8 @@ public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder() {
       return getEffectiveTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -876,11 +962,14 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
       if (effectiveTimeBuilder_ != null) {
         return effectiveTimeBuilder_.getMessageOrBuilder();
       } else {
-        return effectiveTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_;
+        return effectiveTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : effectiveTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -893,14 +982,17 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
      * .google.protobuf.Timestamp effective_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEffectiveTimeFieldBuilder() {
       if (effectiveTimeBuilder_ == null) {
-        effectiveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEffectiveTime(),
-                getParentForChildren(),
-                isClean());
+        effectiveTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEffectiveTime(), getParentForChildren(), isClean());
         effectiveTime_ = null;
       }
       return effectiveTimeBuilder_;
@@ -908,19 +1000,21 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
 
     private java.lang.Object summary_ = "";
     /**
+     *
+     *
      * 
      * An optional human readable summary of the pricing information, has a
      * maximum length of 256 characters.
      * 
* * string summary = 2; + * * @return The summary. */ public java.lang.String getSummary() { java.lang.Object ref = summary_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summary_ = s; return s; @@ -929,21 +1023,22 @@ public java.lang.String getSummary() { } } /** + * + * *
      * An optional human readable summary of the pricing information, has a
      * maximum length of 256 characters.
      * 
* * string summary = 2; + * * @return The bytes for summary. */ - public com.google.protobuf.ByteString - getSummaryBytes() { + public com.google.protobuf.ByteString getSummaryBytes() { java.lang.Object ref = summary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); summary_ = b; return b; } else { @@ -951,30 +1046,37 @@ public java.lang.String getSummary() { } } /** + * + * *
      * An optional human readable summary of the pricing information, has a
      * maximum length of 256 characters.
      * 
* * string summary = 2; + * * @param value The summary to set. * @return This builder for chaining. */ - public Builder setSummary( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } summary_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * An optional human readable summary of the pricing information, has a
      * maximum length of 256 characters.
      * 
* * string summary = 2; + * * @return This builder for chaining. */ public Builder clearSummary() { @@ -984,18 +1086,22 @@ public Builder clearSummary() { return this; } /** + * + * *
      * An optional human readable summary of the pricing information, has a
      * maximum length of 256 characters.
      * 
* * string summary = 2; + * * @param value The bytes for summary to set. * @return This builder for chaining. */ - public Builder setSummaryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); summary_ = value; bitField0_ |= 0x00000002; @@ -1005,34 +1111,47 @@ public Builder setSummaryBytes( private com.google.cloud.billing.v1.PricingExpression pricingExpression_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.PricingExpression, com.google.cloud.billing.v1.PricingExpression.Builder, com.google.cloud.billing.v1.PricingExpressionOrBuilder> pricingExpressionBuilder_; + com.google.cloud.billing.v1.PricingExpression, + com.google.cloud.billing.v1.PricingExpression.Builder, + com.google.cloud.billing.v1.PricingExpressionOrBuilder> + pricingExpressionBuilder_; /** + * + * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; + * * @return Whether the pricingExpression field is set. */ public boolean hasPricingExpression() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; + * * @return The pricingExpression. */ public com.google.cloud.billing.v1.PricingExpression getPricingExpression() { if (pricingExpressionBuilder_ == null) { - return pricingExpression_ == null ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() : pricingExpression_; + return pricingExpression_ == null + ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() + : pricingExpression_; } else { return pricingExpressionBuilder_.getMessage(); } } /** + * + * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1053,6 +1172,8 @@ public Builder setPricingExpression(com.google.cloud.billing.v1.PricingExpressio return this; } /** + * + * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1071,6 +1192,8 @@ public Builder setPricingExpression( return this; } /** + * + * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1079,9 +1202,10 @@ public Builder setPricingExpression( */ public Builder mergePricingExpression(com.google.cloud.billing.v1.PricingExpression value) { if (pricingExpressionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - pricingExpression_ != null && - pricingExpression_ != com.google.cloud.billing.v1.PricingExpression.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && pricingExpression_ != null + && pricingExpression_ + != com.google.cloud.billing.v1.PricingExpression.getDefaultInstance()) { getPricingExpressionBuilder().mergeFrom(value); } else { pricingExpression_ = value; @@ -1094,6 +1218,8 @@ public Builder mergePricingExpression(com.google.cloud.billing.v1.PricingExpress return this; } /** + * + * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1111,6 +1237,8 @@ public Builder clearPricingExpression() { return this; } /** + * + * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1123,6 +1251,8 @@ public com.google.cloud.billing.v1.PricingExpression.Builder getPricingExpressio return getPricingExpressionFieldBuilder().getBuilder(); } /** + * + * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1133,11 +1263,14 @@ public com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressi if (pricingExpressionBuilder_ != null) { return pricingExpressionBuilder_.getMessageOrBuilder(); } else { - return pricingExpression_ == null ? - com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() : pricingExpression_; + return pricingExpression_ == null + ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() + : pricingExpression_; } } /** + * + * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1145,14 +1278,17 @@ public com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressi * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.PricingExpression, com.google.cloud.billing.v1.PricingExpression.Builder, com.google.cloud.billing.v1.PricingExpressionOrBuilder> + com.google.cloud.billing.v1.PricingExpression, + com.google.cloud.billing.v1.PricingExpression.Builder, + com.google.cloud.billing.v1.PricingExpressionOrBuilder> getPricingExpressionFieldBuilder() { if (pricingExpressionBuilder_ == null) { - pricingExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.PricingExpression, com.google.cloud.billing.v1.PricingExpression.Builder, com.google.cloud.billing.v1.PricingExpressionOrBuilder>( - getPricingExpression(), - getParentForChildren(), - isClean()); + pricingExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.v1.PricingExpression, + com.google.cloud.billing.v1.PricingExpression.Builder, + com.google.cloud.billing.v1.PricingExpressionOrBuilder>( + getPricingExpression(), getParentForChildren(), isClean()); pricingExpression_ = null; } return pricingExpressionBuilder_; @@ -1160,36 +1296,49 @@ public com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressi private com.google.cloud.billing.v1.AggregationInfo aggregationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.AggregationInfo, com.google.cloud.billing.v1.AggregationInfo.Builder, com.google.cloud.billing.v1.AggregationInfoOrBuilder> aggregationInfoBuilder_; + com.google.cloud.billing.v1.AggregationInfo, + com.google.cloud.billing.v1.AggregationInfo.Builder, + com.google.cloud.billing.v1.AggregationInfoOrBuilder> + aggregationInfoBuilder_; /** + * + * *
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
      * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; + * * @return Whether the aggregationInfo field is set. */ public boolean hasAggregationInfo() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
      * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; + * * @return The aggregationInfo. */ public com.google.cloud.billing.v1.AggregationInfo getAggregationInfo() { if (aggregationInfoBuilder_ == null) { - return aggregationInfo_ == null ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance() : aggregationInfo_; + return aggregationInfo_ == null + ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance() + : aggregationInfo_; } else { return aggregationInfoBuilder_.getMessage(); } } /** + * + * *
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1211,6 +1360,8 @@ public Builder setAggregationInfo(com.google.cloud.billing.v1.AggregationInfo va
       return this;
     }
     /**
+     *
+     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1230,6 +1381,8 @@ public Builder setAggregationInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1239,9 +1392,10 @@ public Builder setAggregationInfo(
      */
     public Builder mergeAggregationInfo(com.google.cloud.billing.v1.AggregationInfo value) {
       if (aggregationInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          aggregationInfo_ != null &&
-          aggregationInfo_ != com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && aggregationInfo_ != null
+            && aggregationInfo_
+                != com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance()) {
           getAggregationInfoBuilder().mergeFrom(value);
         } else {
           aggregationInfo_ = value;
@@ -1254,6 +1408,8 @@ public Builder mergeAggregationInfo(com.google.cloud.billing.v1.AggregationInfo
       return this;
     }
     /**
+     *
+     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1272,6 +1428,8 @@ public Builder clearAggregationInfo() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1285,6 +1443,8 @@ public com.google.cloud.billing.v1.AggregationInfo.Builder getAggregationInfoBui
       return getAggregationInfoFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1296,11 +1456,14 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
       if (aggregationInfoBuilder_ != null) {
         return aggregationInfoBuilder_.getMessageOrBuilder();
       } else {
-        return aggregationInfo_ == null ?
-            com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance() : aggregationInfo_;
+        return aggregationInfo_ == null
+            ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance()
+            : aggregationInfo_;
       }
     }
     /**
+     *
+     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1309,21 +1472,26 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
      * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.billing.v1.AggregationInfo, com.google.cloud.billing.v1.AggregationInfo.Builder, com.google.cloud.billing.v1.AggregationInfoOrBuilder> 
+            com.google.cloud.billing.v1.AggregationInfo,
+            com.google.cloud.billing.v1.AggregationInfo.Builder,
+            com.google.cloud.billing.v1.AggregationInfoOrBuilder>
         getAggregationInfoFieldBuilder() {
       if (aggregationInfoBuilder_ == null) {
-        aggregationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.v1.AggregationInfo, com.google.cloud.billing.v1.AggregationInfo.Builder, com.google.cloud.billing.v1.AggregationInfoOrBuilder>(
-                getAggregationInfo(),
-                getParentForChildren(),
-                isClean());
+        aggregationInfoBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.billing.v1.AggregationInfo,
+                com.google.cloud.billing.v1.AggregationInfo.Builder,
+                com.google.cloud.billing.v1.AggregationInfoOrBuilder>(
+                getAggregationInfo(), getParentForChildren(), isClean());
         aggregationInfo_ = null;
       }
       return aggregationInfoBuilder_;
     }
 
-    private double currencyConversionRate_ ;
+    private double currencyConversionRate_;
     /**
+     *
+     *
      * 
      * Conversion rate used for currency conversion, from USD to the currency
      * specified in the request. This includes any surcharge collected for billing
@@ -1333,6 +1501,7 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
      * 
* * double currency_conversion_rate = 5; + * * @return The currencyConversionRate. */ @java.lang.Override @@ -1340,6 +1509,8 @@ public double getCurrencyConversionRate() { return currencyConversionRate_; } /** + * + * *
      * Conversion rate used for currency conversion, from USD to the currency
      * specified in the request. This includes any surcharge collected for billing
@@ -1349,6 +1520,7 @@ public double getCurrencyConversionRate() {
      * 
* * double currency_conversion_rate = 5; + * * @param value The currencyConversionRate to set. * @return This builder for chaining. */ @@ -1360,6 +1532,8 @@ public Builder setCurrencyConversionRate(double value) { return this; } /** + * + * *
      * Conversion rate used for currency conversion, from USD to the currency
      * specified in the request. This includes any surcharge collected for billing
@@ -1369,6 +1543,7 @@ public Builder setCurrencyConversionRate(double value) {
      * 
* * double currency_conversion_rate = 5; + * * @return This builder for chaining. */ public Builder clearCurrencyConversionRate() { @@ -1377,9 +1552,9 @@ public Builder clearCurrencyConversionRate() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1389,12 +1564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.PricingInfo) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.PricingInfo) private static final com.google.cloud.billing.v1.PricingInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.PricingInfo(); } @@ -1403,27 +1578,27 @@ public static com.google.cloud.billing.v1.PricingInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PricingInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PricingInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1438,6 +1613,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.PricingInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java similarity index 84% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java index c7ac5c8a9b7f..f73658296ba7 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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 interface PricingInfoOrBuilder extends +public interface PricingInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.PricingInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -18,10 +36,13 @@ public interface PricingInfoOrBuilder extends
    * 
* * .google.protobuf.Timestamp effective_time = 1; + * * @return Whether the effectiveTime field is set. */ boolean hasEffectiveTime(); /** + * + * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -32,10 +53,13 @@ public interface PricingInfoOrBuilder extends
    * 
* * .google.protobuf.Timestamp effective_time = 1; + * * @return The effectiveTime. */ com.google.protobuf.Timestamp getEffectiveTime(); /** + * + * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -50,46 +74,59 @@ public interface PricingInfoOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * An optional human readable summary of the pricing information, has a
    * maximum length of 256 characters.
    * 
* * string summary = 2; + * * @return The summary. */ java.lang.String getSummary(); /** + * + * *
    * An optional human readable summary of the pricing information, has a
    * maximum length of 256 characters.
    * 
* * string summary = 2; + * * @return The bytes for summary. */ - com.google.protobuf.ByteString - getSummaryBytes(); + com.google.protobuf.ByteString getSummaryBytes(); /** + * + * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; + * * @return Whether the pricingExpression field is set. */ boolean hasPricingExpression(); /** + * + * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; + * * @return The pricingExpression. */ com.google.cloud.billing.v1.PricingExpression getPricingExpression(); /** + * + * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
@@ -99,26 +136,34 @@ public interface PricingInfoOrBuilder extends com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressionOrBuilder(); /** + * + * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
    * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; + * * @return Whether the aggregationInfo field is set. */ boolean hasAggregationInfo(); /** + * + * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
    * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; + * * @return The aggregationInfo. */ com.google.cloud.billing.v1.AggregationInfo getAggregationInfo(); /** + * + * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
@@ -129,6 +174,8 @@ public interface PricingInfoOrBuilder extends
   com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOrBuilder();
 
   /**
+   *
+   *
    * 
    * Conversion rate used for currency conversion, from USD to the currency
    * specified in the request. This includes any surcharge collected for billing
@@ -138,6 +185,7 @@ public interface PricingInfoOrBuilder extends
    * 
* * double currency_conversion_rate = 5; + * * @return The currencyConversionRate. */ double getCurrencyConversionRate(); diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java similarity index 74% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java index ec2a2c094992..ab0fc4b06a3e 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java @@ -1,9 +1,26 @@ +/* + * 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; /** + * + * *
  * Encapsulation of billing information for a Google Cloud Console project. A
  * project has at most one associated billing account at a time (but a billing
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.billing.v1.ProjectBillingInfo}
  */
-public final class ProjectBillingInfo extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ProjectBillingInfo extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ProjectBillingInfo)
     ProjectBillingInfoOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ProjectBillingInfo.newBuilder() to construct.
   private ProjectBillingInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ProjectBillingInfo() {
     name_ = "";
     projectId_ = "";
@@ -29,28 +47,32 @@ private ProjectBillingInfo() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ProjectBillingInfo();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.billing.v1.CloudBillingProto
+        .internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable
+    return com.google.cloud.billing.v1.CloudBillingProto
+        .internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.billing.v1.ProjectBillingInfo.class, com.google.cloud.billing.v1.ProjectBillingInfo.Builder.class);
+            com.google.cloud.billing.v1.ProjectBillingInfo.class,
+            com.google.cloud.billing.v1.ProjectBillingInfo.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. The resource name for the `ProjectBillingInfo`; has the form
    * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -59,6 +81,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -67,14 +90,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name for the `ProjectBillingInfo`; has the form
    * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -83,16 +107,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -101,9 +124,12 @@ public java.lang.String getName() { } public static final int PROJECT_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** + * + * *
    * Output only. The ID of the project that this `ProjectBillingInfo`
    * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -111,6 +137,7 @@ public java.lang.String getName() {
    * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The projectId. */ @java.lang.Override @@ -119,14 +146,15 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * Output only. The ID of the project that this `ProjectBillingInfo`
    * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -134,16 +162,15 @@ public java.lang.String getProjectId() {
    * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -152,15 +179,19 @@ public java.lang.String getProjectId() { } public static final int BILLING_ACCOUNT_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object billingAccountName_ = ""; /** + * + * *
    * The resource name of the billing account associated with the project, if
    * any. For example, `billingAccounts/012345-567890-ABCDEF`.
    * 
* * string billing_account_name = 3; + * * @return The billingAccountName. */ @java.lang.Override @@ -169,30 +200,30 @@ public java.lang.String getBillingAccountName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); billingAccountName_ = s; return s; } } /** + * + * *
    * The resource name of the billing account associated with the project, if
    * any. For example, `billingAccounts/012345-567890-ABCDEF`.
    * 
* * string billing_account_name = 3; + * * @return The bytes for billingAccountName. */ @java.lang.Override - public com.google.protobuf.ByteString - getBillingAccountNameBytes() { + public com.google.protobuf.ByteString getBillingAccountNameBytes() { java.lang.Object ref = billingAccountName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); billingAccountName_ = b; return b; } else { @@ -203,6 +234,8 @@ public java.lang.String getBillingAccountName() { public static final int BILLING_ENABLED_FIELD_NUMBER = 4; private boolean billingEnabled_ = false; /** + * + * *
    * Output only. True if the project is associated with an open billing
    * account, to which usage on the project is charged. False if the project is
@@ -211,6 +244,7 @@ public java.lang.String getBillingAccountName() {
    * 
* * bool billing_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The billingEnabled. */ @java.lang.Override @@ -219,6 +253,7 @@ public boolean getBillingEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,8 +265,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -263,8 +297,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, billingAccountName_); } if (billingEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, billingEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, billingEnabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -274,21 +307,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ProjectBillingInfo)) { return super.equals(obj); } - com.google.cloud.billing.v1.ProjectBillingInfo other = (com.google.cloud.billing.v1.ProjectBillingInfo) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getBillingAccountName() - .equals(other.getBillingAccountName())) return false; - if (getBillingEnabled() - != other.getBillingEnabled()) return false; + com.google.cloud.billing.v1.ProjectBillingInfo other = + (com.google.cloud.billing.v1.ProjectBillingInfo) obj; + + if (!getName().equals(other.getName())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getBillingAccountName().equals(other.getBillingAccountName())) return false; + if (getBillingEnabled() != other.getBillingEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,106 +337,110 @@ public int hashCode() { hash = (37 * hash) + BILLING_ACCOUNT_NAME_FIELD_NUMBER; hash = (53 * hash) + getBillingAccountName().hashCode(); hash = (37 * hash) + BILLING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBillingEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBillingEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.ProjectBillingInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.billing.v1.ProjectBillingInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.ProjectBillingInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.ProjectBillingInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.ProjectBillingInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Encapsulation of billing information for a Google Cloud Console project. A
    * project has at most one associated billing account at a time (but a billing
@@ -415,33 +449,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.v1.ProjectBillingInfo}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ProjectBillingInfo)
       com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.v1.CloudBillingProto
+          .internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable
+      return com.google.cloud.billing.v1.CloudBillingProto
+          .internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.v1.ProjectBillingInfo.class, com.google.cloud.billing.v1.ProjectBillingInfo.Builder.class);
+              com.google.cloud.billing.v1.ProjectBillingInfo.class,
+              com.google.cloud.billing.v1.ProjectBillingInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.v1.ProjectBillingInfo.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -454,9 +487,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.v1.CloudBillingProto
+          .internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
     }
 
     @java.lang.Override
@@ -475,8 +508,11 @@ public com.google.cloud.billing.v1.ProjectBillingInfo build() {
 
     @java.lang.Override
     public com.google.cloud.billing.v1.ProjectBillingInfo buildPartial() {
-      com.google.cloud.billing.v1.ProjectBillingInfo result = new com.google.cloud.billing.v1.ProjectBillingInfo(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.billing.v1.ProjectBillingInfo result =
+          new com.google.cloud.billing.v1.ProjectBillingInfo(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -501,38 +537,39 @@ private void buildPartial0(com.google.cloud.billing.v1.ProjectBillingInfo result
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.billing.v1.ProjectBillingInfo) {
-        return mergeFrom((com.google.cloud.billing.v1.ProjectBillingInfo)other);
+        return mergeFrom((com.google.cloud.billing.v1.ProjectBillingInfo) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -585,32 +622,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              projectId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              billingAccountName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              billingEnabled_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                projectId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                billingAccountName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                billingEnabled_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -620,10 +662,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name for the `ProjectBillingInfo`; has the form
      * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -632,13 +677,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -647,6 +692,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for the `ProjectBillingInfo`; has the form
      * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -655,15 +702,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -671,6 +717,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name for the `ProjectBillingInfo`; has the form
      * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -679,18 +727,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name for the `ProjectBillingInfo`; has the form
      * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -699,6 +751,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -708,6 +761,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name for the `ProjectBillingInfo`; has the form
      * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -716,12 +771,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -731,6 +788,8 @@ public Builder setNameBytes( private java.lang.Object projectId_ = ""; /** + * + * *
      * Output only. The ID of the project that this `ProjectBillingInfo`
      * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -738,13 +797,13 @@ public Builder setNameBytes(
      * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -753,6 +812,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Output only. The ID of the project that this `ProjectBillingInfo`
      * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -760,15 +821,14 @@ public java.lang.String getProjectId() {
      * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -776,6 +836,8 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Output only. The ID of the project that this `ProjectBillingInfo`
      * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -783,18 +845,22 @@ public java.lang.String getProjectId() {
      * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } projectId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. The ID of the project that this `ProjectBillingInfo`
      * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -802,6 +868,7 @@ public Builder setProjectId(
      * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -811,6 +878,8 @@ public Builder clearProjectId() { return this; } /** + * + * *
      * Output only. The ID of the project that this `ProjectBillingInfo`
      * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -818,12 +887,14 @@ public Builder clearProjectId() {
      * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000002; @@ -833,19 +904,21 @@ public Builder setProjectIdBytes( private java.lang.Object billingAccountName_ = ""; /** + * + * *
      * The resource name of the billing account associated with the project, if
      * any. For example, `billingAccounts/012345-567890-ABCDEF`.
      * 
* * string billing_account_name = 3; + * * @return The billingAccountName. */ public java.lang.String getBillingAccountName() { java.lang.Object ref = billingAccountName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); billingAccountName_ = s; return s; @@ -854,21 +927,22 @@ public java.lang.String getBillingAccountName() { } } /** + * + * *
      * The resource name of the billing account associated with the project, if
      * any. For example, `billingAccounts/012345-567890-ABCDEF`.
      * 
* * string billing_account_name = 3; + * * @return The bytes for billingAccountName. */ - public com.google.protobuf.ByteString - getBillingAccountNameBytes() { + public com.google.protobuf.ByteString getBillingAccountNameBytes() { java.lang.Object ref = billingAccountName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); billingAccountName_ = b; return b; } else { @@ -876,30 +950,37 @@ public java.lang.String getBillingAccountName() { } } /** + * + * *
      * The resource name of the billing account associated with the project, if
      * any. For example, `billingAccounts/012345-567890-ABCDEF`.
      * 
* * string billing_account_name = 3; + * * @param value The billingAccountName to set. * @return This builder for chaining. */ - public Builder setBillingAccountName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBillingAccountName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } billingAccountName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The resource name of the billing account associated with the project, if
      * any. For example, `billingAccounts/012345-567890-ABCDEF`.
      * 
* * string billing_account_name = 3; + * * @return This builder for chaining. */ public Builder clearBillingAccountName() { @@ -909,18 +990,22 @@ public Builder clearBillingAccountName() { return this; } /** + * + * *
      * The resource name of the billing account associated with the project, if
      * any. For example, `billingAccounts/012345-567890-ABCDEF`.
      * 
* * string billing_account_name = 3; + * * @param value The bytes for billingAccountName to set. * @return This builder for chaining. */ - public Builder setBillingAccountNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBillingAccountNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); billingAccountName_ = value; bitField0_ |= 0x00000004; @@ -928,8 +1013,10 @@ public Builder setBillingAccountNameBytes( return this; } - private boolean billingEnabled_ ; + private boolean billingEnabled_; /** + * + * *
      * Output only. True if the project is associated with an open billing
      * account, to which usage on the project is charged. False if the project is
@@ -938,6 +1025,7 @@ public Builder setBillingAccountNameBytes(
      * 
* * bool billing_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The billingEnabled. */ @java.lang.Override @@ -945,6 +1033,8 @@ public boolean getBillingEnabled() { return billingEnabled_; } /** + * + * *
      * Output only. True if the project is associated with an open billing
      * account, to which usage on the project is charged. False if the project is
@@ -953,6 +1043,7 @@ public boolean getBillingEnabled() {
      * 
* * bool billing_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The billingEnabled to set. * @return This builder for chaining. */ @@ -964,6 +1055,8 @@ public Builder setBillingEnabled(boolean value) { return this; } /** + * + * *
      * Output only. True if the project is associated with an open billing
      * account, to which usage on the project is charged. False if the project is
@@ -972,6 +1065,7 @@ public Builder setBillingEnabled(boolean value) {
      * 
* * bool billing_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearBillingEnabled() { @@ -980,9 +1074,9 @@ public Builder clearBillingEnabled() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -992,12 +1086,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.ProjectBillingInfo) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.ProjectBillingInfo) private static final com.google.cloud.billing.v1.ProjectBillingInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.ProjectBillingInfo(); } @@ -1006,27 +1100,27 @@ public static com.google.cloud.billing.v1.ProjectBillingInfo getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectBillingInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectBillingInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1041,6 +1135,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ProjectBillingInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java similarity index 76% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java index a89726210187..6731c9d52cee 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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 ProjectBillingInfoOrBuilder extends +public interface ProjectBillingInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ProjectBillingInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name for the `ProjectBillingInfo`; has the form
    * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -16,10 +34,13 @@ public interface ProjectBillingInfoOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name for the `ProjectBillingInfo`; has the form
    * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -28,12 +49,14 @@ public interface ProjectBillingInfoOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The ID of the project that this `ProjectBillingInfo`
    * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -41,10 +64,13 @@ public interface ProjectBillingInfoOrBuilder extends
    * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Output only. The ID of the project that this `ProjectBillingInfo`
    * represents, such as `tokyo-rain-123`. This is a convenience field so that
@@ -52,34 +78,41 @@ public interface ProjectBillingInfoOrBuilder extends
    * 
* * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
    * The resource name of the billing account associated with the project, if
    * any. For example, `billingAccounts/012345-567890-ABCDEF`.
    * 
* * string billing_account_name = 3; + * * @return The billingAccountName. */ java.lang.String getBillingAccountName(); /** + * + * *
    * The resource name of the billing account associated with the project, if
    * any. For example, `billingAccounts/012345-567890-ABCDEF`.
    * 
* * string billing_account_name = 3; + * * @return The bytes for billingAccountName. */ - com.google.protobuf.ByteString - getBillingAccountNameBytes(); + com.google.protobuf.ByteString getBillingAccountNameBytes(); /** + * + * *
    * Output only. True if the project is associated with an open billing
    * account, to which usage on the project is charged. False if the project is
@@ -88,6 +121,7 @@ public interface ProjectBillingInfoOrBuilder extends
    * 
* * bool billing_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The billingEnabled. */ boolean getBillingEnabled(); diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectName.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectName.java similarity index 100% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectName.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectName.java diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java similarity index 70% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java index 26b3445ce0b6..67caabae9d4f 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java @@ -1,24 +1,42 @@ +/* + * 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; /** + * + * *
  * Encapsulates a single service in Google Cloud Platform.
  * 
* * Protobuf type {@code google.cloud.billing.v1.Service} */ -public final class Service extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Service extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.Service) ServiceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Service.newBuilder() to construct. private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Service() { name_ = ""; serviceId_ = ""; @@ -28,34 +46,39 @@ private Service() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Service(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Service_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Service_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Service_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Service_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.Service.class, com.google.cloud.billing.v1.Service.Builder.class); + com.google.cloud.billing.v1.Service.class, + com.google.cloud.billing.v1.Service.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name for the service.
    * Example: "services/DA34-426B-A397"
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -64,30 +87,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name for the service.
    * Example: "services/DA34-426B-A397"
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,15 +119,19 @@ public java.lang.String getName() { } public static final int SERVICE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object serviceId_ = ""; /** + * + * *
    * The identifier for the service.
    * Example: "DA34-426B-A397"
    * 
* * string service_id = 2; + * * @return The serviceId. */ @java.lang.Override @@ -113,30 +140,30 @@ public java.lang.String getServiceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceId_ = s; return s; } } /** + * + * *
    * The identifier for the service.
    * Example: "DA34-426B-A397"
    * 
* * string service_id = 2; + * * @return The bytes for serviceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceIdBytes() { + public com.google.protobuf.ByteString getServiceIdBytes() { java.lang.Object ref = serviceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceId_ = b; return b; } else { @@ -145,14 +172,18 @@ public java.lang.String getServiceId() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * A human readable display name for this service.
    * 
* * string display_name = 3; + * * @return The displayName. */ @java.lang.Override @@ -161,29 +192,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * A human readable display name for this service.
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -192,15 +223,19 @@ public java.lang.String getDisplayName() { } public static final int BUSINESS_ENTITY_NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object businessEntityName_ = ""; /** + * + * *
    * The business under which the service is offered.
    * Ex. "businessEntities/GCP", "businessEntities/Maps"
    * 
* * string business_entity_name = 4; + * * @return The businessEntityName. */ @java.lang.Override @@ -209,30 +244,30 @@ public java.lang.String getBusinessEntityName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); businessEntityName_ = s; return s; } } /** + * + * *
    * The business under which the service is offered.
    * Ex. "businessEntities/GCP", "businessEntities/Maps"
    * 
* * string business_entity_name = 4; + * * @return The bytes for businessEntityName. */ @java.lang.Override - public com.google.protobuf.ByteString - getBusinessEntityNameBytes() { + public com.google.protobuf.ByteString getBusinessEntityNameBytes() { java.lang.Object ref = businessEntityName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); businessEntityName_ = b; return b; } else { @@ -241,6 +276,7 @@ public java.lang.String getBusinessEntityName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,8 +288,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -295,21 +330,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.Service)) { return super.equals(obj); } com.google.cloud.billing.v1.Service other = (com.google.cloud.billing.v1.Service) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getServiceId() - .equals(other.getServiceId())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getBusinessEntityName() - .equals(other.getBusinessEntityName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getServiceId().equals(other.getServiceId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getBusinessEntityName().equals(other.getBusinessEntityName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -334,132 +365,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.Service parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.Service parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.Service parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.Service parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.billing.v1.Service parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.Service parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.Service parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.Service parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.Service parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.Service parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.cloud.billing.v1.Service parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.Service parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.Service parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.Service parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.Service prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Encapsulates a single service in Google Cloud Platform.
    * 
* * Protobuf type {@code google.cloud.billing.v1.Service} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.Service) com.google.cloud.billing.v1.ServiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Service_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Service_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Service_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Service_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.Service.class, com.google.cloud.billing.v1.Service.Builder.class); + com.google.cloud.billing.v1.Service.class, + com.google.cloud.billing.v1.Service.Builder.class); } // Construct using com.google.cloud.billing.v1.Service.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -472,9 +506,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Service_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Service_descriptor; } @java.lang.Override @@ -494,7 +528,9 @@ public com.google.cloud.billing.v1.Service build() { @java.lang.Override public com.google.cloud.billing.v1.Service buildPartial() { com.google.cloud.billing.v1.Service result = new com.google.cloud.billing.v1.Service(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -519,38 +555,39 @@ private void buildPartial0(com.google.cloud.billing.v1.Service result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.Service) { - return mergeFrom((com.google.cloud.billing.v1.Service)other); + return mergeFrom((com.google.cloud.billing.v1.Service) other); } else { super.mergeFrom(other); return this; @@ -605,32 +642,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - serviceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - businessEntityName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + serviceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + businessEntityName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -640,23 +682,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name for the service.
      * Example: "services/DA34-426B-A397"
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -665,21 +710,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name for the service.
      * Example: "services/DA34-426B-A397"
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -687,30 +733,37 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name for the service.
      * Example: "services/DA34-426B-A397"
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name for the service.
      * Example: "services/DA34-426B-A397"
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -720,18 +773,22 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name for the service.
      * Example: "services/DA34-426B-A397"
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -741,19 +798,21 @@ public Builder setNameBytes( private java.lang.Object serviceId_ = ""; /** + * + * *
      * The identifier for the service.
      * Example: "DA34-426B-A397"
      * 
* * string service_id = 2; + * * @return The serviceId. */ public java.lang.String getServiceId() { java.lang.Object ref = serviceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceId_ = s; return s; @@ -762,21 +821,22 @@ public java.lang.String getServiceId() { } } /** + * + * *
      * The identifier for the service.
      * Example: "DA34-426B-A397"
      * 
* * string service_id = 2; + * * @return The bytes for serviceId. */ - public com.google.protobuf.ByteString - getServiceIdBytes() { + public com.google.protobuf.ByteString getServiceIdBytes() { java.lang.Object ref = serviceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceId_ = b; return b; } else { @@ -784,30 +844,37 @@ public java.lang.String getServiceId() { } } /** + * + * *
      * The identifier for the service.
      * Example: "DA34-426B-A397"
      * 
* * string service_id = 2; + * * @param value The serviceId to set. * @return This builder for chaining. */ - public Builder setServiceId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The identifier for the service.
      * Example: "DA34-426B-A397"
      * 
* * string service_id = 2; + * * @return This builder for chaining. */ public Builder clearServiceId() { @@ -817,18 +884,22 @@ public Builder clearServiceId() { return this; } /** + * + * *
      * The identifier for the service.
      * Example: "DA34-426B-A397"
      * 
* * string service_id = 2; + * * @param value The bytes for serviceId to set. * @return This builder for chaining. */ - public Builder setServiceIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceId_ = value; bitField0_ |= 0x00000002; @@ -838,18 +909,20 @@ public Builder setServiceIdBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * A human readable display name for this service.
      * 
* * string display_name = 3; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -858,20 +931,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A human readable display name for this service.
      * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -879,28 +953,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A human readable display name for this service.
      * 
* * string display_name = 3; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A human readable display name for this service.
      * 
* * string display_name = 3; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -910,17 +991,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * A human readable display name for this service.
      * 
* * string display_name = 3; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -930,19 +1015,21 @@ public Builder setDisplayNameBytes( private java.lang.Object businessEntityName_ = ""; /** + * + * *
      * The business under which the service is offered.
      * Ex. "businessEntities/GCP", "businessEntities/Maps"
      * 
* * string business_entity_name = 4; + * * @return The businessEntityName. */ public java.lang.String getBusinessEntityName() { java.lang.Object ref = businessEntityName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); businessEntityName_ = s; return s; @@ -951,21 +1038,22 @@ public java.lang.String getBusinessEntityName() { } } /** + * + * *
      * The business under which the service is offered.
      * Ex. "businessEntities/GCP", "businessEntities/Maps"
      * 
* * string business_entity_name = 4; + * * @return The bytes for businessEntityName. */ - public com.google.protobuf.ByteString - getBusinessEntityNameBytes() { + public com.google.protobuf.ByteString getBusinessEntityNameBytes() { java.lang.Object ref = businessEntityName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); businessEntityName_ = b; return b; } else { @@ -973,30 +1061,37 @@ public java.lang.String getBusinessEntityName() { } } /** + * + * *
      * The business under which the service is offered.
      * Ex. "businessEntities/GCP", "businessEntities/Maps"
      * 
* * string business_entity_name = 4; + * * @param value The businessEntityName to set. * @return This builder for chaining. */ - public Builder setBusinessEntityName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBusinessEntityName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } businessEntityName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The business under which the service is offered.
      * Ex. "businessEntities/GCP", "businessEntities/Maps"
      * 
* * string business_entity_name = 4; + * * @return This builder for chaining. */ public Builder clearBusinessEntityName() { @@ -1006,27 +1101,31 @@ public Builder clearBusinessEntityName() { return this; } /** + * + * *
      * The business under which the service is offered.
      * Ex. "businessEntities/GCP", "businessEntities/Maps"
      * 
* * string business_entity_name = 4; + * * @param value The bytes for businessEntityName to set. * @return This builder for chaining. */ - public Builder setBusinessEntityNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBusinessEntityNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); businessEntityName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1036,12 +1135,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.Service) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.Service) private static final com.google.cloud.billing.v1.Service DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.Service(); } @@ -1050,27 +1149,27 @@ public static com.google.cloud.billing.v1.Service getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Service parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Service parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1085,6 +1184,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.Service getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java similarity index 100% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java similarity index 66% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java index 88ca18ce0a6a..4991fbd63f01 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java @@ -1,95 +1,131 @@ +/* + * 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 interface ServiceOrBuilder extends +public interface ServiceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.Service) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name for the service.
    * Example: "services/DA34-426B-A397"
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name for the service.
    * Example: "services/DA34-426B-A397"
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The identifier for the service.
    * Example: "DA34-426B-A397"
    * 
* * string service_id = 2; + * * @return The serviceId. */ java.lang.String getServiceId(); /** + * + * *
    * The identifier for the service.
    * Example: "DA34-426B-A397"
    * 
* * string service_id = 2; + * * @return The bytes for serviceId. */ - com.google.protobuf.ByteString - getServiceIdBytes(); + com.google.protobuf.ByteString getServiceIdBytes(); /** + * + * *
    * A human readable display name for this service.
    * 
* * string display_name = 3; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * A human readable display name for this service.
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The business under which the service is offered.
    * Ex. "businessEntities/GCP", "businessEntities/Maps"
    * 
* * string business_entity_name = 4; + * * @return The businessEntityName. */ java.lang.String getBusinessEntityName(); /** + * + * *
    * The business under which the service is offered.
    * Ex. "businessEntities/GCP", "businessEntities/Maps"
    * 
* * string business_entity_name = 4; + * * @return The bytes for businessEntityName. */ - com.google.protobuf.ByteString - getBusinessEntityNameBytes(); + com.google.protobuf.ByteString getBusinessEntityNameBytes(); } diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java similarity index 74% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java index 1db9f933931f..48a3badb93ac 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java @@ -1,64 +1,85 @@ +/* + * 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; /** + * + * *
  * Encapsulates a single SKU in Google Cloud Platform
  * 
* * Protobuf type {@code google.cloud.billing.v1.Sku} */ -public final class Sku extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Sku extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.Sku) SkuOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Sku.newBuilder() to construct. private Sku(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Sku() { name_ = ""; skuId_ = ""; description_ = ""; - serviceRegions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + serviceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); pricingInfo_ = java.util.Collections.emptyList(); serviceProviderName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Sku(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Sku_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.billing.v1.Sku.class, com.google.cloud.billing.v1.Sku.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name for the SKU.
    * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -67,30 +88,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name for the SKU.
    * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,15 +120,19 @@ public java.lang.String getName() { } public static final int SKU_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object skuId_ = ""; /** + * + * *
    * The identifier for the SKU.
    * Example: "AA95-CD31-42FE"
    * 
* * string sku_id = 2; + * * @return The skuId. */ @java.lang.Override @@ -116,30 +141,30 @@ public java.lang.String getSkuId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); skuId_ = s; return s; } } /** + * + * *
    * The identifier for the SKU.
    * Example: "AA95-CD31-42FE"
    * 
* * string sku_id = 2; + * * @return The bytes for skuId. */ @java.lang.Override - public com.google.protobuf.ByteString - getSkuIdBytes() { + public com.google.protobuf.ByteString getSkuIdBytes() { java.lang.Object ref = skuId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); skuId_ = b; return b; } else { @@ -148,15 +173,19 @@ public java.lang.String getSkuId() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * A human readable description of the SKU, has a maximum length of 256
    * characters.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -165,30 +194,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A human readable description of the SKU, has a maximum length of 256
    * characters.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -199,11 +228,14 @@ public java.lang.String getDescription() { public static final int CATEGORY_FIELD_NUMBER = 4; private com.google.cloud.billing.v1.Category category_; /** + * + * *
    * The category hierarchy of this SKU, purely for organizational purpose.
    * 
* * .google.cloud.billing.v1.Category category = 4; + * * @return Whether the category field is set. */ @java.lang.Override @@ -211,18 +243,25 @@ public boolean hasCategory() { return category_ != null; } /** + * + * *
    * The category hierarchy of this SKU, purely for organizational purpose.
    * 
* * .google.cloud.billing.v1.Category category = 4; + * * @return The category. */ @java.lang.Override public com.google.cloud.billing.v1.Category getCategory() { - return category_ == null ? com.google.cloud.billing.v1.Category.getDefaultInstance() : category_; + return category_ == null + ? com.google.cloud.billing.v1.Category.getDefaultInstance() + : category_; } /** + * + * *
    * The category hierarchy of this SKU, purely for organizational purpose.
    * 
@@ -231,14 +270,19 @@ public com.google.cloud.billing.v1.Category getCategory() { */ @java.lang.Override public com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder() { - return category_ == null ? com.google.cloud.billing.v1.Category.getDefaultInstance() : category_; + return category_ == null + ? com.google.cloud.billing.v1.Category.getDefaultInstance() + : category_; } public static final int SERVICE_REGIONS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList serviceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -246,13 +290,15 @@ public com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder() {
    * 
* * repeated string service_regions = 5; + * * @return A list containing the serviceRegions. */ - public com.google.protobuf.ProtocolStringList - getServiceRegionsList() { + public com.google.protobuf.ProtocolStringList getServiceRegionsList() { return serviceRegions_; } /** + * + * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -260,12 +306,15 @@ public com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder() {
    * 
* * repeated string service_regions = 5; + * * @return The count of serviceRegions. */ public int getServiceRegionsCount() { return serviceRegions_.size(); } /** + * + * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -273,6 +322,7 @@ public int getServiceRegionsCount() {
    * 
* * repeated string service_regions = 5; + * * @param index The index of the element to return. * @return The serviceRegions at the given index. */ @@ -280,6 +330,8 @@ public java.lang.String getServiceRegions(int index) { return serviceRegions_.get(index); } /** + * + * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -287,18 +339,21 @@ public java.lang.String getServiceRegions(int index) {
    * 
* * repeated string service_regions = 5; + * * @param index The index of the value to return. * @return The bytes of the serviceRegions at the given index. */ - public com.google.protobuf.ByteString - getServiceRegionsBytes(int index) { + public com.google.protobuf.ByteString getServiceRegionsBytes(int index) { return serviceRegions_.getByteString(index); } public static final int PRICING_INFO_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private java.util.List pricingInfo_; /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -310,6 +365,8 @@ public java.util.List getPricingInfoLis return pricingInfo_; } /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -317,11 +374,13 @@ public java.util.List getPricingInfoLis * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ @java.lang.Override - public java.util.List + public java.util.List getPricingInfoOrBuilderList() { return pricingInfo_; } /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -333,6 +392,8 @@ public int getPricingInfoCount() { return pricingInfo_.size(); } /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -344,6 +405,8 @@ public com.google.cloud.billing.v1.PricingInfo getPricingInfo(int index) { return pricingInfo_.get(index); } /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -351,21 +414,24 @@ public com.google.cloud.billing.v1.PricingInfo getPricingInfo(int index) { * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ @java.lang.Override - public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( - int index) { + public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder(int index) { return pricingInfo_.get(index); } public static final int SERVICE_PROVIDER_NAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object serviceProviderName_ = ""; /** + * + * *
    * Identifies the service provider.
    * This is 'Google' for first party services in Google Cloud Platform.
    * 
* * string service_provider_name = 7; + * * @return The serviceProviderName. */ @java.lang.Override @@ -374,30 +440,30 @@ public java.lang.String getServiceProviderName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceProviderName_ = s; return s; } } /** + * + * *
    * Identifies the service provider.
    * This is 'Google' for first party services in Google Cloud Platform.
    * 
* * string service_provider_name = 7; + * * @return The bytes for serviceProviderName. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceProviderNameBytes() { + public com.google.protobuf.ByteString getServiceProviderNameBytes() { java.lang.Object ref = serviceProviderName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceProviderName_ = b; return b; } else { @@ -408,11 +474,14 @@ public java.lang.String getServiceProviderName() { public static final int GEO_TAXONOMY_FIELD_NUMBER = 8; private com.google.cloud.billing.v1.GeoTaxonomy geoTaxonomy_; /** + * + * *
    * The geographic taxonomy for this sku.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; + * * @return Whether the geoTaxonomy field is set. */ @java.lang.Override @@ -420,18 +489,25 @@ public boolean hasGeoTaxonomy() { return geoTaxonomy_ != null; } /** + * + * *
    * The geographic taxonomy for this sku.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; + * * @return The geoTaxonomy. */ @java.lang.Override public com.google.cloud.billing.v1.GeoTaxonomy getGeoTaxonomy() { - return geoTaxonomy_ == null ? com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() : geoTaxonomy_; + return geoTaxonomy_ == null + ? com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() + : geoTaxonomy_; } /** + * + * *
    * The geographic taxonomy for this sku.
    * 
@@ -440,10 +516,13 @@ public com.google.cloud.billing.v1.GeoTaxonomy getGeoTaxonomy() { */ @java.lang.Override public com.google.cloud.billing.v1.GeoTaxonomyOrBuilder getGeoTaxonomyOrBuilder() { - return geoTaxonomy_ == null ? com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() : geoTaxonomy_; + return geoTaxonomy_ == null + ? com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() + : geoTaxonomy_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -455,8 +534,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -500,8 +578,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (category_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCategory()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCategory()); } { int dataSize = 0; @@ -512,15 +589,13 @@ public int getSerializedSize() { size += 1 * getServiceRegionsList().size(); } for (int i = 0; i < pricingInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, pricingInfo_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, pricingInfo_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceProviderName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serviceProviderName_); } if (geoTaxonomy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getGeoTaxonomy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getGeoTaxonomy()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -530,34 +605,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.Sku)) { return super.equals(obj); } com.google.cloud.billing.v1.Sku other = (com.google.cloud.billing.v1.Sku) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getSkuId() - .equals(other.getSkuId())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getSkuId().equals(other.getSkuId())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasCategory() != other.hasCategory()) return false; if (hasCategory()) { - if (!getCategory() - .equals(other.getCategory())) return false; - } - if (!getServiceRegionsList() - .equals(other.getServiceRegionsList())) return false; - if (!getPricingInfoList() - .equals(other.getPricingInfoList())) return false; - if (!getServiceProviderName() - .equals(other.getServiceProviderName())) return false; + if (!getCategory().equals(other.getCategory())) return false; + } + if (!getServiceRegionsList().equals(other.getServiceRegionsList())) return false; + if (!getPricingInfoList().equals(other.getPricingInfoList())) return false; + if (!getServiceProviderName().equals(other.getServiceProviderName())) return false; if (hasGeoTaxonomy() != other.hasGeoTaxonomy()) return false; if (hasGeoTaxonomy()) { - if (!getGeoTaxonomy() - .equals(other.getGeoTaxonomy())) return false; + if (!getGeoTaxonomy().equals(other.getGeoTaxonomy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -599,132 +666,134 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.Sku parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.Sku parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.Sku parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.Sku parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.billing.v1.Sku parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.Sku parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.Sku parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.Sku parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.Sku parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.Sku parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.cloud.billing.v1.Sku parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.billing.v1.Sku parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.Sku parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.Sku parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.Sku prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Encapsulates a single SKU in Google Cloud Platform
    * 
* * Protobuf type {@code google.cloud.billing.v1.Sku} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.Sku) com.google.cloud.billing.v1.SkuOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Sku_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.billing.v1.Sku.class, com.google.cloud.billing.v1.Sku.Builder.class); } // Construct using com.google.cloud.billing.v1.Sku.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -737,8 +806,7 @@ public Builder clear() { categoryBuilder_.dispose(); categoryBuilder_ = null; } - serviceRegions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + serviceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (pricingInfoBuilder_ == null) { pricingInfo_ = java.util.Collections.emptyList(); } else { @@ -756,9 +824,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Sku_descriptor; } @java.lang.Override @@ -779,7 +847,9 @@ public com.google.cloud.billing.v1.Sku build() { public com.google.cloud.billing.v1.Sku buildPartial() { com.google.cloud.billing.v1.Sku result = new com.google.cloud.billing.v1.Sku(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -808,9 +878,7 @@ private void buildPartial0(com.google.cloud.billing.v1.Sku result) { result.description_ = description_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.category_ = categoryBuilder_ == null - ? category_ - : categoryBuilder_.build(); + result.category_ = categoryBuilder_ == null ? category_ : categoryBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { serviceRegions_.makeImmutable(); @@ -820,9 +888,8 @@ private void buildPartial0(com.google.cloud.billing.v1.Sku result) { result.serviceProviderName_ = serviceProviderName_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.geoTaxonomy_ = geoTaxonomyBuilder_ == null - ? geoTaxonomy_ - : geoTaxonomyBuilder_.build(); + result.geoTaxonomy_ = + geoTaxonomyBuilder_ == null ? geoTaxonomy_ : geoTaxonomyBuilder_.build(); } } @@ -830,38 +897,39 @@ private void buildPartial0(com.google.cloud.billing.v1.Sku result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.Sku) { - return mergeFrom((com.google.cloud.billing.v1.Sku)other); + return mergeFrom((com.google.cloud.billing.v1.Sku) other); } else { super.mergeFrom(other); return this; @@ -916,9 +984,10 @@ public Builder mergeFrom(com.google.cloud.billing.v1.Sku other) { pricingInfoBuilder_ = null; pricingInfo_ = other.pricingInfo_; bitField0_ = (bitField0_ & ~0x00000020); - pricingInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPricingInfoFieldBuilder() : null; + pricingInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPricingInfoFieldBuilder() + : null; } else { pricingInfoBuilder_.addAllMessages(other.pricingInfo_); } @@ -958,65 +1027,69 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - skuId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getCategoryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - ensureServiceRegionsIsMutable(); - serviceRegions_.add(s); - break; - } // case 42 - case 50: { - com.google.cloud.billing.v1.PricingInfo m = - input.readMessage( - com.google.cloud.billing.v1.PricingInfo.parser(), - extensionRegistry); - if (pricingInfoBuilder_ == null) { - ensurePricingInfoIsMutable(); - pricingInfo_.add(m); - } else { - pricingInfoBuilder_.addMessage(m); - } - break; - } // case 50 - case 58: { - serviceProviderName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - input.readMessage( - getGeoTaxonomyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + skuId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getCategoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureServiceRegionsIsMutable(); + serviceRegions_.add(s); + break; + } // case 42 + case 50: + { + com.google.cloud.billing.v1.PricingInfo m = + input.readMessage( + com.google.cloud.billing.v1.PricingInfo.parser(), extensionRegistry); + if (pricingInfoBuilder_ == null) { + ensurePricingInfoIsMutable(); + pricingInfo_.add(m); + } else { + pricingInfoBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + serviceProviderName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage(getGeoTaxonomyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1026,23 +1099,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name for the SKU.
      * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1051,21 +1127,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name for the SKU.
      * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1073,30 +1150,37 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name for the SKU.
      * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name for the SKU.
      * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1106,18 +1190,22 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name for the SKU.
      * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1127,19 +1215,21 @@ public Builder setNameBytes( private java.lang.Object skuId_ = ""; /** + * + * *
      * The identifier for the SKU.
      * Example: "AA95-CD31-42FE"
      * 
* * string sku_id = 2; + * * @return The skuId. */ public java.lang.String getSkuId() { java.lang.Object ref = skuId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); skuId_ = s; return s; @@ -1148,21 +1238,22 @@ public java.lang.String getSkuId() { } } /** + * + * *
      * The identifier for the SKU.
      * Example: "AA95-CD31-42FE"
      * 
* * string sku_id = 2; + * * @return The bytes for skuId. */ - public com.google.protobuf.ByteString - getSkuIdBytes() { + public com.google.protobuf.ByteString getSkuIdBytes() { java.lang.Object ref = skuId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); skuId_ = b; return b; } else { @@ -1170,30 +1261,37 @@ public java.lang.String getSkuId() { } } /** + * + * *
      * The identifier for the SKU.
      * Example: "AA95-CD31-42FE"
      * 
* * string sku_id = 2; + * * @param value The skuId to set. * @return This builder for chaining. */ - public Builder setSkuId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSkuId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } skuId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The identifier for the SKU.
      * Example: "AA95-CD31-42FE"
      * 
* * string sku_id = 2; + * * @return This builder for chaining. */ public Builder clearSkuId() { @@ -1203,18 +1301,22 @@ public Builder clearSkuId() { return this; } /** + * + * *
      * The identifier for the SKU.
      * Example: "AA95-CD31-42FE"
      * 
* * string sku_id = 2; + * * @param value The bytes for skuId to set. * @return This builder for chaining. */ - public Builder setSkuIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSkuIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); skuId_ = value; bitField0_ |= 0x00000002; @@ -1224,19 +1326,21 @@ public Builder setSkuIdBytes( private java.lang.Object description_ = ""; /** + * + * *
      * A human readable description of the SKU, has a maximum length of 256
      * characters.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1245,21 +1349,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A human readable description of the SKU, has a maximum length of 256
      * characters.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1267,30 +1372,37 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A human readable description of the SKU, has a maximum length of 256
      * characters.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A human readable description of the SKU, has a maximum length of 256
      * characters.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1300,18 +1412,22 @@ public Builder clearDescription() { return this; } /** + * + * *
      * A human readable description of the SKU, has a maximum length of 256
      * characters.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; @@ -1321,34 +1437,47 @@ public Builder setDescriptionBytes( private com.google.cloud.billing.v1.Category category_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.Category, com.google.cloud.billing.v1.Category.Builder, com.google.cloud.billing.v1.CategoryOrBuilder> categoryBuilder_; + com.google.cloud.billing.v1.Category, + com.google.cloud.billing.v1.Category.Builder, + com.google.cloud.billing.v1.CategoryOrBuilder> + categoryBuilder_; /** + * + * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
* * .google.cloud.billing.v1.Category category = 4; + * * @return Whether the category field is set. */ public boolean hasCategory() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
* * .google.cloud.billing.v1.Category category = 4; + * * @return The category. */ public com.google.cloud.billing.v1.Category getCategory() { if (categoryBuilder_ == null) { - return category_ == null ? com.google.cloud.billing.v1.Category.getDefaultInstance() : category_; + return category_ == null + ? com.google.cloud.billing.v1.Category.getDefaultInstance() + : category_; } else { return categoryBuilder_.getMessage(); } } /** + * + * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1369,14 +1498,15 @@ public Builder setCategory(com.google.cloud.billing.v1.Category value) { return this; } /** + * + * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
* * .google.cloud.billing.v1.Category category = 4; */ - public Builder setCategory( - com.google.cloud.billing.v1.Category.Builder builderForValue) { + public Builder setCategory(com.google.cloud.billing.v1.Category.Builder builderForValue) { if (categoryBuilder_ == null) { category_ = builderForValue.build(); } else { @@ -1387,6 +1517,8 @@ public Builder setCategory( return this; } /** + * + * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1395,9 +1527,9 @@ public Builder setCategory( */ public Builder mergeCategory(com.google.cloud.billing.v1.Category value) { if (categoryBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - category_ != null && - category_ != com.google.cloud.billing.v1.Category.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && category_ != null + && category_ != com.google.cloud.billing.v1.Category.getDefaultInstance()) { getCategoryBuilder().mergeFrom(value); } else { category_ = value; @@ -1410,6 +1542,8 @@ public Builder mergeCategory(com.google.cloud.billing.v1.Category value) { return this; } /** + * + * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1427,6 +1561,8 @@ public Builder clearCategory() { return this; } /** + * + * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1439,6 +1575,8 @@ public com.google.cloud.billing.v1.Category.Builder getCategoryBuilder() { return getCategoryFieldBuilder().getBuilder(); } /** + * + * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1449,11 +1587,14 @@ public com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder() { if (categoryBuilder_ != null) { return categoryBuilder_.getMessageOrBuilder(); } else { - return category_ == null ? - com.google.cloud.billing.v1.Category.getDefaultInstance() : category_; + return category_ == null + ? com.google.cloud.billing.v1.Category.getDefaultInstance() + : category_; } } /** + * + * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1461,14 +1602,17 @@ public com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder() { * .google.cloud.billing.v1.Category category = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.Category, com.google.cloud.billing.v1.Category.Builder, com.google.cloud.billing.v1.CategoryOrBuilder> + com.google.cloud.billing.v1.Category, + com.google.cloud.billing.v1.Category.Builder, + com.google.cloud.billing.v1.CategoryOrBuilder> getCategoryFieldBuilder() { if (categoryBuilder_ == null) { - categoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.Category, com.google.cloud.billing.v1.Category.Builder, com.google.cloud.billing.v1.CategoryOrBuilder>( - getCategory(), - getParentForChildren(), - isClean()); + categoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.v1.Category, + com.google.cloud.billing.v1.Category.Builder, + com.google.cloud.billing.v1.CategoryOrBuilder>( + getCategory(), getParentForChildren(), isClean()); category_ = null; } return categoryBuilder_; @@ -1476,6 +1620,7 @@ public com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder() { private com.google.protobuf.LazyStringArrayList serviceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureServiceRegionsIsMutable() { if (!serviceRegions_.isModifiable()) { serviceRegions_ = new com.google.protobuf.LazyStringArrayList(serviceRegions_); @@ -1483,6 +1628,8 @@ private void ensureServiceRegionsIsMutable() { bitField0_ |= 0x00000010; } /** + * + * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1490,14 +1637,16 @@ private void ensureServiceRegionsIsMutable() {
      * 
* * repeated string service_regions = 5; + * * @return A list containing the serviceRegions. */ - public com.google.protobuf.ProtocolStringList - getServiceRegionsList() { + public com.google.protobuf.ProtocolStringList getServiceRegionsList() { serviceRegions_.makeImmutable(); return serviceRegions_; } /** + * + * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1505,12 +1654,15 @@ private void ensureServiceRegionsIsMutable() {
      * 
* * repeated string service_regions = 5; + * * @return The count of serviceRegions. */ public int getServiceRegionsCount() { return serviceRegions_.size(); } /** + * + * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1518,6 +1670,7 @@ public int getServiceRegionsCount() {
      * 
* * repeated string service_regions = 5; + * * @param index The index of the element to return. * @return The serviceRegions at the given index. */ @@ -1525,6 +1678,8 @@ public java.lang.String getServiceRegions(int index) { return serviceRegions_.get(index); } /** + * + * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1532,14 +1687,16 @@ public java.lang.String getServiceRegions(int index) {
      * 
* * repeated string service_regions = 5; + * * @param index The index of the value to return. * @return The bytes of the serviceRegions at the given index. */ - public com.google.protobuf.ByteString - getServiceRegionsBytes(int index) { + public com.google.protobuf.ByteString getServiceRegionsBytes(int index) { return serviceRegions_.getByteString(index); } /** + * + * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1547,13 +1704,15 @@ public java.lang.String getServiceRegions(int index) {
      * 
* * repeated string service_regions = 5; + * * @param index The index to set the value at. * @param value The serviceRegions to set. * @return This builder for chaining. */ - public Builder setServiceRegions( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceRegions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServiceRegionsIsMutable(); serviceRegions_.set(index, value); bitField0_ |= 0x00000010; @@ -1561,6 +1720,8 @@ public Builder setServiceRegions( return this; } /** + * + * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1568,12 +1729,14 @@ public Builder setServiceRegions(
      * 
* * repeated string service_regions = 5; + * * @param value The serviceRegions to add. * @return This builder for chaining. */ - public Builder addServiceRegions( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServiceRegions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServiceRegionsIsMutable(); serviceRegions_.add(value); bitField0_ |= 0x00000010; @@ -1581,6 +1744,8 @@ public Builder addServiceRegions( return this; } /** + * + * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1588,19 +1753,20 @@ public Builder addServiceRegions(
      * 
* * repeated string service_regions = 5; + * * @param values The serviceRegions to add. * @return This builder for chaining. */ - public Builder addAllServiceRegions( - java.lang.Iterable values) { + public Builder addAllServiceRegions(java.lang.Iterable values) { ensureServiceRegionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serviceRegions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceRegions_); bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1608,16 +1774,19 @@ public Builder addAllServiceRegions(
      * 
* * repeated string service_regions = 5; + * * @return This builder for chaining. */ public Builder clearServiceRegions() { - serviceRegions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010);; + serviceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; onChanged(); return this; } /** + * + * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1625,12 +1794,14 @@ public Builder clearServiceRegions() {
      * 
* * repeated string service_regions = 5; + * * @param value The bytes of the serviceRegions to add. * @return This builder for chaining. */ - public Builder addServiceRegionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServiceRegionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureServiceRegionsIsMutable(); serviceRegions_.add(value); @@ -1640,18 +1811,25 @@ public Builder addServiceRegionsBytes( } private java.util.List pricingInfo_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePricingInfoIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { - pricingInfo_ = new java.util.ArrayList(pricingInfo_); + pricingInfo_ = + new java.util.ArrayList(pricingInfo_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.PricingInfo, com.google.cloud.billing.v1.PricingInfo.Builder, com.google.cloud.billing.v1.PricingInfoOrBuilder> pricingInfoBuilder_; + com.google.cloud.billing.v1.PricingInfo, + com.google.cloud.billing.v1.PricingInfo.Builder, + com.google.cloud.billing.v1.PricingInfoOrBuilder> + pricingInfoBuilder_; /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1666,6 +1844,8 @@ public java.util.List getPricingInfoLis } } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1680,6 +1860,8 @@ public int getPricingInfoCount() { } } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1694,14 +1876,15 @@ public com.google.cloud.billing.v1.PricingInfo getPricingInfo(int index) { } } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public Builder setPricingInfo( - int index, com.google.cloud.billing.v1.PricingInfo value) { + public Builder setPricingInfo(int index, com.google.cloud.billing.v1.PricingInfo value) { if (pricingInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1715,6 +1898,8 @@ public Builder setPricingInfo( return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1733,6 +1918,8 @@ public Builder setPricingInfo( return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1753,14 +1940,15 @@ public Builder addPricingInfo(com.google.cloud.billing.v1.PricingInfo value) { return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public Builder addPricingInfo( - int index, com.google.cloud.billing.v1.PricingInfo value) { + public Builder addPricingInfo(int index, com.google.cloud.billing.v1.PricingInfo value) { if (pricingInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1774,14 +1962,15 @@ public Builder addPricingInfo( return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public Builder addPricingInfo( - com.google.cloud.billing.v1.PricingInfo.Builder builderForValue) { + public Builder addPricingInfo(com.google.cloud.billing.v1.PricingInfo.Builder builderForValue) { if (pricingInfoBuilder_ == null) { ensurePricingInfoIsMutable(); pricingInfo_.add(builderForValue.build()); @@ -1792,6 +1981,8 @@ public Builder addPricingInfo( return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1810,6 +2001,8 @@ public Builder addPricingInfo( return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1820,8 +2013,7 @@ public Builder addAllPricingInfo( java.lang.Iterable values) { if (pricingInfoBuilder_ == null) { ensurePricingInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pricingInfo_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pricingInfo_); onChanged(); } else { pricingInfoBuilder_.addAllMessages(values); @@ -1829,6 +2021,8 @@ public Builder addAllPricingInfo( return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1846,6 +2040,8 @@ public Builder clearPricingInfo() { return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1863,39 +2059,44 @@ public Builder removePricingInfo(int index) { return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public com.google.cloud.billing.v1.PricingInfo.Builder getPricingInfoBuilder( - int index) { + public com.google.cloud.billing.v1.PricingInfo.Builder getPricingInfoBuilder(int index) { return getPricingInfoFieldBuilder().getBuilder(index); } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( - int index) { + public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder(int index) { if (pricingInfoBuilder_ == null) { - return pricingInfo_.get(index); } else { + return pricingInfo_.get(index); + } else { return pricingInfoBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public java.util.List - getPricingInfoOrBuilderList() { + public java.util.List + getPricingInfoOrBuilderList() { if (pricingInfoBuilder_ != null) { return pricingInfoBuilder_.getMessageOrBuilderList(); } else { @@ -1903,6 +2104,8 @@ public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( } } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1910,42 +2113,48 @@ public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ public com.google.cloud.billing.v1.PricingInfo.Builder addPricingInfoBuilder() { - return getPricingInfoFieldBuilder().addBuilder( - com.google.cloud.billing.v1.PricingInfo.getDefaultInstance()); + return getPricingInfoFieldBuilder() + .addBuilder(com.google.cloud.billing.v1.PricingInfo.getDefaultInstance()); } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public com.google.cloud.billing.v1.PricingInfo.Builder addPricingInfoBuilder( - int index) { - return getPricingInfoFieldBuilder().addBuilder( - index, com.google.cloud.billing.v1.PricingInfo.getDefaultInstance()); + public com.google.cloud.billing.v1.PricingInfo.Builder addPricingInfoBuilder(int index) { + return getPricingInfoFieldBuilder() + .addBuilder(index, com.google.cloud.billing.v1.PricingInfo.getDefaultInstance()); } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public java.util.List - getPricingInfoBuilderList() { + public java.util.List + getPricingInfoBuilderList() { return getPricingInfoFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.PricingInfo, com.google.cloud.billing.v1.PricingInfo.Builder, com.google.cloud.billing.v1.PricingInfoOrBuilder> + com.google.cloud.billing.v1.PricingInfo, + com.google.cloud.billing.v1.PricingInfo.Builder, + com.google.cloud.billing.v1.PricingInfoOrBuilder> getPricingInfoFieldBuilder() { if (pricingInfoBuilder_ == null) { - pricingInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.PricingInfo, com.google.cloud.billing.v1.PricingInfo.Builder, com.google.cloud.billing.v1.PricingInfoOrBuilder>( - pricingInfo_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); + pricingInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.v1.PricingInfo, + com.google.cloud.billing.v1.PricingInfo.Builder, + com.google.cloud.billing.v1.PricingInfoOrBuilder>( + pricingInfo_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); pricingInfo_ = null; } return pricingInfoBuilder_; @@ -1953,19 +2162,21 @@ public com.google.cloud.billing.v1.PricingInfo.Builder addPricingInfoBuilder( private java.lang.Object serviceProviderName_ = ""; /** + * + * *
      * Identifies the service provider.
      * This is 'Google' for first party services in Google Cloud Platform.
      * 
* * string service_provider_name = 7; + * * @return The serviceProviderName. */ public java.lang.String getServiceProviderName() { java.lang.Object ref = serviceProviderName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceProviderName_ = s; return s; @@ -1974,21 +2185,22 @@ public java.lang.String getServiceProviderName() { } } /** + * + * *
      * Identifies the service provider.
      * This is 'Google' for first party services in Google Cloud Platform.
      * 
* * string service_provider_name = 7; + * * @return The bytes for serviceProviderName. */ - public com.google.protobuf.ByteString - getServiceProviderNameBytes() { + public com.google.protobuf.ByteString getServiceProviderNameBytes() { java.lang.Object ref = serviceProviderName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceProviderName_ = b; return b; } else { @@ -1996,30 +2208,37 @@ public java.lang.String getServiceProviderName() { } } /** + * + * *
      * Identifies the service provider.
      * This is 'Google' for first party services in Google Cloud Platform.
      * 
* * string service_provider_name = 7; + * * @param value The serviceProviderName to set. * @return This builder for chaining. */ - public Builder setServiceProviderName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceProviderName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceProviderName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Identifies the service provider.
      * This is 'Google' for first party services in Google Cloud Platform.
      * 
* * string service_provider_name = 7; + * * @return This builder for chaining. */ public Builder clearServiceProviderName() { @@ -2029,18 +2248,22 @@ public Builder clearServiceProviderName() { return this; } /** + * + * *
      * Identifies the service provider.
      * This is 'Google' for first party services in Google Cloud Platform.
      * 
* * string service_provider_name = 7; + * * @param value The bytes for serviceProviderName to set. * @return This builder for chaining. */ - public Builder setServiceProviderNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceProviderNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceProviderName_ = value; bitField0_ |= 0x00000040; @@ -2050,34 +2273,47 @@ public Builder setServiceProviderNameBytes( private com.google.cloud.billing.v1.GeoTaxonomy geoTaxonomy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.GeoTaxonomy, com.google.cloud.billing.v1.GeoTaxonomy.Builder, com.google.cloud.billing.v1.GeoTaxonomyOrBuilder> geoTaxonomyBuilder_; + com.google.cloud.billing.v1.GeoTaxonomy, + com.google.cloud.billing.v1.GeoTaxonomy.Builder, + com.google.cloud.billing.v1.GeoTaxonomyOrBuilder> + geoTaxonomyBuilder_; /** + * + * *
      * The geographic taxonomy for this sku.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; + * * @return Whether the geoTaxonomy field is set. */ public boolean hasGeoTaxonomy() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * The geographic taxonomy for this sku.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; + * * @return The geoTaxonomy. */ public com.google.cloud.billing.v1.GeoTaxonomy getGeoTaxonomy() { if (geoTaxonomyBuilder_ == null) { - return geoTaxonomy_ == null ? com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() : geoTaxonomy_; + return geoTaxonomy_ == null + ? com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() + : geoTaxonomy_; } else { return geoTaxonomyBuilder_.getMessage(); } } /** + * + * *
      * The geographic taxonomy for this sku.
      * 
@@ -2098,14 +2334,15 @@ public Builder setGeoTaxonomy(com.google.cloud.billing.v1.GeoTaxonomy value) { return this; } /** + * + * *
      * The geographic taxonomy for this sku.
      * 
* * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; */ - public Builder setGeoTaxonomy( - com.google.cloud.billing.v1.GeoTaxonomy.Builder builderForValue) { + public Builder setGeoTaxonomy(com.google.cloud.billing.v1.GeoTaxonomy.Builder builderForValue) { if (geoTaxonomyBuilder_ == null) { geoTaxonomy_ = builderForValue.build(); } else { @@ -2116,6 +2353,8 @@ public Builder setGeoTaxonomy( return this; } /** + * + * *
      * The geographic taxonomy for this sku.
      * 
@@ -2124,9 +2363,9 @@ public Builder setGeoTaxonomy( */ public Builder mergeGeoTaxonomy(com.google.cloud.billing.v1.GeoTaxonomy value) { if (geoTaxonomyBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - geoTaxonomy_ != null && - geoTaxonomy_ != com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && geoTaxonomy_ != null + && geoTaxonomy_ != com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance()) { getGeoTaxonomyBuilder().mergeFrom(value); } else { geoTaxonomy_ = value; @@ -2139,6 +2378,8 @@ public Builder mergeGeoTaxonomy(com.google.cloud.billing.v1.GeoTaxonomy value) { return this; } /** + * + * *
      * The geographic taxonomy for this sku.
      * 
@@ -2156,6 +2397,8 @@ public Builder clearGeoTaxonomy() { return this; } /** + * + * *
      * The geographic taxonomy for this sku.
      * 
@@ -2168,6 +2411,8 @@ public com.google.cloud.billing.v1.GeoTaxonomy.Builder getGeoTaxonomyBuilder() { return getGeoTaxonomyFieldBuilder().getBuilder(); } /** + * + * *
      * The geographic taxonomy for this sku.
      * 
@@ -2178,11 +2423,14 @@ public com.google.cloud.billing.v1.GeoTaxonomyOrBuilder getGeoTaxonomyOrBuilder( if (geoTaxonomyBuilder_ != null) { return geoTaxonomyBuilder_.getMessageOrBuilder(); } else { - return geoTaxonomy_ == null ? - com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() : geoTaxonomy_; + return geoTaxonomy_ == null + ? com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance() + : geoTaxonomy_; } } /** + * + * *
      * The geographic taxonomy for this sku.
      * 
@@ -2190,21 +2438,24 @@ public com.google.cloud.billing.v1.GeoTaxonomyOrBuilder getGeoTaxonomyOrBuilder( * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.GeoTaxonomy, com.google.cloud.billing.v1.GeoTaxonomy.Builder, com.google.cloud.billing.v1.GeoTaxonomyOrBuilder> + com.google.cloud.billing.v1.GeoTaxonomy, + com.google.cloud.billing.v1.GeoTaxonomy.Builder, + com.google.cloud.billing.v1.GeoTaxonomyOrBuilder> getGeoTaxonomyFieldBuilder() { if (geoTaxonomyBuilder_ == null) { - geoTaxonomyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.GeoTaxonomy, com.google.cloud.billing.v1.GeoTaxonomy.Builder, com.google.cloud.billing.v1.GeoTaxonomyOrBuilder>( - getGeoTaxonomy(), - getParentForChildren(), - isClean()); + geoTaxonomyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.v1.GeoTaxonomy, + com.google.cloud.billing.v1.GeoTaxonomy.Builder, + com.google.cloud.billing.v1.GeoTaxonomyOrBuilder>( + getGeoTaxonomy(), getParentForChildren(), isClean()); geoTaxonomy_ = null; } return geoTaxonomyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2214,12 +2465,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.Sku) } // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.Sku) private static final com.google.cloud.billing.v1.Sku DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.billing.v1.Sku(); } @@ -2228,27 +2479,27 @@ public static com.google.cloud.billing.v1.Sku getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Sku parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Sku parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2263,6 +2514,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.Sku getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java similarity index 81% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java index a92a6df199ae..8db06ec0812f 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java @@ -1,97 +1,136 @@ +/* + * 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 interface SkuOrBuilder extends +public interface SkuOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.Sku) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name for the SKU.
    * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name for the SKU.
    * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The identifier for the SKU.
    * Example: "AA95-CD31-42FE"
    * 
* * string sku_id = 2; + * * @return The skuId. */ java.lang.String getSkuId(); /** + * + * *
    * The identifier for the SKU.
    * Example: "AA95-CD31-42FE"
    * 
* * string sku_id = 2; + * * @return The bytes for skuId. */ - com.google.protobuf.ByteString - getSkuIdBytes(); + com.google.protobuf.ByteString getSkuIdBytes(); /** + * + * *
    * A human readable description of the SKU, has a maximum length of 256
    * characters.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A human readable description of the SKU, has a maximum length of 256
    * characters.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The category hierarchy of this SKU, purely for organizational purpose.
    * 
* * .google.cloud.billing.v1.Category category = 4; + * * @return Whether the category field is set. */ boolean hasCategory(); /** + * + * *
    * The category hierarchy of this SKU, purely for organizational purpose.
    * 
* * .google.cloud.billing.v1.Category category = 4; + * * @return The category. */ com.google.cloud.billing.v1.Category getCategory(); /** + * + * *
    * The category hierarchy of this SKU, purely for organizational purpose.
    * 
@@ -101,6 +140,8 @@ public interface SkuOrBuilder extends com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder(); /** + * + * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -108,11 +149,13 @@ public interface SkuOrBuilder extends
    * 
* * repeated string service_regions = 5; + * * @return A list containing the serviceRegions. */ - java.util.List - getServiceRegionsList(); + java.util.List getServiceRegionsList(); /** + * + * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -120,10 +163,13 @@ public interface SkuOrBuilder extends
    * 
* * repeated string service_regions = 5; + * * @return The count of serviceRegions. */ int getServiceRegionsCount(); /** + * + * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -131,11 +177,14 @@ public interface SkuOrBuilder extends
    * 
* * repeated string service_regions = 5; + * * @param index The index of the element to return. * @return The serviceRegions at the given index. */ java.lang.String getServiceRegions(int index); /** + * + * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -143,22 +192,25 @@ public interface SkuOrBuilder extends
    * 
* * repeated string service_regions = 5; + * * @param index The index of the value to return. * @return The bytes of the serviceRegions at the given index. */ - com.google.protobuf.ByteString - getServiceRegionsBytes(int index); + com.google.protobuf.ByteString getServiceRegionsBytes(int index); /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - java.util.List - getPricingInfoList(); + java.util.List getPricingInfoList(); /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -167,6 +219,8 @@ public interface SkuOrBuilder extends */ com.google.cloud.billing.v1.PricingInfo getPricingInfo(int index); /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -175,65 +229,81 @@ public interface SkuOrBuilder extends */ int getPricingInfoCount(); /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - java.util.List + java.util.List getPricingInfoOrBuilderList(); /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( - int index); + com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder(int index); /** + * + * *
    * Identifies the service provider.
    * This is 'Google' for first party services in Google Cloud Platform.
    * 
* * string service_provider_name = 7; + * * @return The serviceProviderName. */ java.lang.String getServiceProviderName(); /** + * + * *
    * Identifies the service provider.
    * This is 'Google' for first party services in Google Cloud Platform.
    * 
* * string service_provider_name = 7; + * * @return The bytes for serviceProviderName. */ - com.google.protobuf.ByteString - getServiceProviderNameBytes(); + com.google.protobuf.ByteString getServiceProviderNameBytes(); /** + * + * *
    * The geographic taxonomy for this sku.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; + * * @return Whether the geoTaxonomy field is set. */ boolean hasGeoTaxonomy(); /** + * + * *
    * The geographic taxonomy for this sku.
    * 
* * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; + * * @return The geoTaxonomy. */ com.google.cloud.billing.v1.GeoTaxonomy getGeoTaxonomy(); /** + * + * *
    * The geographic taxonomy for this sku.
    * 
diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java similarity index 64% rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java index 3d30ce760341..c3ca4c176060 100644 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java @@ -1,57 +1,82 @@ +/* + * 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; /** + * + * *
  * Request message for `UpdateBillingAccount`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.UpdateBillingAccountRequest} */ -public final class UpdateBillingAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateBillingAccountRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.UpdateBillingAccountRequest) UpdateBillingAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateBillingAccountRequest.newBuilder() to construct. private UpdateBillingAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateBillingAccountRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateBillingAccountRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.UpdateBillingAccountRequest.class, com.google.cloud.billing.v1.UpdateBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.UpdateBillingAccountRequest.class, + com.google.cloud.billing.v1.UpdateBillingAccountRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the billing account resource to be updated.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -60,29 +85,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the billing account resource to be updated.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,12 +120,17 @@ public java.lang.String getName() { public static final int ACCOUNT_FIELD_NUMBER = 2; private com.google.cloud.billing.v1.BillingAccount account_; /** + * + * *
    * Required. The billing account resource to replace the resource on the
    * server.
    * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the account field is set. */ @java.lang.Override @@ -106,40 +138,56 @@ public boolean hasAccount() { return account_ != null; } /** + * + * *
    * Required. The billing account resource to replace the resource on the
    * server.
    * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The account. */ @java.lang.Override public com.google.cloud.billing.v1.BillingAccount getAccount() { - return account_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : account_; + return account_ == null + ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() + : account_; } /** + * + * *
    * Required. The billing account resource to replace the resource on the
    * server.
    * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.billing.v1.BillingAccountOrBuilder getAccountOrBuilder() { - return account_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : account_; + return account_ == null + ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() + : account_; } public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The update mask applied to the resource.
    * Only "display_name" is currently supported.
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -147,12 +195,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The update mask applied to the resource.
    * Only "display_name" is currently supported.
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ @java.lang.Override @@ -160,6 +211,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The update mask applied to the resource.
    * Only "display_name" is currently supported.
@@ -173,6 +226,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -184,8 +238,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -208,12 +261,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (account_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getAccount());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAccount());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -223,24 +274,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.billing.v1.UpdateBillingAccountRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.v1.UpdateBillingAccountRequest other = (com.google.cloud.billing.v1.UpdateBillingAccountRequest) obj;
+    com.google.cloud.billing.v1.UpdateBillingAccountRequest other =
+        (com.google.cloud.billing.v1.UpdateBillingAccountRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasAccount() != other.hasAccount()) return false;
     if (hasAccount()) {
-      if (!getAccount()
-          .equals(other.getAccount())) return false;
+      if (!getAccount().equals(other.getAccount())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -269,131 +318,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.v1.UpdateBillingAccountRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.billing.v1.UpdateBillingAccountRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.billing.v1.UpdateBillingAccountRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for `UpdateBillingAccount`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.UpdateBillingAccountRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.UpdateBillingAccountRequest) com.google.cloud.billing.v1.UpdateBillingAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.UpdateBillingAccountRequest.class, com.google.cloud.billing.v1.UpdateBillingAccountRequest.Builder.class); + com.google.cloud.billing.v1.UpdateBillingAccountRequest.class, + com.google.cloud.billing.v1.UpdateBillingAccountRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.UpdateBillingAccountRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +467,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor; } @java.lang.Override @@ -434,8 +488,11 @@ public com.google.cloud.billing.v1.UpdateBillingAccountRequest build() { @java.lang.Override public com.google.cloud.billing.v1.UpdateBillingAccountRequest buildPartial() { - com.google.cloud.billing.v1.UpdateBillingAccountRequest result = new com.google.cloud.billing.v1.UpdateBillingAccountRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.v1.UpdateBillingAccountRequest result = + new com.google.cloud.billing.v1.UpdateBillingAccountRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -446,14 +503,10 @@ private void buildPartial0(com.google.cloud.billing.v1.UpdateBillingAccountReque result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.account_ = accountBuilder_ == null - ? account_ - : accountBuilder_.build(); + result.account_ = accountBuilder_ == null ? account_ : accountBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -461,38 +514,39 @@ private void buildPartial0(com.google.cloud.billing.v1.UpdateBillingAccountReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.UpdateBillingAccountRequest) { - return mergeFrom((com.google.cloud.billing.v1.UpdateBillingAccountRequest)other); + return mergeFrom((com.google.cloud.billing.v1.UpdateBillingAccountRequest) other); } else { super.mergeFrom(other); return this; @@ -500,7 +554,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.UpdateBillingAccountRequest other) { - if (other == com.google.cloud.billing.v1.UpdateBillingAccountRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.UpdateBillingAccountRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -538,31 +593,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getAccountFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAccountFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -572,22 +627,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the billing account resource to be updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -596,20 +656,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the billing account resource to be updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -617,28 +680,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the billing account resource to be updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the billing account resource to be updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -648,17 +722,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the billing account resource to be updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -668,42 +748,61 @@ public Builder setNameBytes( private com.google.cloud.billing.v1.BillingAccount account_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> accountBuilder_; + com.google.cloud.billing.v1.BillingAccount, + com.google.cloud.billing.v1.BillingAccount.Builder, + com.google.cloud.billing.v1.BillingAccountOrBuilder> + accountBuilder_; /** + * + * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the account field is set. */ public boolean hasAccount() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The account. */ public com.google.cloud.billing.v1.BillingAccount getAccount() { if (accountBuilder_ == null) { - return account_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : account_; + return account_ == null + ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() + : account_; } else { return accountBuilder_.getMessage(); } } /** + * + * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAccount(com.google.cloud.billing.v1.BillingAccount value) { if (accountBuilder_ == null) { @@ -719,15 +818,18 @@ public Builder setAccount(com.google.cloud.billing.v1.BillingAccount value) { return this; } /** + * + * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAccount( - com.google.cloud.billing.v1.BillingAccount.Builder builderForValue) { + public Builder setAccount(com.google.cloud.billing.v1.BillingAccount.Builder builderForValue) { if (accountBuilder_ == null) { account_ = builderForValue.build(); } else { @@ -738,18 +840,22 @@ public Builder setAccount( return this; } /** + * + * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAccount(com.google.cloud.billing.v1.BillingAccount value) { if (accountBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - account_ != null && - account_ != com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && account_ != null + && account_ != com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()) { getAccountBuilder().mergeFrom(value); } else { account_ = value; @@ -762,12 +868,16 @@ public Builder mergeAccount(com.google.cloud.billing.v1.BillingAccount value) { return this; } /** + * + * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAccount() { bitField0_ = (bitField0_ & ~0x00000002); @@ -780,12 +890,16 @@ public Builder clearAccount() { return this; } /** + * + * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.v1.BillingAccount.Builder getAccountBuilder() { bitField0_ |= 0x00000002; @@ -793,38 +907,50 @@ public com.google.cloud.billing.v1.BillingAccount.Builder getAccountBuilder() { return getAccountFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.v1.BillingAccountOrBuilder getAccountOrBuilder() { if (accountBuilder_ != null) { return accountBuilder_.getMessageOrBuilder(); } else { - return account_ == null ? - com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : account_; + return account_ == null + ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() + : account_; } } /** + * + * *
      * Required. The billing account resource to replace the resource on the
      * server.
      * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> + com.google.cloud.billing.v1.BillingAccount, + com.google.cloud.billing.v1.BillingAccount.Builder, + com.google.cloud.billing.v1.BillingAccountOrBuilder> getAccountFieldBuilder() { if (accountBuilder_ == null) { - accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder>( - getAccount(), - getParentForChildren(), - isClean()); + accountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.v1.BillingAccount, + com.google.cloud.billing.v1.BillingAccount.Builder, + com.google.cloud.billing.v1.BillingAccountOrBuilder>( + getAccount(), getParentForChildren(), isClean()); account_ = null; } return accountBuilder_; @@ -832,36 +958,49 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getAccountOrBuilder() private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
      * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
      * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -883,6 +1022,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -890,8 +1031,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 3;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -902,6 +1042,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -911,9 +1053,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -926,6 +1068,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -944,6 +1088,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -957,6 +1103,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -968,11 +1116,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -981,21 +1132,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1005,12 +1159,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.UpdateBillingAccountRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.UpdateBillingAccountRequest)
   private static final com.google.cloud.billing.v1.UpdateBillingAccountRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.v1.UpdateBillingAccountRequest();
   }
@@ -1019,27 +1173,27 @@ public static com.google.cloud.billing.v1.UpdateBillingAccountRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateBillingAccountRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateBillingAccountRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1054,6 +1208,4 @@ public com.google.protobuf.Parser getParserForType(
   public com.google.cloud.billing.v1.UpdateBillingAccountRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
similarity index 58%
rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
index a836249b9db4..0a54ed6c7395 100644
--- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
+++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
@@ -1,83 +1,130 @@
+/*
+ * 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 UpdateBillingAccountRequestOrBuilder extends
+public interface UpdateBillingAccountRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.UpdateBillingAccountRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The name of the billing account resource to be updated.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the billing account resource to be updated.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The billing account resource to replace the resource on the
    * server.
    * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the account field is set. */ boolean hasAccount(); /** + * + * *
    * Required. The billing account resource to replace the resource on the
    * server.
    * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The account. */ com.google.cloud.billing.v1.BillingAccount getAccount(); /** + * + * *
    * Required. The billing account resource to replace the resource on the
    * server.
    * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.billing.v1.BillingAccountOrBuilder getAccountOrBuilder(); /** + * + * *
    * The update mask applied to the resource.
    * Only "display_name" is currently supported.
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The update mask applied to the resource.
    * Only "display_name" is currently supported.
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The update mask applied to the resource.
    * Only "display_name" is currently supported.
diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
similarity index 69%
rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
index fc6db32b237b..a97ef5561a39 100644
--- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
+++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
@@ -1,52 +1,75 @@
+/*
+ * 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;
 
 /**
+ *
+ *
  * 
  * Request message for `UpdateProjectBillingInfo`.
  * 
* * Protobuf type {@code google.cloud.billing.v1.UpdateProjectBillingInfoRequest} */ -public final class UpdateProjectBillingInfoRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateProjectBillingInfoRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.UpdateProjectBillingInfoRequest) UpdateProjectBillingInfoRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateProjectBillingInfoRequest.newBuilder() to construct. - private UpdateProjectBillingInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateProjectBillingInfoRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateProjectBillingInfoRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateProjectBillingInfoRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.class, com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.Builder.class); + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.class, + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the project associated with the billing
    * information that you want to update. For example,
@@ -54,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -62,14 +86,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the project associated with the billing
    * information that you want to update. For example,
@@ -77,16 +102,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,6 +121,8 @@ public java.lang.String getName() { public static final int PROJECT_BILLING_INFO_FIELD_NUMBER = 2; private com.google.cloud.billing.v1.ProjectBillingInfo projectBillingInfo_; /** + * + * *
    * The new billing information for the project. Output-only fields are
    * ignored; thus, you can leave empty all fields except
@@ -104,6 +130,7 @@ public java.lang.String getName() {
    * 
* * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2; + * * @return Whether the projectBillingInfo field is set. */ @java.lang.Override @@ -111,6 +138,8 @@ public boolean hasProjectBillingInfo() { return projectBillingInfo_ != null; } /** + * + * *
    * The new billing information for the project. Output-only fields are
    * ignored; thus, you can leave empty all fields except
@@ -118,13 +147,18 @@ public boolean hasProjectBillingInfo() {
    * 
* * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2; + * * @return The projectBillingInfo. */ @java.lang.Override public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo() { - return projectBillingInfo_ == null ? com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance() : projectBillingInfo_; + return projectBillingInfo_ == null + ? com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance() + : projectBillingInfo_; } /** + * + * *
    * The new billing information for the project. Output-only fields are
    * ignored; thus, you can leave empty all fields except
@@ -135,10 +169,13 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo() {
    */
   @java.lang.Override
   public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder() {
-    return projectBillingInfo_ == null ? com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance() : projectBillingInfo_;
+    return projectBillingInfo_ == null
+        ? com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance()
+        : projectBillingInfo_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -150,8 +187,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -171,8 +207,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (projectBillingInfo_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getProjectBillingInfo());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProjectBillingInfo());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -182,19 +217,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest other = (com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) obj;
+    com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest other =
+        (com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasProjectBillingInfo() != other.hasProjectBillingInfo()) return false;
     if (hasProjectBillingInfo()) {
-      if (!getProjectBillingInfo()
-          .equals(other.getProjectBillingInfo())) return false;
+      if (!getProjectBillingInfo().equals(other.getProjectBillingInfo())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -219,131 +253,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for `UpdateProjectBillingInfo`.
    * 
* * Protobuf type {@code google.cloud.billing.v1.UpdateProjectBillingInfoRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.UpdateProjectBillingInfoRequest) com.google.cloud.billing.v1.UpdateProjectBillingInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_fieldAccessorTable + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.class, com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.Builder.class); + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.class, + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.Builder.class); } // Construct using com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -358,9 +397,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudBillingProto + .internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor; } @java.lang.Override @@ -379,8 +418,11 @@ public com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest build() { @java.lang.Override public com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest buildPartial() { - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest result = new com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest result = + new com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -391,9 +433,10 @@ private void buildPartial0(com.google.cloud.billing.v1.UpdateProjectBillingInfoR result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.projectBillingInfo_ = projectBillingInfoBuilder_ == null - ? projectBillingInfo_ - : projectBillingInfoBuilder_.build(); + result.projectBillingInfo_ = + projectBillingInfoBuilder_ == null + ? projectBillingInfo_ + : projectBillingInfoBuilder_.build(); } } @@ -401,38 +444,39 @@ private void buildPartial0(com.google.cloud.billing.v1.UpdateProjectBillingInfoR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) { - return mergeFrom((com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest)other); + return mergeFrom((com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) other); } else { super.mergeFrom(other); return this; @@ -440,7 +484,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest other) { - if (other == com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -475,24 +520,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getProjectBillingInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getProjectBillingInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -502,10 +549,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the project associated with the billing
      * information that you want to update. For example,
@@ -513,13 +563,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -528,6 +578,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the project associated with the billing
      * information that you want to update. For example,
@@ -535,15 +587,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -551,6 +602,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the project associated with the billing
      * information that you want to update. For example,
@@ -558,18 +611,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project associated with the billing
      * information that you want to update. For example,
@@ -577,6 +634,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -586,6 +644,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the project associated with the billing
      * information that you want to update. For example,
@@ -593,12 +653,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -608,8 +670,13 @@ public Builder setNameBytes( private com.google.cloud.billing.v1.ProjectBillingInfo projectBillingInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> projectBillingInfoBuilder_; + com.google.cloud.billing.v1.ProjectBillingInfo, + com.google.cloud.billing.v1.ProjectBillingInfo.Builder, + com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> + projectBillingInfoBuilder_; /** + * + * *
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -617,12 +684,15 @@ public Builder setNameBytes(
      * 
* * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2; + * * @return Whether the projectBillingInfo field is set. */ public boolean hasProjectBillingInfo() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -630,16 +700,21 @@ public boolean hasProjectBillingInfo() {
      * 
* * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2; + * * @return The projectBillingInfo. */ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo() { if (projectBillingInfoBuilder_ == null) { - return projectBillingInfo_ == null ? com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance() : projectBillingInfo_; + return projectBillingInfo_ == null + ? com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance() + : projectBillingInfo_; } else { return projectBillingInfoBuilder_.getMessage(); } } /** + * + * *
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -662,6 +737,8 @@ public Builder setProjectBillingInfo(com.google.cloud.billing.v1.ProjectBillingI
       return this;
     }
     /**
+     *
+     *
      * 
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -682,6 +759,8 @@ public Builder setProjectBillingInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -692,9 +771,10 @@ public Builder setProjectBillingInfo(
      */
     public Builder mergeProjectBillingInfo(com.google.cloud.billing.v1.ProjectBillingInfo value) {
       if (projectBillingInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          projectBillingInfo_ != null &&
-          projectBillingInfo_ != com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && projectBillingInfo_ != null
+            && projectBillingInfo_
+                != com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance()) {
           getProjectBillingInfoBuilder().mergeFrom(value);
         } else {
           projectBillingInfo_ = value;
@@ -707,6 +787,8 @@ public Builder mergeProjectBillingInfo(com.google.cloud.billing.v1.ProjectBillin
       return this;
     }
     /**
+     *
+     *
      * 
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -726,6 +808,8 @@ public Builder clearProjectBillingInfo() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -740,6 +824,8 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder getProjectBillingI
       return getProjectBillingInfoFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -748,15 +834,19 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder getProjectBillingI
      *
      * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2;
      */
-    public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder() {
+    public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder
+        getProjectBillingInfoOrBuilder() {
       if (projectBillingInfoBuilder_ != null) {
         return projectBillingInfoBuilder_.getMessageOrBuilder();
       } else {
-        return projectBillingInfo_ == null ?
-            com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance() : projectBillingInfo_;
+        return projectBillingInfo_ == null
+            ? com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance()
+            : projectBillingInfo_;
       }
     }
     /**
+     *
+     *
      * 
      * The new billing information for the project. Output-only fields are
      * ignored; thus, you can leave empty all fields except
@@ -766,21 +856,24 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
      * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> 
+            com.google.cloud.billing.v1.ProjectBillingInfo,
+            com.google.cloud.billing.v1.ProjectBillingInfo.Builder,
+            com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>
         getProjectBillingInfoFieldBuilder() {
       if (projectBillingInfoBuilder_ == null) {
-        projectBillingInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>(
-                getProjectBillingInfo(),
-                getParentForChildren(),
-                isClean());
+        projectBillingInfoBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.billing.v1.ProjectBillingInfo,
+                com.google.cloud.billing.v1.ProjectBillingInfo.Builder,
+                com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>(
+                getProjectBillingInfo(), getParentForChildren(), isClean());
         projectBillingInfo_ = null;
       }
       return projectBillingInfoBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -790,12 +883,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.billing.v1.UpdateProjectBillingInfoRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.billing.v1.UpdateProjectBillingInfoRequest)
   private static final com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest();
   }
@@ -804,27 +897,27 @@ public static com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateProjectBillingInfoRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateProjectBillingInfoRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -839,6 +932,4 @@ public com.google.protobuf.Parser getParserForT
   public com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
similarity index 72%
rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
rename to java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
index 2b382e89d292..71dc3682c68a 100644
--- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
+++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * 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 UpdateProjectBillingInfoRequestOrBuilder extends
+public interface UpdateProjectBillingInfoRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.UpdateProjectBillingInfoRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The resource name of the project associated with the billing
    * information that you want to update. For example,
@@ -15,10 +33,13 @@ public interface UpdateProjectBillingInfoRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the project associated with the billing
    * information that you want to update. For example,
@@ -26,12 +47,14 @@ public interface UpdateProjectBillingInfoRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The new billing information for the project. Output-only fields are
    * ignored; thus, you can leave empty all fields except
@@ -39,10 +62,13 @@ public interface UpdateProjectBillingInfoRequestOrBuilder extends
    * 
* * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2; + * * @return Whether the projectBillingInfo field is set. */ boolean hasProjectBillingInfo(); /** + * + * *
    * The new billing information for the project. Output-only fields are
    * ignored; thus, you can leave empty all fields except
@@ -50,10 +76,13 @@ public interface UpdateProjectBillingInfoRequestOrBuilder extends
    * 
* * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2; + * * @return The projectBillingInfo. */ com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(); /** + * + * *
    * The new billing information for the project. Output-only fields are
    * ignored; thus, you can leave empty all fields except
diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto b/java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto
similarity index 100%
rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto
rename to java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto
diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto b/java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto
similarity index 100%
rename from owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto
rename to java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider1.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider1.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetCredentialsProvider1.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetEndpoint.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetEndpoint.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/AsyncCreateBillingAccount.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/AsyncCreateBillingAccount.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/AsyncCreateBillingAccount.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/AsyncCreateBillingAccount.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccount.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccount.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccount.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccount.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccount.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccount.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccount.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccount.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccountString.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccountString.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccountString.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/createbillingaccount/SyncCreateBillingAccountBillingaccountString.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/AsyncGetBillingAccount.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/AsyncGetBillingAccount.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/AsyncGetBillingAccount.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/AsyncGetBillingAccount.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccount.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccount.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccount.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccount.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountBillingaccountname.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountBillingaccountname.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountBillingaccountname.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountBillingaccountname.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountString.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountString.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountString.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getbillingaccount/SyncGetBillingAccountString.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/AsyncGetIamPolicy.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/AsyncGetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/AsyncGetIamPolicy.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/AsyncGetIamPolicy.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicy.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicy.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicy.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyResourcename.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyResourcename.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyResourcename.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyResourcename.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyString.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyString.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyString.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getiampolicy/SyncGetIamPolicyString.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/AsyncGetProjectBillingInfo.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/AsyncGetProjectBillingInfo.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/AsyncGetProjectBillingInfo.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/AsyncGetProjectBillingInfo.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfo.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfo.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfo.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfo.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoProjectname.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoProjectname.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoProjectname.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoProjectname.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoString.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoString.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoString.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/getprojectbillinginfo/SyncGetProjectBillingInfoString.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccounts.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccounts.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccounts.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccounts.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccountsPaged.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccountsPaged.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccountsPaged.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/AsyncListBillingAccountsPaged.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccounts.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccounts.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccounts.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccounts.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsNoargs.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsNoargs.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsNoargs.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsNoargs.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsString.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsString.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsString.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listbillingaccounts/SyncListBillingAccountsString.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfo.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfo.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfo.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfo.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfo.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfo.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfo.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfo.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoString.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoString.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoString.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/listprojectbillinginfo/SyncListProjectBillingInfoString.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/AsyncMoveBillingAccount.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/AsyncMoveBillingAccount.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/AsyncMoveBillingAccount.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/AsyncMoveBillingAccount.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/SyncMoveBillingAccount.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/SyncMoveBillingAccount.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/SyncMoveBillingAccount.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/movebillingaccount/SyncMoveBillingAccount.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/AsyncSetIamPolicy.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/AsyncSetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/AsyncSetIamPolicy.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/AsyncSetIamPolicy.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicy.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicy.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicy.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyStringPolicy.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyStringPolicy.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyStringPolicy.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/setiampolicy/SyncSetIamPolicyStringPolicy.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/AsyncTestIamPermissions.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/AsyncTestIamPermissions.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/AsyncTestIamPermissions.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/AsyncTestIamPermissions.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissions.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissions.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissions.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissions.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsStringListstring.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsStringListstring.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsStringListstring.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/testiampermissions/SyncTestIamPermissionsStringListstring.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/AsyncUpdateBillingAccount.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/AsyncUpdateBillingAccount.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/AsyncUpdateBillingAccount.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/AsyncUpdateBillingAccount.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccount.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccount.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccount.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccount.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbilling/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider1.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider1.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetCredentialsProvider1.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetEndpoint.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetEndpoint.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServices.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServices.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServices.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServices.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServicesPaged.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServicesPaged.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServicesPaged.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/AsyncListServicesPaged.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServices.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServices.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServices.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServices.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServicesNoargs.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServicesNoargs.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServicesNoargs.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listservices/SyncListServicesNoargs.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkus.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkus.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkus.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkus.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkusPaged.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkusPaged.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkusPaged.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/AsyncListSkusPaged.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkus.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkus.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkus.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkus.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusServicename.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusServicename.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusServicename.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusServicename.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusString.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusString.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusString.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalog/listskus/SyncListSkusString.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java
diff --git a/owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java b/java-billing/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java
similarity index 100%
rename from owl-bot-staging/java-billing/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java
rename to java-billing/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java
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
deleted file mode 100644
index f410d4e782dc..000000000000
--- a/owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java
+++ /dev/null
@@ -1,1062 +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.
- */
-
-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 actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void getBillingAccountExceptionTest() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      BillingAccountName name = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]");
-      client.getBillingAccount(name);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void getBillingAccountTest2() 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);
-
-    String name = "billingAccounts/billingAccount-6593";
-
-    BillingAccount actualResponse = client.getBillingAccount(name);
-    Assert.assertEquals(expectedResponse, actualResponse);
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void getBillingAccountExceptionTest2() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      String name = "billingAccounts/billingAccount-6593";
-      client.getBillingAccount(name);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void listBillingAccountsTest() throws Exception {
-    BillingAccount responsesElement = BillingAccount.newBuilder().build();
-    ListBillingAccountsResponse expectedResponse =
-        ListBillingAccountsResponse.newBuilder()
-            .setNextPageToken("")
-            .addAllBillingAccounts(Arrays.asList(responsesElement))
-            .build();
-    mockService.addResponse(expectedResponse);
-
-    ListBillingAccountsPagedResponse pagedListResponse = client.listBillingAccounts();
-
-    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
-
-    Assert.assertEquals(1, resources.size());
-    Assert.assertEquals(expectedResponse.getBillingAccountsList().get(0), resources.get(0));
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void listBillingAccountsExceptionTest() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      ListBillingAccountsRequest request =
-          ListBillingAccountsRequest.newBuilder()
-              .setPageSize(883849137)
-              .setPageToken("pageToken873572522")
-              .setFilter("filter-1274492040")
-              .setParent("parent-995424086")
-              .build();
-      client.listBillingAccounts(request);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void listBillingAccountsTest2() throws Exception {
-    BillingAccount responsesElement = BillingAccount.newBuilder().build();
-    ListBillingAccountsResponse expectedResponse =
-        ListBillingAccountsResponse.newBuilder()
-            .setNextPageToken("")
-            .addAllBillingAccounts(Arrays.asList(responsesElement))
-            .build();
-    mockService.addResponse(expectedResponse);
-
-    String parent = "parent-995424086";
-
-    ListBillingAccountsPagedResponse pagedListResponse = client.listBillingAccounts(parent);
-
-    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
-
-    Assert.assertEquals(1, resources.size());
-    Assert.assertEquals(expectedResponse.getBillingAccountsList().get(0), resources.get(0));
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void listBillingAccountsExceptionTest2() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      String parent = "parent-995424086";
-      client.listBillingAccounts(parent);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void updateBillingAccountTest() 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 account = BillingAccount.newBuilder().build();
-
-    BillingAccount actualResponse = client.updateBillingAccount(name, account);
-    Assert.assertEquals(expectedResponse, actualResponse);
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void updateBillingAccountExceptionTest() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      BillingAccountName name = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]");
-      BillingAccount account = BillingAccount.newBuilder().build();
-      client.updateBillingAccount(name, account);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void updateBillingAccountTest2() 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);
-
-    String name = "billingAccounts/billingAccount-6593";
-    BillingAccount account = BillingAccount.newBuilder().build();
-
-    BillingAccount actualResponse = client.updateBillingAccount(name, account);
-    Assert.assertEquals(expectedResponse, actualResponse);
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void updateBillingAccountExceptionTest2() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      String name = "billingAccounts/billingAccount-6593";
-      BillingAccount account = BillingAccount.newBuilder().build();
-      client.updateBillingAccount(name, account);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void createBillingAccountTest() 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);
-
-    BillingAccount billingAccount = BillingAccount.newBuilder().build();
-
-    BillingAccount actualResponse = client.createBillingAccount(billingAccount);
-    Assert.assertEquals(expectedResponse, actualResponse);
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void createBillingAccountExceptionTest() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      BillingAccount billingAccount = BillingAccount.newBuilder().build();
-      client.createBillingAccount(billingAccount);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void createBillingAccountTest2() 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);
-
-    BillingAccount billingAccount = BillingAccount.newBuilder().build();
-    String parent = "parent-995424086";
-
-    BillingAccount actualResponse = client.createBillingAccount(billingAccount, parent);
-    Assert.assertEquals(expectedResponse, actualResponse);
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void createBillingAccountExceptionTest2() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      BillingAccount billingAccount = BillingAccount.newBuilder().build();
-      String parent = "parent-995424086";
-      client.createBillingAccount(billingAccount, parent);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void listProjectBillingInfoTest() throws Exception {
-    ProjectBillingInfo responsesElement = ProjectBillingInfo.newBuilder().build();
-    ListProjectBillingInfoResponse expectedResponse =
-        ListProjectBillingInfoResponse.newBuilder()
-            .setNextPageToken("")
-            .addAllProjectBillingInfo(Arrays.asList(responsesElement))
-            .build();
-    mockService.addResponse(expectedResponse);
-
-    BillingAccountName name = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]");
-
-    ListProjectBillingInfoPagedResponse pagedListResponse = client.listProjectBillingInfo(name);
-
-    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
-
-    Assert.assertEquals(1, resources.size());
-    Assert.assertEquals(expectedResponse.getProjectBillingInfoList().get(0), resources.get(0));
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void listProjectBillingInfoExceptionTest() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      BillingAccountName name = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]");
-      client.listProjectBillingInfo(name);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void listProjectBillingInfoTest2() throws Exception {
-    ProjectBillingInfo responsesElement = ProjectBillingInfo.newBuilder().build();
-    ListProjectBillingInfoResponse expectedResponse =
-        ListProjectBillingInfoResponse.newBuilder()
-            .setNextPageToken("")
-            .addAllProjectBillingInfo(Arrays.asList(responsesElement))
-            .build();
-    mockService.addResponse(expectedResponse);
-
-    String name = "billingAccounts/billingAccount-6593";
-
-    ListProjectBillingInfoPagedResponse pagedListResponse = client.listProjectBillingInfo(name);
-
-    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
-
-    Assert.assertEquals(1, resources.size());
-    Assert.assertEquals(expectedResponse.getProjectBillingInfoList().get(0), resources.get(0));
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void listProjectBillingInfoExceptionTest2() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      String name = "billingAccounts/billingAccount-6593";
-      client.listProjectBillingInfo(name);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void getProjectBillingInfoTest() throws Exception {
-    ProjectBillingInfo expectedResponse =
-        ProjectBillingInfo.newBuilder()
-            .setName("name3373707")
-            .setProjectId("projectId-894832108")
-            .setBillingAccountName("billingAccountName929322205")
-            .setBillingEnabled(true)
-            .build();
-    mockService.addResponse(expectedResponse);
-
-    ProjectName name = ProjectName.of("[PROJECT]");
-
-    ProjectBillingInfo actualResponse = client.getProjectBillingInfo(name);
-    Assert.assertEquals(expectedResponse, actualResponse);
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void getProjectBillingInfoExceptionTest() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      ProjectName name = ProjectName.of("[PROJECT]");
-      client.getProjectBillingInfo(name);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void getProjectBillingInfoTest2() throws Exception {
-    ProjectBillingInfo expectedResponse =
-        ProjectBillingInfo.newBuilder()
-            .setName("name3373707")
-            .setProjectId("projectId-894832108")
-            .setBillingAccountName("billingAccountName929322205")
-            .setBillingEnabled(true)
-            .build();
-    mockService.addResponse(expectedResponse);
-
-    String name = "projects/project-3664";
-
-    ProjectBillingInfo actualResponse = client.getProjectBillingInfo(name);
-    Assert.assertEquals(expectedResponse, actualResponse);
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void getProjectBillingInfoExceptionTest2() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      String name = "projects/project-3664";
-      client.getProjectBillingInfo(name);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void updateProjectBillingInfoTest() throws Exception {
-    ProjectBillingInfo expectedResponse =
-        ProjectBillingInfo.newBuilder()
-            .setName("name3373707")
-            .setProjectId("projectId-894832108")
-            .setBillingAccountName("billingAccountName929322205")
-            .setBillingEnabled(true)
-            .build();
-    mockService.addResponse(expectedResponse);
-
-    String name = "projects/project-3664";
-    ProjectBillingInfo projectBillingInfo = ProjectBillingInfo.newBuilder().build();
-
-    ProjectBillingInfo actualResponse = client.updateProjectBillingInfo(name, projectBillingInfo);
-    Assert.assertEquals(expectedResponse, actualResponse);
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void updateProjectBillingInfoExceptionTest() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      String name = "projects/project-3664";
-      ProjectBillingInfo projectBillingInfo = ProjectBillingInfo.newBuilder().build();
-      client.updateProjectBillingInfo(name, projectBillingInfo);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void getIamPolicyTest() throws Exception {
-    Policy expectedResponse =
-        Policy.newBuilder()
-            .setVersion(351608024)
-            .addAllBindings(new ArrayList())
-            .addAllAuditConfigs(new ArrayList())
-            .setEtag(ByteString.EMPTY)
-            .build();
-    mockService.addResponse(expectedResponse);
-
-    ResourceName resource = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]");
-
-    Policy actualResponse = client.getIamPolicy(resource);
-    Assert.assertEquals(expectedResponse, actualResponse);
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void getIamPolicyExceptionTest() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      ResourceName resource = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]");
-      client.getIamPolicy(resource);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void getIamPolicyTest2() throws Exception {
-    Policy expectedResponse =
-        Policy.newBuilder()
-            .setVersion(351608024)
-            .addAllBindings(new ArrayList())
-            .addAllAuditConfigs(new ArrayList())
-            .setEtag(ByteString.EMPTY)
-            .build();
-    mockService.addResponse(expectedResponse);
-
-    String resource = "billingAccounts/billingAccount-2850";
-
-    Policy actualResponse = client.getIamPolicy(resource);
-    Assert.assertEquals(expectedResponse, actualResponse);
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void getIamPolicyExceptionTest2() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      String resource = "billingAccounts/billingAccount-2850";
-      client.getIamPolicy(resource);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void setIamPolicyTest() throws Exception {
-    Policy expectedResponse =
-        Policy.newBuilder()
-            .setVersion(351608024)
-            .addAllBindings(new ArrayList())
-            .addAllAuditConfigs(new ArrayList())
-            .setEtag(ByteString.EMPTY)
-            .build();
-    mockService.addResponse(expectedResponse);
-
-    ResourceName resource = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]");
-    Policy policy = Policy.newBuilder().build();
-
-    Policy actualResponse = client.setIamPolicy(resource, policy);
-    Assert.assertEquals(expectedResponse, actualResponse);
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void setIamPolicyExceptionTest() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      ResourceName resource = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]");
-      Policy policy = Policy.newBuilder().build();
-      client.setIamPolicy(resource, policy);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void setIamPolicyTest2() throws Exception {
-    Policy expectedResponse =
-        Policy.newBuilder()
-            .setVersion(351608024)
-            .addAllBindings(new ArrayList())
-            .addAllAuditConfigs(new ArrayList())
-            .setEtag(ByteString.EMPTY)
-            .build();
-    mockService.addResponse(expectedResponse);
-
-    String resource = "billingAccounts/billingAccount-2850";
-    Policy policy = Policy.newBuilder().build();
-
-    Policy actualResponse = client.setIamPolicy(resource, policy);
-    Assert.assertEquals(expectedResponse, actualResponse);
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void setIamPolicyExceptionTest2() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      String resource = "billingAccounts/billingAccount-2850";
-      Policy policy = Policy.newBuilder().build();
-      client.setIamPolicy(resource, policy);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void testIamPermissionsTest() throws Exception {
-    TestIamPermissionsResponse expectedResponse =
-        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
-    mockService.addResponse(expectedResponse);
-
-    ResourceName resource = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]");
-    List permissions = new ArrayList<>();
-
-    TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions);
-    Assert.assertEquals(expectedResponse, actualResponse);
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void testIamPermissionsExceptionTest() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      ResourceName resource = BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]");
-      List permissions = new ArrayList<>();
-      client.testIamPermissions(resource, permissions);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void testIamPermissionsTest2() throws Exception {
-    TestIamPermissionsResponse expectedResponse =
-        TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
-    mockService.addResponse(expectedResponse);
-
-    String resource = "billingAccounts/billingAccount-2850";
-    List permissions = new ArrayList<>();
-
-    TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions);
-    Assert.assertEquals(expectedResponse, actualResponse);
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void testIamPermissionsExceptionTest2() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      String resource = "billingAccounts/billingAccount-2850";
-      List permissions = new ArrayList<>();
-      client.testIamPermissions(resource, permissions);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-
-  @Test
-  public void moveBillingAccountTest() 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);
-
-    MoveBillingAccountRequest request =
-        MoveBillingAccountRequest.newBuilder()
-            .setName(BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]").toString())
-            .setDestinationParent(OrganizationName.of("[ORGANIZATION]").toString())
-            .build();
-
-    BillingAccount actualResponse = client.moveBillingAccount(request);
-    Assert.assertEquals(expectedResponse, actualResponse);
-
-    List actualRequests = mockService.getRequestPaths();
-    Assert.assertEquals(1, actualRequests.size());
-
-    String apiClientHeaderKey =
-        mockService
-            .getRequestHeaders()
-            .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey())
-            .iterator()
-            .next();
-    Assert.assertTrue(
-        GaxHttpJsonProperties.getDefaultApiClientHeaderPattern()
-            .matcher(apiClientHeaderKey)
-            .matches());
-  }
-
-  @Test
-  public void moveBillingAccountExceptionTest() throws Exception {
-    ApiException exception =
-        ApiExceptionFactory.createException(
-            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
-    mockService.addException(exception);
-
-    try {
-      MoveBillingAccountRequest request =
-          MoveBillingAccountRequest.newBuilder()
-              .setName(BillingAccountName.ofBillingAccountName("[BILLING_ACCOUNT]").toString())
-              .setDestinationParent(OrganizationName.of("[ORGANIZATION]").toString())
-              .build();
-      client.moveBillingAccount(request);
-      Assert.fail("No exception raised");
-    } catch (InvalidArgumentException e) {
-      // Expected exception.
-    }
-  }
-}
diff --git a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java
deleted file mode 100644
index 3f04da44c6ac..000000000000
--- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java
+++ /dev/null
@@ -1,316 +0,0 @@
-// 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/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java
deleted file mode 100644
index 030eae6a0ac9..000000000000
--- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java
+++ /dev/null
@@ -1,268 +0,0 @@
-// 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/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java
deleted file mode 100644
index 7a1e85b205dc..000000000000
--- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// 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/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java deleted file mode 100644 index 61107c01acaa..000000000000 --- a/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// 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/versions.txt b/versions.txt index 02021a55dd8d..e7867e485698 100644 --- a/versions.txt +++ b/versions.txt @@ -718,4 +718,4 @@ proto-google-cloud-securitycentermanagement-v1:0.1.0:0.2.0-SNAPSHOT grpc-google-cloud-securitycentermanagement-v1:0.1.0:0.2.0-SNAPSHOT google-shopping-css:0.1.0:0.2.0-SNAPSHOT proto-google-shopping-css-v1:0.1.0:0.2.0-SNAPSHOT -grpc-google-shopping-css-v1:0.1.0:0.2.0-SNAPSHOT \ No newline at end of file +grpc-google-shopping-css-v1:0.1.0:0.2.0-SNAPSHOT