From 561d8e7d92fd0273445e3efa6993e7dd117a4a95 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 16 Nov 2022 21:16:05 +0000 Subject: [PATCH] feat: added Sku.geo_taxonomy fix: more oauth scopes PiperOrigin-RevId: 488493014 Source-Link: https://github.com/googleapis/googleapis/commit/8995a8817642b3a209103677012521f953616011 Source-Link: https://github.com/googleapis/googleapis-gen/commit/adbfce0c0e59b1b38bb8e81ae9a3d0b408e7f7c0 Copy-Tag: eyJwIjoiamF2YS1iaWxsaW5nLy5Pd2xCb3QueWFtbCIsImgiOiJhZGJmY2UwYzBlNTliMWIzOGJiOGU4MWFlOWEzZDBiNDA4ZTdmN2MwIn0= --- .../cloud/billing/v1/CloudCatalogGrpc.java | 483 ---- .../cloud/billing/v1/CloudBillingProto.java | 295 --- .../cloud/billing/v1/CloudCatalogProto.java | 292 --- .../CreateBillingAccountRequestOrBuilder.java | 75 - .../v1/GetBillingAccountRequestOrBuilder.java | 56 - .../cloud/billing/v1/CloudBillingClient.java | 95 +- .../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 | 7 +- .../billing/v1/stub/CloudBillingStub.java | 0 .../v1/stub/CloudBillingStubSettings.java | 6 +- .../billing/v1/stub/CloudCatalogStub.java | 0 .../v1/stub/CloudCatalogStubSettings.java | 6 +- .../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 .../v1/CloudBillingClientHttpJsonTest.java | 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 | 1230 ++++----- .../cloud/billing/v1/CloudCatalogGrpc.java | 399 +++ .../cloud/billing/v1/AggregationInfo.java | 575 ++--- .../billing/v1/AggregationInfoOrBuilder.java | 31 +- .../cloud/billing/v1/BillingAccount.java | 576 ++--- .../cloud/billing/v1/BillingAccountName.java | 0 .../billing/v1/BillingAccountOrBuilder.java | 64 +- .../com/google/cloud/billing/v1/Category.java | 542 ++-- .../cloud/billing/v1/CategoryOrBuilder.java | 54 +- .../cloud/billing/v1/CloudBillingProto.java | 272 ++ .../cloud/billing/v1/CloudCatalogProto.java | 268 ++ .../v1/CreateBillingAccountRequest.java | 412 ++- .../CreateBillingAccountRequestOrBuilder.java | 45 + .../google/cloud/billing/v1/GeoTaxonomy.java | 951 +++++++ .../billing/v1/GeoTaxonomyOrBuilder.java | 73 + .../billing/v1/GetBillingAccountRequest.java | 355 ++- .../v1/GetBillingAccountRequestOrBuilder.java | 31 + .../v1/GetProjectBillingInfoRequest.java | 330 ++- ...GetProjectBillingInfoRequestOrBuilder.java | 27 +- .../v1/ListBillingAccountsRequest.java | 444 ++-- .../ListBillingAccountsRequestOrBuilder.java | 39 +- .../v1/ListBillingAccountsResponse.java | 475 ++-- .../ListBillingAccountsResponseOrBuilder.java | 45 +- .../v1/ListProjectBillingInfoRequest.java | 472 ++-- ...istProjectBillingInfoRequestOrBuilder.java | 47 +- .../v1/ListProjectBillingInfoResponse.java | 474 ++-- ...stProjectBillingInfoResponseOrBuilder.java | 45 +- .../cloud/billing/v1/ListServicesRequest.java | 358 ++- .../v1/ListServicesRequestOrBuilder.java | 30 +- .../billing/v1/ListServicesResponse.java | 482 ++-- .../v1/ListServicesResponseOrBuilder.java | 46 +- .../cloud/billing/v1/ListSkusRequest.java | 697 ++--- .../billing/v1/ListSkusRequestOrBuilder.java | 72 +- .../cloud/billing/v1/ListSkusResponse.java | 480 ++-- .../billing/v1/ListSkusResponseOrBuilder.java | 46 +- .../cloud/billing/v1/PricingExpression.java | 2239 ++++++++--------- .../v1/PricingExpressionOrBuilder.java | 207 +- .../google/cloud/billing/v1/PricingInfo.java | 620 ++--- .../billing/v1/PricingInfoOrBuilder.java | 54 +- .../cloud/billing/v1/ProjectBillingInfo.java | 522 ++-- .../v1/ProjectBillingInfoOrBuilder.java | 48 +- .../com/google/cloud/billing/v1/Service.java | 542 ++-- .../google/cloud/billing/v1/ServiceName.java | 0 .../cloud/billing/v1/ServiceOrBuilder.java | 54 +- .../java/com/google/cloud/billing/v1/Sku.java | 1128 +++++---- .../google/cloud/billing/v1/SkuOrBuilder.java | 125 +- .../v1/UpdateBillingAccountRequest.java | 572 ++--- .../UpdateBillingAccountRequestOrBuilder.java | 63 +- .../v1/UpdateProjectBillingInfoRequest.java | 423 ++-- ...ateProjectBillingInfoRequestOrBuilder.java | 35 +- .../cloud/billing/v1/cloud_billing.proto | 65 +- .../cloud/billing/v1/cloud_catalog.proto | 68 +- .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateBillingAccount.java | 0 .../SyncCreateBillingAccount.java | 0 ...yncCreateBillingAccountBillingaccount.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 .../SyncGetProjectBillingInfoString.java | 0 .../AsyncListBillingAccounts.java | 0 .../AsyncListBillingAccountsPaged.java | 0 .../SyncListBillingAccounts.java | 0 .../SyncListBillingAccountsNoargs.java | 0 .../AsyncListProjectBillingInfo.java | 0 .../AsyncListProjectBillingInfoPaged.java | 0 .../SyncListProjectBillingInfo.java | 0 ...tProjectBillingInfoBillingaccountname.java | 0 .../SyncListProjectBillingInfoString.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 140 files changed, 8324 insertions(+), 10247 deletions(-) delete mode 100644 java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java 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/CreateBillingAccountRequestOrBuilder.java delete mode 100644 java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java rename {java-billing => owl-bot-staging/java-billing/v1}/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java (95%) 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 (91%) 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 (99%) 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 (98%) 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/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java (100%) 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 (50%) create mode 100644 owl-bot-staging/java-billing/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java 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 (66%) 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 (60%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java (70%) 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 (60%) create mode 100644 owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java create mode 100644 owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java create mode 100644 owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java 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 (66%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java (54%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java (71%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java (72%) 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 (60%) 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 (72%) 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 (71%) 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/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 (75%) 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 (72%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java (75%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java (69%) 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 (69%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java (80%) 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 (87%) rename {java-billing => owl-bot-staging/java-billing/v1}/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto (91%) 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/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/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/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/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/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 deleted file mode 100644 index 989b5170c995..000000000000 --- a/java-billing/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java +++ /dev/null @@ -1,483 +0,0 @@ -/* - * Copyright 2020 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
- * and SKUs.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/billing/v1/cloud_catalog.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CloudCatalogGrpc { - - private CloudCatalogGrpc() {} - - public static final 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; - - @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; - 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(); - } - } - } - return getListServicesMethod; - } - - 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< - 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(); - } - } - } - return getListSkusMethod; - } - - /** 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); - } - }; - 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) { - 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); - } - }; - 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) { - 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); - } - }; - return CloudCatalogFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * 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 implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists all public cloud services.
-     * 
- */ - public 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.
-     * 
- */ - public void listSkus( - com.google.cloud.billing.v1.ListSkusRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSkusMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, METHODID_LIST_SERVICES))) - .addMethod( - getListSkusMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.billing.v1.ListSkusRequest, - com.google.cloud.billing.v1.ListSkusResponse>(this, METHODID_LIST_SKUS))) - .build(); - } - } - - /** - * - * - *
-   * A catalog of Google Cloud Platform services and SKUs.
-   * Provides pricing information and metadata on Google Cloud Platform services
-   * and SKUs.
-   * 
- */ - public static final class CloudCatalogStub - extends io.grpc.stub.AbstractAsyncStub { - 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) { - 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) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - 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) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSkusMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * - * - *
-   * A catalog of Google Cloud Platform services and SKUs.
-   * Provides pricing information and metadata on Google Cloud Platform services
-   * and SKUs.
-   * 
- */ - public static final class CloudCatalogBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CloudCatalogBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudCatalogBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudCatalogBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists all public cloud services.
-     * 
- */ - 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) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSkusMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * A catalog of Google Cloud Platform services and SKUs.
-   * Provides pricing information and metadata on Google Cloud Platform services
-   * and SKUs.
-   * 
- */ - public static final class CloudCatalogFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CloudCatalogFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudCatalogFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudCatalogFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * 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) { - 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) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSkusMethod(), getCallOptions()), request); - } - } - - 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 final CloudCatalogImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CloudCatalogImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - 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); - break; - case METHODID_LIST_SKUS: - serviceImpl.listSkus( - (com.google.cloud.billing.v1.ListSkusRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class CloudCatalogBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CloudCatalogBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CloudCatalog"); - } - } - - private static final class CloudCatalogFileDescriptorSupplier - extends CloudCatalogBaseDescriptorSupplier { - CloudCatalogFileDescriptorSupplier() {} - } - - private static final class CloudCatalogMethodDescriptorSupplier - extends CloudCatalogBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CloudCatalogMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (CloudCatalogGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudCatalogFileDescriptorSupplier()) - .addMethod(getListServicesMethod()) - .addMethod(getListSkusMethod()) - .build(); - } - } - } - return result; - } -} 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 c75795b99a1f..000000000000 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java +++ /dev/null @@ -1,295 +0,0 @@ -/* - * Copyright 2020 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; - - 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\"" - + "\230\001\n\016BillingAccount\022=\n\004name\030\001 \001(\tB/\372A,\n*c" - + "loudbilling.googleapis.com/BillingAccoun" - + "t\022\021\n\004open\030\002 \001(\010B\003\340A\003\022\024\n\014display_name\030\003 \001" - + "(\t\022\036\n\026master_billing_account\030\004 \001(\t\"m\n\022Pr" - + "ojectBillingInfo\022\014\n\004name\030\001 \001(\t\022\022\n\nprojec" - + "t_id\030\002 \001(\t\022\034\n\024billing_account_name\030\003 \001(\t" - + "\022\027\n\017billing_enabled\030\004 \001(\010\"\\\n\030GetBillingA" - + "ccountRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*clo" - + "udbilling.googleapis.com/BillingAccount\"" - + "S\n\032ListBillingAccountsRequest\022\021\n\tpage_si" - + "ze\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\022\016\n\006filter\030\003" - + " \001(\t\"y\n\033ListBillingAccountsResponse\022A\n\020b" - + "illing_accounts\030\001 \003(\0132\'.google.cloud.bil" - + "ling.v1.BillingAccount\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"d\n\033CreateBillingAccountRequest\022E" - + "\n\017billing_account\030\001 \001(\0132\'.google.cloud.b" - + "illing.v1.BillingAccountB\003\340A\002\"\317\001\n\033Update" - + "BillingAccountRequest\022@\n\004name\030\001 \001(\tB2\340A\002" - + "\372A,\n*cloudbilling.googleapis.com/Billing" - + "Account\022=\n\007account\030\002 \001(\0132\'.google.cloud." - + "billing.v1.BillingAccountB\003\340A\002\022/\n\013update" - + "_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"" - + "\210\001\n\035ListProjectBillingInfoRequest\022@\n\004nam" - + "e\030\001 \001(\tB2\340A\002\372A,\n*cloudbilling.googleapis" - + ".com/BillingAccount\022\021\n\tpage_size\030\002 \001(\005\022\022" - + "\n\npage_token\030\003 \001(\t\"\204\001\n\036ListProjectBillin" - + "gInfoResponse\022I\n\024project_billing_info\030\001 " - + "\003(\0132+.google.cloud.billing.v1.ProjectBil" - + "lingInfo\022\027\n\017next_page_token\030\002 \001(\t\"1\n\034Get" - + "ProjectBillingInfoRequest\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\002\"\177\n\037UpdateProjectBillingInfoRequest\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\002\022I\n\024project_billing_in" - + "fo\030\002 \001(\0132+.google.cloud.billing.v1.Proje" - + "ctBillingInfo2\313\016\n\014CloudBilling\022\234\001\n\021GetBi" - + "llingAccount\0221.google.cloud.billing.v1.G" - + "etBillingAccountRequest\032\'.google.cloud.b" - + "illing.v1.BillingAccount\"+\202\323\344\223\002\036\022\034/v1/{n" - + "ame=billingAccounts/*}\332A\004name\022\240\001\n\023ListBi" - + "llingAccounts\0223.google.cloud.billing.v1." - + "ListBillingAccountsRequest\0324.google.clou" - + "d.billing.v1.ListBillingAccountsResponse" - + "\"\036\202\323\344\223\002\025\022\023/v1/billingAccounts\332A\000\022\263\001\n\024Upd" - + "ateBillingAccount\0224.google.cloud.billing" - + ".v1.UpdateBillingAccountRequest\032\'.google" - + ".cloud.billing.v1.BillingAccount\"<\202\323\344\223\002\'" - + "2\034/v1/{name=billingAccounts/*}:\007account\332" - + "A\014name,account\022\265\001\n\024CreateBillingAccount\022" - + "4.google.cloud.billing.v1.CreateBillingA" - + "ccountRequest\032\'.google.cloud.billing.v1." - + "BillingAccount\">\202\323\344\223\002&\"\023/v1/billingAccou" - + "nts:\017billing_account\332A\017billing_account\022\277" - + "\001\n\026ListProjectBillingInfo\0226.google.cloud" - + ".billing.v1.ListProjectBillingInfoReques" - + "t\0327.google.cloud.billing.v1.ListProjectB" - + "illingInfoResponse\"4\202\323\344\223\002\'\022%/v1/{name=bi" - + "llingAccounts/*}/projects\332A\004name\022\255\001\n\025Get" - + "ProjectBillingInfo\0225.google.cloud.billin" - + "g.v1.GetProjectBillingInfoRequest\032+.goog" - + "le.cloud.billing.v1.ProjectBillingInfo\"0" - + "\202\323\344\223\002#\022!/v1/{name=projects/*}/billingInf" - + "o\332A\004name\022\336\001\n\030UpdateProjectBillingInfo\0228." - + "google.cloud.billing.v1.UpdateProjectBil" - + "lingInfoRequest\032+.google.cloud.billing.v" - + "1.ProjectBillingInfo\"[\202\323\344\223\0029\032!/v1/{name=" - + "projects/*}/billingInfo:\024project_billing" - + "_info\332A\031name,project_billing_info\022\213\001\n\014Ge" - + "tIamPolicy\022\".google.iam.v1.GetIamPolicyR" - + "equest\032\025.google.iam.v1.Policy\"@\202\323\344\223\002/\022-/" - + "v1/{resource=billingAccounts/*}:getIamPo" - + "licy\332A\010resource\022\225\001\n\014SetIamPolicy\022\".googl" - + "e.iam.v1.SetIamPolicyRequest\032\025.google.ia" - + "m.v1.Policy\"J\202\323\344\223\0022\"-/v1/{resource=billi" - + "ngAccounts/*}:setIamPolicy:\001*\332A\017resource" - + ",policy\022\300\001\n\022TestIamPermissions\022(.google." - + "iam.v1.TestIamPermissionsRequest\032).googl" - + "e.iam.v1.TestIamPermissionsResponse\"U\202\323\344" - + "\223\0028\"3/v1/{resource=billingAccounts/*}:te" - + "stIamPermissions:\001*\332A\024resource,permissio" - + "ns\032O\312A\033cloudbilling.googleapis.com\322A.htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "ormBr\n\033com.google.cloud.billing.v1B\021Clou" - + "dBillingProtoP\001Z>google.golang.org/genpr" - + "oto/googleapis/cloud/billing/v1;billingb" - + "\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", - }); - 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", - }); - 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", - }); - 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", - }); - 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.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 cfc749428f52..000000000000 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java +++ /dev/null @@ -1,292 +0,0 @@ -/* - * Copyright 2020 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_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}\"\246\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:C\352A@\n\037cl" - + "oudbilling.googleapis.com/Sku\022\035services/" - + "{service}/skus/{sku}\"m\n\010Category\022\034\n\024serv" - + "ice_display_name\030\001 \001(\t\022\027\n\017resource_famil" - + "y\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\013PricingInfo\0222\n\016effective" - + "_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022" - + "\017\n\007summary\030\002 \001(\t\022F\n\022pricing_expression\030\003" - + " \001(\0132*.google.cloud.billing.v1.PricingEx" - + "pression\022B\n\020aggregation_info\030\004 \001(\0132(.goo" - + "gle.cloud.billing.v1.AggregationInfo\022 \n\030" - + "currency_conversion_rate\030\005 \001(\001\"\323\002\n\021Prici" - + "ngExpression\022\022\n\nusage_unit\030\001 \001(\t\022\036\n\026usag" - + "e_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\033ba" - + "se_unit_conversion_factor\030\007 \001(\001\022\030\n\020displ" - + "ay_quantity\030\002 \001(\001\022I\n\014tiered_rates\030\003 \003(\0132" - + "3.google.cloud.billing.v1.PricingExpress" - + "ion.TierRate\032N\n\010TierRate\022\032\n\022start_usage_" - + "amount\030\001 \001(\001\022&\n\nunit_price\030\002 \001(\0132\022.googl" - + "e.type.Money\"\204\003\n\017AggregationInfo\022T\n\021aggr" - + "egation_level\030\001 \001(\01629.google.cloud.billi" - + "ng.v1.AggregationInfo.AggregationLevel\022Z" - + "\n\024aggregation_interval\030\002 \001(\0162<.google.cl" - + "oud.billing.v1.AggregationInfo.Aggregati" - + "onInterval\022\031\n\021aggregation_count\030\003 \001(\005\"O\n" - + "\020AggregationLevel\022!\n\035AGGREGATION_LEVEL_U" - + "NSPECIFIED\020\000\022\013\n\007ACCOUNT\020\001\022\013\n\007PROJECT\020\002\"S" - + "\n\023AggregationInterval\022$\n AGGREGATION_INT" - + "ERVAL_UNSPECIFIED\020\000\022\t\n\005DAILY\020\001\022\013\n\007MONTHL" - + "Y\020\002\"<\n\023ListServicesRequest\022\021\n\tpage_size\030" - + "\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"c\n\024ListService" - + "sResponse\0222\n\010services\030\001 \003(\0132 .google.clo" - + "ud.billing.v1.Service\022\027\n\017next_page_token" - + "\030\002 \001(\t\"\352\001\n\017ListSkusRequest\022;\n\006parent\030\001 \001" - + "(\tB+\340A\002\372A%\n#cloudbilling.googleapis.com/" - + "Service\022.\n\nstart_time\030\002 \001(\0132\032.google.pro" - + "tobuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.goog" - + "le.protobuf.Timestamp\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\020ListSkusResponse\022*\n\004skus\030\001 \003(\0132\034." - + "google.cloud.billing.v1.Sku\022\027\n\017next_page" - + "_token\030\002 \001(\t2\367\002\n\014CloudCatalog\022\204\001\n\014ListSe" - + "rvices\022,.google.cloud.billing.v1.ListSer" - + "vicesRequest\032-.google.cloud.billing.v1.L" - + "istServicesResponse\"\027\202\323\344\223\002\016\022\014/v1/service" - + "s\332A\000\022\216\001\n\010ListSkus\022(.google.cloud.billing" - + ".v1.ListSkusRequest\032).google.cloud.billi" - + "ng.v1.ListSkusResponse\"-\202\323\344\223\002\036\022\034/v1/{par" - + "ent=services/*}/skus\332A\006parent\032O\312A\033cloudb" - + "illing.googleapis.com\322A.https://www.goog" - + "leapis.com/auth/cloud-platformB\226\001\n\033com.g" - + "oogle.cloud.billing.v1B\021CloudCatalogProt" - + "oP\001Z>google.golang.org/genproto/googleap" - + "is/cloud/billing/v1;billing\242\002\007CLDCTLG\252\002\027" - + "Google.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", - }); - 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", - "UsageUnitDescription", - "BaseUnit", - "BaseUnitDescription", - "BaseUnitConversionFactor", - "DisplayQuantity", - "TieredRates", - }); - 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_ListServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - 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(7); - 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(8); - 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(9); - 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/CreateBillingAccountRequestOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java deleted file mode 100644 index 32ed78c36fab..000000000000 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2020 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 - // @@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
-   * any created billing accounts must be under a provided master billing
-   * account.
-   * 
- * - * - * .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
-   * any created billing accounts must be under a provided master billing
-   * account.
-   * 
- * - * - * .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
-   * any created billing accounts must be under a provided master billing
-   * account.
-   * 
- * - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder(); -} 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 c363f300c925..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 2020 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/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 95% 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 index eca2bf779d5d..7a049af27d51 100644 --- 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 @@ -40,7 +40,8 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: Retrieves GCP Console billing accounts and associates them with projects. + * Service Description: Retrieves the Google Cloud Console billing accounts and associates them with + * projects. * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -570,12 +571,19 @@ public final BillingAccount updateBillingAccount(UpdateBillingAccountRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a billing account. This method can only be used to create [billing - * subaccounts](https://cloud.google.com/billing/docs/concepts) by GCP resellers. When creating a - * subaccount, the current authenticated user must have the `billing.accounts.update` IAM - * permission on the master account, which is typically given to billing account - * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will - * return an error if the master account has not been provisioned as a reseller account. + * This method creates [billing + * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). + * + *

Google Cloud resellers should use the Channel Services APIs, + * [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) + * and + * [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). + * + *

When creating a subaccount, the current authenticated user must have the + * `billing.accounts.update` IAM permission on the parent account, which is typically given to + * billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). + * This method will return an error if the parent account has not been provisioned as a reseller + * account. * *

Sample code: * @@ -593,7 +601,7 @@ public final BillingAccount updateBillingAccount(UpdateBillingAccountRequest req * * @param billingAccount Required. The billing account resource to create. Currently * CreateBillingAccount only supports subaccount creation, so any created billing accounts - * must be under a provided master billing account. + * must be under a provided parent billing account. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BillingAccount createBillingAccount(BillingAccount billingAccount) { @@ -604,12 +612,19 @@ public final BillingAccount createBillingAccount(BillingAccount billingAccount) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a billing account. This method can only be used to create [billing - * subaccounts](https://cloud.google.com/billing/docs/concepts) by GCP resellers. When creating a - * subaccount, the current authenticated user must have the `billing.accounts.update` IAM - * permission on the master account, which is typically given to billing account - * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will - * return an error if the master account has not been provisioned as a reseller account. + * This method creates [billing + * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). + * + *

Google Cloud resellers should use the Channel Services APIs, + * [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) + * and + * [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). + * + *

When creating a subaccount, the current authenticated user must have the + * `billing.accounts.update` IAM permission on the parent account, which is typically given to + * billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). + * This method will return an error if the parent account has not been provisioned as a reseller + * account. * *

Sample code: * @@ -637,12 +652,19 @@ public final BillingAccount createBillingAccount(CreateBillingAccountRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a billing account. This method can only be used to create [billing - * subaccounts](https://cloud.google.com/billing/docs/concepts) by GCP resellers. When creating a - * subaccount, the current authenticated user must have the `billing.accounts.update` IAM - * permission on the master account, which is typically given to billing account - * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will - * return an error if the master account has not been provisioned as a reseller account. + * This method creates [billing + * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). + * + *

Google Cloud resellers should use the Channel Services APIs, + * [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) + * and + * [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). + * + *

When creating a subaccount, the current authenticated user must have the + * `billing.accounts.update` IAM permission on the parent account, which is typically given to + * billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). + * This method will return an error if the parent account has not been provisioned as a reseller + * account. * *

Sample code: * @@ -852,9 +874,10 @@ public final ListProjectBillingInfoPagedResponse listProjectBillingInfo( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the billing information for a project. The current authenticated user must have - * [permission to view the - * project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ). + * Gets the billing information for a project. The current authenticated user must have the + * `resourcemanager.projects.get` permission for the project, which can be granted by assigning + * the [Project Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) + * role. * *

Sample code: * @@ -882,9 +905,10 @@ public final ProjectBillingInfo getProjectBillingInfo(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the billing information for a project. The current authenticated user must have - * [permission to view the - * project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ). + * Gets the billing information for a project. The current authenticated user must have the + * `resourcemanager.projects.get` permission for the project, which can be granted by assigning + * the [Project Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) + * role. * *

Sample code: * @@ -910,9 +934,10 @@ public final ProjectBillingInfo getProjectBillingInfo(GetProjectBillingInfoReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the billing information for a project. The current authenticated user must have - * [permission to view the - * project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ). + * Gets the billing information for a project. The current authenticated user must have the + * `resourcemanager.projects.get` permission for the project, which can be granted by assigning + * the [Project Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) + * role. * *

Sample code: * @@ -946,8 +971,8 @@ public final ProjectBillingInfo getProjectBillingInfo(GetProjectBillingInfoReque * billing account, this method changes the billing account used for resource usage charges. * *

*Note:* Incurred charges that have not yet been reported in the transaction history - * of the GCP Console might be billed to the new billing account, even if the charge occurred - * before the new billing account was assigned to the project. + * of the Google Cloud Console might be billed to the new billing account, even if the charge + * occurred before the new billing account was assigned to the project. * *

The current authenticated user must have ownership privileges for both the * [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ) and the [billing @@ -1010,8 +1035,8 @@ public final ProjectBillingInfo updateProjectBillingInfo( * billing account, this method changes the billing account used for resource usage charges. * *

*Note:* Incurred charges that have not yet been reported in the transaction history - * of the GCP Console might be billed to the new billing account, even if the charge occurred - * before the new billing account was assigned to the project. + * of the Google Cloud Console might be billed to the new billing account, even if the charge + * occurred before the new billing account was assigned to the project. * *

The current authenticated user must have ownership privileges for both the * [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ) and the [billing @@ -1068,8 +1093,8 @@ public final ProjectBillingInfo updateProjectBillingInfo( * billing account, this method changes the billing account used for resource usage charges. * *

*Note:* Incurred charges that have not yet been reported in the transaction history - * of the GCP Console might be billed to the new billing account, even if the charge occurred - * before the new billing account was assigned to the project. + * of the Google Cloud Console might be billed to the new billing account, even if the charge + * occurred before the new billing account was assigned to the project. * *

The current authenticated user must have ownership privileges for both the * [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ) and the [billing 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 552b4c4be508..e3671d1b54d1 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 ab3ac0dd4a93..01267172c7c6 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 91% 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 index 234ddd153384..160e2fb78dfc 100644 --- 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 @@ -15,11 +15,14 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Cloud Billing API + * + *

The interfaces provided are listed below, along with usage samples. * *

======================= CloudBillingClient ======================= * - *

Service Description: Retrieves GCP Console billing accounts and associates them with projects. + *

Service Description: Retrieves the Google Cloud Console billing accounts and associates them + * with projects. * *

Sample for CloudBillingClient: * 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 99% 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 index 7974d80bf5b4..3c190d3d6d90 100644 --- 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 @@ -107,7 +107,11 @@ public class CloudBillingStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-billing") + .add("https://www.googleapis.com/auth/cloud-billing.readonly") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); private final UnaryCallSettings getBillingAccountSettings; 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 98% 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 index bac3c153b07c..84b16d06b09a 100644 --- 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 @@ -97,7 +97,11 @@ public class CloudCatalogStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-billing") + .add("https://www.googleapis.com/auth/cloud-billing.readonly") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); private final PagedCallSettings< ListServicesRequest, ListServicesResponse, ListServicesPagedResponse> 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 fdd74671fa37..2a089fd7d108 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 @@ -46,6 +46,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 92a88f5c8d10..e0354f5b9686 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/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 similarity index 100% rename from java-billing/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java rename to owl-bot-staging/java-billing/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java 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 50% 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 fe09ea60a974..e713efc4f704 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,27 +1,11 @@ -/* - * Copyright 2020 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 GCP Console billing accounts and associates them with projects.
+ * Retrieves the Google Cloud Console billing accounts and associates them with
+ * projects.
  * 
*/ @javax.annotation.Generated( @@ -35,550 +19,393 @@ private CloudBillingGrpc() {} public static final 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; } - /** 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 GCP Console billing accounts and associates them with projects.
+   * Retrieves the Google Cloud Console billing accounts and associates them with
+   * projects.
    * 
*/ - public abstract static class CloudBillingImplBase implements io.grpc.BindableService { + public static abstract class CloudBillingImplBase implements io.grpc.BindableService { /** - * - * *
      * 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.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).
      * 
*/ - public void listBillingAccounts( - com.google.cloud.billing.v1.ListBillingAccountsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBillingAccountsMethod(), responseObserver); + public 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`.
@@ -588,39 +415,34 @@ 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.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBillingAccountMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBillingAccountMethod(), responseObserver); } /** - * - * *
-     * Creates a billing account.
-     * This method can only be used to create
-     * [billing subaccounts](https://cloud.google.com/billing/docs/concepts)
-     * by GCP resellers.
+     * This method creates [billing
+     * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).
+     * Google Cloud resellers should use the
+     * Channel Services APIs,
+     * [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create)
+     * and
+     * [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create).
      * When creating a subaccount, the current authenticated user must have the
-     * `billing.accounts.update` IAM permission on the master account, which is
+     * `billing.accounts.update` IAM permission on the parent account, which is
      * typically given to billing account
      * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
-     * This method will return an error if the master account has not been
+     * This method will return an error if the parent account has not been
      * provisioned as a reseller account.
      * 
*/ - 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.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
@@ -628,35 +450,26 @@ 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) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListProjectBillingInfoMethod(), responseObserver); + public 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 [permission to view the
-     * project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
-     * ).
+     * must have the `resourcemanager.projects.get` permission for the project,
+     * which can be granted by assigning the [Project
+     * Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
+     * role.
      * 
*/ - public void getProjectBillingInfo( - com.google.cloud.billing.v1.GetProjectBillingInfoRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetProjectBillingInfoMethod(), responseObserver); + public 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
@@ -666,7 +479,7 @@ public void getProjectBillingInfo(
      * billing account, this method changes the billing account used for resource
      * usage charges.
      * *Note:* Incurred charges that have not yet been reported in the transaction
-     * history of the GCP Console might be billed to the new billing
+     * history of the Google Cloud Console might be billed to the new billing
      * account, even if the charge occurred before the new billing account was
      * assigned to the project.
      * The current authenticated user must have ownership privileges for both the
@@ -687,17 +500,12 @@ public void getProjectBillingInfo(
      * *open* billing account.
      * 
*/ - public void updateProjectBillingInfo( - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateProjectBillingInfoMethod(), responseObserver); + public 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
@@ -705,16 +513,12 @@ 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.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); } /** - * - * *
      * Sets the access control policy for a billing account. Replaces any existing
      * policy.
@@ -723,163 +527,144 @@ 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.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.
      * 
*/ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { 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>( - this, METHODID_GET_BILLING_ACCOUNT))) + getGetBillingAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.v1.GetBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount>( + this, 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>( - this, METHODID_LIST_BILLING_ACCOUNTS))) + getListBillingAccountsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.v1.ListBillingAccountsRequest, + com.google.cloud.billing.v1.ListBillingAccountsResponse>( + this, 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>( - this, METHODID_UPDATE_BILLING_ACCOUNT))) + getUpdateBillingAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.v1.UpdateBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount>( + this, 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>( - this, METHODID_CREATE_BILLING_ACCOUNT))) + getCreateBillingAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.v1.CreateBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount>( + this, 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>( - this, 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>( + this, 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>( - this, 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>( + this, 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>( - this, 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>( + this, METHODID_UPDATE_PROJECT_BILLING_INFO))) .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) .build(); } } /** - * - * *
-   * Retrieves GCP Console billing accounts and associates them with projects.
+   * Retrieves the Google Cloud Console billing accounts and associates them with
+   * projects.
    * 
*/ - public static final class CloudBillingStub - extends io.grpc.stub.AbstractAsyncStub { - private CloudBillingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class CloudBillingStub extends io.grpc.stub.AbstractAsyncStub { + 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`.
@@ -889,43 +674,36 @@ 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); } /** - * - * *
-     * Creates a billing account.
-     * This method can only be used to create
-     * [billing subaccounts](https://cloud.google.com/billing/docs/concepts)
-     * by GCP resellers.
+     * This method creates [billing
+     * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).
+     * Google Cloud resellers should use the
+     * Channel Services APIs,
+     * [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create)
+     * and
+     * [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create).
      * When creating a subaccount, the current authenticated user must have the
-     * `billing.accounts.update` IAM permission on the master account, which is
+     * `billing.accounts.update` IAM permission on the parent account, which is
      * typically given to billing account
      * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
-     * This method will return an error if the master account has not been
+     * This method will return an error if the parent account has not been
      * provisioned as a reseller account.
      * 
*/ - 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
@@ -933,39 +711,28 @@ 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 [permission to view the
-     * project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
-     * ).
+     * must have the `resourcemanager.projects.get` permission for the project,
+     * which can be granted by assigning the [Project
+     * Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
+     * 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
@@ -975,7 +742,7 @@ public void getProjectBillingInfo(
      * billing account, this method changes the billing account used for resource
      * usage charges.
      * *Note:* Incurred charges that have not yet been reported in the transaction
-     * history of the GCP Console might be billed to the new billing
+     * history of the Google Cloud Console might be billed to the new billing
      * account, even if the charge occurred before the new billing account was
      * assigned to the project.
      * The current authenticated user must have ownership privileges for both the
@@ -996,19 +763,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
@@ -1016,18 +777,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.
@@ -1036,45 +792,35 @@ 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); } } /** - * - * *
-   * Retrieves GCP Console billing accounts and associates them with projects.
+   * Retrieves the Google Cloud Console billing accounts and associates them with
+   * projects.
    * 
*/ - public static final class CloudBillingBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CloudBillingBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class CloudBillingBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private CloudBillingBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1085,38 +831,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`.
@@ -1126,37 +864,34 @@ 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); } /** - * - * *
-     * Creates a billing account.
-     * This method can only be used to create
-     * [billing subaccounts](https://cloud.google.com/billing/docs/concepts)
-     * by GCP resellers.
+     * This method creates [billing
+     * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).
+     * Google Cloud resellers should use the
+     * Channel Services APIs,
+     * [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create)
+     * and
+     * [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create).
      * When creating a subaccount, the current authenticated user must have the
-     * `billing.accounts.update` IAM permission on the master account, which is
+     * `billing.accounts.update` IAM permission on the parent account, which is
      * typically given to billing account
      * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
-     * This method will return an error if the master account has not been
+     * This method will return an error if the parent account has not been
      * provisioned as a reseller account.
      * 
*/ - 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
@@ -1164,31 +899,26 @@ 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 [permission to view the
-     * project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
-     * ).
+     * must have the `resourcemanager.projects.get` permission for the project,
+     * which can be granted by assigning the [Project
+     * Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
+     * 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
@@ -1198,7 +928,7 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(
      * billing account, this method changes the billing account used for resource
      * usage charges.
      * *Note:* Incurred charges that have not yet been reported in the transaction
-     * history of the GCP Console might be billed to the new billing
+     * history of the Google Cloud Console might be billed to the new billing
      * account, even if the charge occurred before the new billing account was
      * assigned to the project.
      * The current authenticated user must have ownership privileges for both the
@@ -1219,15 +949,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
@@ -1241,8 +968,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.
@@ -1257,31 +982,27 @@ 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); } } /** - * - * *
-   * Retrieves GCP Console billing accounts and associates them with projects.
+   * Retrieves the Google Cloud Console billing accounts and associates them with
+   * projects.
    * 
*/ - public static final class CloudBillingFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CloudBillingFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class CloudBillingFutureStub extends io.grpc.stub.AbstractFutureStub { + private CloudBillingFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1292,40 +1013,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`.
@@ -1335,39 +1048,36 @@ 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); } /** - * - * *
-     * Creates a billing account.
-     * This method can only be used to create
-     * [billing subaccounts](https://cloud.google.com/billing/docs/concepts)
-     * by GCP resellers.
+     * This method creates [billing
+     * subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).
+     * Google Cloud resellers should use the
+     * Channel Services APIs,
+     * [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create)
+     * and
+     * [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create).
      * When creating a subaccount, the current authenticated user must have the
-     * `billing.accounts.update` IAM permission on the master account, which is
+     * `billing.accounts.update` IAM permission on the parent account, which is
      * typically given to billing account
      * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
-     * This method will return an error if the master account has not been
+     * This method will return an error if the parent account has not been
      * provisioned as a reseller account.
      * 
*/ - 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
@@ -1375,33 +1085,28 @@ 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 [permission to view the
-     * project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
-     * ).
+     * must have the `resourcemanager.projects.get` permission for the project,
+     * which can be granted by assigning the [Project
+     * Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
+     * 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
@@ -1411,7 +1116,7 @@ protected CloudBillingFutureStub build(
      * billing account, this method changes the billing account used for resource
      * usage charges.
      * *Note:* Incurred charges that have not yet been reported in the transaction
-     * history of the GCP Console might be billed to the new billing
+     * history of the Google Cloud Console might be billed to the new billing
      * account, even if the charge occurred before the new billing account was
      * assigned to the project.
      * The current authenticated user must have ownership privileges for both the
@@ -1432,17 +1137,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
@@ -1450,15 +1151,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.
@@ -1467,24 +1166,21 @@ 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); } @@ -1501,11 +1197,11 @@ protected CloudBillingFutureStub build( private static final int METHODID_SET_IAM_POLICY = 8; private static final int METHODID_TEST_IAM_PERMISSIONS = 9; - 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 CloudBillingImplBase serviceImpl; private final int methodId; @@ -1519,63 +1215,44 @@ 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; default: throw new AssertionError(); @@ -1593,9 +1270,8 @@ public io.grpc.stub.StreamObserver invoke( } } - 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 @@ -1637,21 +1313,19 @@ 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()) - .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()) + .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/owl-bot-staging/java-billing/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java new file mode 100644 index 000000000000..dd2e8d5de0b1 --- /dev/null +++ b/owl-bot-staging/java-billing/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java @@ -0,0 +1,399 @@ +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
+ * and SKUs.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/billing/v1/cloud_catalog.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CloudCatalogGrpc { + + private CloudCatalogGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.billing.v1.CloudCatalog"; + + // Static method descriptors that strictly reflect the proto. + 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 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(); + } + } + } + return getListServicesMethod; + } + + 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 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(); + } + } + } + return getListSkusMethod; + } + + /** + * 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); + } + }; + 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) { + 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); + } + }; + 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) { + 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); + } + }; + return CloudCatalogFutureStub.newStub(factory, channel); + } + + /** + *
+   * 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 implements io.grpc.BindableService { + + /** + *
+     * Lists all public cloud services.
+     * 
+ */ + public 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.
+     * 
+ */ + public void listSkus(com.google.cloud.billing.v1.ListSkusRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSkusMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, METHODID_LIST_SERVICES))) + .addMethod( + getListSkusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.billing.v1.ListSkusRequest, + com.google.cloud.billing.v1.ListSkusResponse>( + this, METHODID_LIST_SKUS))) + .build(); + } + } + + /** + *
+   * A catalog of Google Cloud Platform services and SKUs.
+   * Provides pricing information and metadata on Google Cloud Platform services
+   * and SKUs.
+   * 
+ */ + public static final class CloudCatalogStub extends io.grpc.stub.AbstractAsyncStub { + 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) { + 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSkusMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * A catalog of Google Cloud Platform services and SKUs.
+   * Provides pricing information and metadata on Google Cloud Platform services
+   * and SKUs.
+   * 
+ */ + public static final class CloudCatalogBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private CloudCatalogBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudCatalogBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudCatalogBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists all public cloud services.
+     * 
+ */ + 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) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSkusMethod(), getCallOptions(), request); + } + } + + /** + *
+   * A catalog of Google Cloud Platform services and SKUs.
+   * Provides pricing information and metadata on Google Cloud Platform services
+   * and SKUs.
+   * 
+ */ + public static final class CloudCatalogFutureStub extends io.grpc.stub.AbstractFutureStub { + private CloudCatalogFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudCatalogFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudCatalogFutureStub(channel, callOptions); + } + + /** + *
+     * Lists all public cloud services.
+     * 
+ */ + 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 listSkus( + com.google.cloud.billing.v1.ListSkusRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSkusMethod(), getCallOptions()), request); + } + } + + 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 final CloudCatalogImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CloudCatalogImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + 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); + break; + case METHODID_LIST_SKUS: + serviceImpl.listSkus((com.google.cloud.billing.v1.ListSkusRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class CloudCatalogBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CloudCatalogBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CloudCatalog"); + } + } + + private static final class CloudCatalogFileDescriptorSupplier + extends CloudCatalogBaseDescriptorSupplier { + CloudCatalogFileDescriptorSupplier() {} + } + + private static final class CloudCatalogMethodDescriptorSupplier + extends CloudCatalogBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CloudCatalogMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CloudCatalogGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudCatalogFileDescriptorSupplier()) + .addMethod(getListServicesMethod()) + .addMethod(getListSkusMethod()) + .build(); + } + } + } + return result; + } +} 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 1e2fd5308425..79f1089cd446 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 2020 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,33 +26,30 @@ private AggregationInfo() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AggregationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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
@@ -79,23 +58,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(
@@ -120,42 +113,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);
     }
 
@@ -164,7 +154,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;
@@ -182,8 +173,6 @@ private AggregationLevel(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The interval at which usage is aggregated to compute cost.
    * Example: "MONTHLY" aggregation interval indicates that usage for tiered
@@ -192,23 +181,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(
@@ -233,14 +236,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;
       }
     }
 
@@ -248,28 +247,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);
     }
 
@@ -278,7 +277,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;
@@ -299,62 +299,43 @@ private AggregationInterval(int value) {
   private int aggregationLevel_;
   /**
    * .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() {
+  @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo.AggregationLevel getAggregationLevel() {
     @SuppressWarnings("deprecation")
-    com.google.cloud.billing.v1.AggregationInfo.AggregationLevel result =
-        com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.valueOf(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.valueOf(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_;
   /**
-   * .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() {
+  @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggregationInterval() {
     @SuppressWarnings("deprecation")
-    com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result =
-        com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.valueOf(
-            aggregationInterval_);
-    return result == null
-        ? com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.UNRECOGNIZED
-        : result;
+    com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result = com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.valueOf(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_;
   /**
-   *
-   *
    * 
    * The number of intervals to aggregate over.
    * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -362,7 +343,6 @@ public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggreg
    * 
* * int32 aggregation_count = 3; - * * @return The aggregationCount. */ @java.lang.Override @@ -371,7 +351,6 @@ public int getAggregationCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -383,17 +362,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) { @@ -408,20 +382,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; @@ -431,17 +402,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; } @@ -464,136 +435,130 @@ 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(); @@ -607,9 +572,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 @@ -628,8 +593,7 @@ 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); + com.google.cloud.billing.v1.AggregationInfo result = new com.google.cloud.billing.v1.AggregationInfo(this); result.aggregationLevel_ = aggregationLevel_; result.aggregationInterval_ = aggregationInterval_; result.aggregationCount_ = aggregationCount_; @@ -641,39 +605,38 @@ public com.google.cloud.billing.v1.AggregationInfo buildPartial() { 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; @@ -717,31 +680,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - aggregationLevel_ = input.readEnum(); - - break; - } // case 8 - case 16: - { - aggregationInterval_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - aggregationCount_ = input.readInt32(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + aggregationLevel_ = input.readEnum(); + + break; + } // case 8 + case 16: { + aggregationInterval_ = input.readEnum(); + + break; + } // case 16 + case 24: { + aggregationCount_ = input.readInt32(); + + 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,62 +714,52 @@ public Builder mergeFrom( 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. */ public Builder setAggregationLevelValue(int value) { - + aggregationLevel_ = value; onChanged(); return this; } /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; - * * @return The aggregationLevel. */ @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo.AggregationLevel getAggregationLevel() { @SuppressWarnings("deprecation") - com.google.cloud.billing.v1.AggregationInfo.AggregationLevel result = - com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.valueOf(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.valueOf(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(); } - + aggregationLevel_ = value.getNumber(); onChanged(); return this; } /** * .google.cloud.billing.v1.AggregationInfo.AggregationLevel aggregation_level = 1; - * * @return This builder for chaining. */ public Builder clearAggregationLevel() { - + aggregationLevel_ = 0; onChanged(); return this; @@ -818,79 +767,60 @@ 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. */ public Builder setAggregationIntervalValue(int value) { - + aggregationInterval_ = value; onChanged(); 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() { + public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggregationInterval() { @SuppressWarnings("deprecation") - com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result = - com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.valueOf( - aggregationInterval_); - return result == null - ? com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.UNRECOGNIZED - : result; + com.google.cloud.billing.v1.AggregationInfo.AggregationInterval result = com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.valueOf(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(); } - + aggregationInterval_ = value.getNumber(); onChanged(); 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() { - + aggregationInterval_ = 0; onChanged(); 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,
@@ -898,7 +828,6 @@ public Builder clearAggregationInterval() {
      * 
* * int32 aggregation_count = 3; - * * @return The aggregationCount. */ @java.lang.Override @@ -906,8 +835,6 @@ public int getAggregationCount() { return aggregationCount_; } /** - * - * *
      * The number of intervals to aggregate over.
      * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -915,19 +842,16 @@ public int getAggregationCount() {
      * 
* * int32 aggregation_count = 3; - * * @param value The aggregationCount to set. * @return This builder for chaining. */ public Builder setAggregationCount(int value) { - + aggregationCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of intervals to aggregate over.
      * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -935,18 +859,17 @@ public Builder setAggregationCount(int value) {
      * 
* * int32 aggregation_count = 3; - * * @return This builder for chaining. */ public Builder clearAggregationCount() { - + aggregationCount_ = 0; 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); } @@ -956,12 +879,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(); } @@ -970,27 +893,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; @@ -1005,4 +928,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 e0237fc7e6bd..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 2020 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 66% 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 98d3e5b891a1..9647480175b6 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,43 +1,26 @@ -/* - * Copyright 2020 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 [GCP Console](https://console.cloud.google.com/).
- * You can assign a billing account to one or more projects.
+ * A billing account in the
+ * [Google Cloud Console](https://console.cloud.google.com/). You can assign a
+ * billing account to one or more projects.
  * 
* * 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_ = ""; @@ -46,44 +29,40 @@ private BillingAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BillingAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private volatile java.lang.Object name_; /** - * - * *
-   * The resource name of the billing account. The resource name has the form
+   * Output only. The resource name of the billing account. The resource name has the form
    * `billingAccounts/{billing_account_id}`. For example,
    * `billingAccounts/012345-567890-ABCDEF` would be the resource name for
    * billing account `012345-567890-ABCDEF`.
    * 
* - * string name = 1 [(.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,32 +71,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; } } /** - * - * *
-   * The resource name of the billing account. The resource name has the form
+   * Output only. The resource name of the billing account. The resource name has the form
    * `billingAccounts/{billing_account_id}`. For example,
    * `billingAccounts/012345-567890-ABCDEF` would be the resource name for
    * billing account `012345-567890-ABCDEF`.
    * 
* - * string name = 1 [(.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 { @@ -128,8 +107,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int OPEN_FIELD_NUMBER = 2; 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
@@ -137,7 +114,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The open. */ @java.lang.Override @@ -148,15 +124,12 @@ public boolean getOpen() { public static final int DISPLAY_NAME_FIELD_NUMBER = 3; 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 GCP Console.
+   * Account`. This name is displayed in the Google Cloud Console.
    * 
* * string display_name = 3; - * * @return The displayName. */ @java.lang.Override @@ -165,30 +138,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 GCP Console.
+   * 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 { @@ -199,18 +172,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int MASTER_BILLING_ACCOUNT_FIELD_NUMBER = 4; private volatile java.lang.Object masterBillingAccount_; /** - * - * *
    * If this account is a
    * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
-   * will be the resource name of the master billing account that it is being
+   * will be the resource name of the parent billing account that it is being
    * resold through.
    * Otherwise this will be empty.
    * 
* * string master_billing_account = 4; - * * @return The masterBillingAccount. */ @java.lang.Override @@ -219,33 +189,33 @@ 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
-   * will be the resource name of the master billing account that it is being
+   * will be the resource name of the parent billing account that it is being
    * resold through.
    * Otherwise this will be empty.
    * 
* * 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 { @@ -254,7 +224,6 @@ public com.google.protobuf.ByteString getMasterBillingAccountBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +235,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_); } @@ -292,7 +262,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_); @@ -308,18 +279,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.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; + 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -334,7 +308,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; @@ -344,137 +319,132 @@ 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 [GCP Console](https://console.cloud.google.com/).
-   * You can assign a billing account to one or more projects.
+   * A billing account in the
+   * [Google Cloud Console](https://console.cloud.google.com/). You can assign a
+   * billing account to one or more projects.
    * 
* * 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(); @@ -490,9 +460,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 @@ -511,8 +481,7 @@ 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); + com.google.cloud.billing.v1.BillingAccount result = new com.google.cloud.billing.v1.BillingAccount(this); result.name_ = name_; result.open_ = open_; result.displayName_ = displayName_; @@ -525,39 +494,38 @@ public com.google.cloud.billing.v1.BillingAccount buildPartial() { 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; @@ -607,37 +575,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); + case 10: { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: - { - open_ = input.readBool(); + break; + } // case 10 + case 16: { + open_ = input.readBool(); - break; - } // case 16 - case 26: - { - displayName_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: { + displayName_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - masterBillingAccount_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + masterBillingAccount_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -650,23 +613,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
-     * The resource name of the billing account. The resource name has the form
+     * Output only. The resource name of the billing account. The resource name has the form
      * `billingAccounts/{billing_account_id}`. For example,
      * `billingAccounts/012345-567890-ABCDEF` would be the resource name for
      * billing account `012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.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; @@ -675,24 +636,23 @@ public java.lang.String getName() { } } /** - * - * *
-     * The resource name of the billing account. The resource name has the form
+     * Output only. The resource name of the billing account. The resource name has the form
      * `billingAccounts/{billing_account_id}`. For example,
      * `billingAccounts/012345-567890-ABCDEF` would be the resource name for
      * billing account `012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.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 { @@ -700,79 +660,70 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * The resource name of the billing account. The resource name has the form
+     * Output only. The resource name of the billing account. The resource name has the form
      * `billingAccounts/{billing_account_id}`. For example,
      * `billingAccounts/012345-567890-ABCDEF` would be the resource name for
      * billing account `012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
-     * The resource name of the billing account. The resource name has the form
+     * Output only. The resource name of the billing account. The resource name has the form
      * `billingAccounts/{billing_account_id}`. For example,
      * `billingAccounts/012345-567890-ABCDEF` would be the resource name for
      * billing account `012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
-     * The resource name of the billing account. The resource name has the form
+     * Output only. The resource name of the billing account. The resource name has the form
      * `billingAccounts/{billing_account_id}`. For example,
      * `billingAccounts/012345-567890-ABCDEF` would be the resource name for
      * billing account `012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); 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
@@ -780,7 +731,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The open. */ @java.lang.Override @@ -788,8 +738,6 @@ 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
@@ -797,19 +745,16 @@ public boolean getOpen() {
      * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The open to set. * @return This builder for chaining. */ public Builder setOpen(boolean value) { - + open_ = value; onChanged(); 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
@@ -817,11 +762,10 @@ public Builder setOpen(boolean value) {
      * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearOpen() { - + open_ = false; onChanged(); return this; @@ -829,21 +773,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 GCP Console.
+     * 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; @@ -852,22 +794,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 GCP Console.
+     * 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 { @@ -875,64 +816,57 @@ 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 GCP Console.
+     * 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) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * The display name given to the billing account, such as `My Billing
-     * Account`. This name is displayed in the GCP Console.
+     * Account`. This name is displayed in the Google Cloud Console.
      * 
* * string display_name = 3; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * The display name given to the billing account, such as `My Billing
-     * Account`. This name is displayed in the GCP Console.
+     * 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) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -940,24 +874,22 @@ 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
-     * will be the resource name of the master billing account that it is being
+     * will be the resource name of the parent billing account that it is being
      * resold through.
      * Otherwise this will be empty.
      * 
* * 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; @@ -966,25 +898,24 @@ public java.lang.String getMasterBillingAccount() { } } /** - * - * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
-     * will be the resource name of the master billing account that it is being
+     * will be the resource name of the parent billing account that it is being
      * resold through.
      * Otherwise this will be empty.
      * 
* * 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 { @@ -992,80 +923,73 @@ public com.google.protobuf.ByteString getMasterBillingAccountBytes() { } } /** - * - * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
-     * will be the resource name of the master billing account that it is being
+     * will be the resource name of the parent billing account that it is being
      * resold through.
      * Otherwise this will be empty.
      * 
* * string master_billing_account = 4; - * * @param value The masterBillingAccount to set. * @return This builder for chaining. */ - public Builder setMasterBillingAccount(java.lang.String value) { + public Builder setMasterBillingAccount( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + masterBillingAccount_ = value; onChanged(); return this; } /** - * - * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
-     * will be the resource name of the master billing account that it is being
+     * will be the resource name of the parent billing account that it is being
      * resold through.
      * Otherwise this will be empty.
      * 
* * string master_billing_account = 4; - * * @return This builder for chaining. */ public Builder clearMasterBillingAccount() { - + masterBillingAccount_ = getDefaultInstance().getMasterBillingAccount(); onChanged(); return this; } /** - * - * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
-     * will be the resource name of the master billing account that it is being
+     * will be the resource name of the parent billing account that it is being
      * resold through.
      * Otherwise this will be empty.
      * 
* * 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) { + public Builder setMasterBillingAccountBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + masterBillingAccount_ = 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); } @@ -1075,12 +999,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(); } @@ -1089,27 +1013,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; @@ -1124,4 +1048,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 60% 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 7783928f97a4..7b4b8122baa1 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,62 +1,39 @@ -/* - * Copyright 2020 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 { /** - * - * *
-   * The resource name of the billing account. The resource name has the form
+   * Output only. The resource name of the billing account. The resource name has the form
    * `billingAccounts/{billing_account_id}`. For example,
    * `billingAccounts/012345-567890-ABCDEF` would be the resource name for
    * billing account `012345-567890-ABCDEF`.
    * 
* - * string name = 1 [(.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
-   * The resource name of the billing account. The resource name has the form
+   * Output only. The resource name of the billing account. The resource name has the form
    * `billingAccounts/{billing_account_id}`. For example,
    * `billingAccounts/012345-567890-ABCDEF` would be the resource name for
    * billing account `012345-567890-ABCDEF`.
    * 
* - * string name = 1 [(.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
@@ -64,68 +41,57 @@ public interface BillingAccountOrBuilder
    * 
* * 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 GCP Console.
+   * 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 GCP Console.
+   * 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
-   * will be the resource name of the master billing account that it is being
+   * will be the resource name of the parent billing account that it is being
    * resold through.
    * Otherwise this will be empty.
    * 
* * 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
-   * will be the resource name of the master billing account that it is being
+   * will be the resource name of the parent billing account that it is being
    * resold through.
    * Otherwise this will be empty.
    * 
* * string master_billing_account = 4; - * * @return The bytes for masterBillingAccount. */ - com.google.protobuf.ByteString getMasterBillingAccountBytes(); + com.google.protobuf.ByteString + getMasterBillingAccountBytes(); } 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 70% 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 990aec419e3f..b14d17c4f169 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 2020 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,41 +28,37 @@ private Category() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Category(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -89,29 +67,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 { @@ -122,15 +100,12 @@ public com.google.protobuf.ByteString getServiceDisplayNameBytes() { public static final int RESOURCE_FAMILY_FIELD_NUMBER = 2; 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 @@ -139,30 +114,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 { @@ -173,15 +148,12 @@ public com.google.protobuf.ByteString getResourceFamilyBytes() { public static final int RESOURCE_GROUP_FIELD_NUMBER = 3; 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 @@ -190,30 +162,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 { @@ -224,15 +196,12 @@ public com.google.protobuf.ByteString getResourceGroupBytes() { public static final int USAGE_TYPE_FIELD_NUMBER = 4; 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 @@ -241,30 +210,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 { @@ -273,7 +242,6 @@ public com.google.protobuf.ByteString getUsageTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,7 +253,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_); } @@ -327,17 +296,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; } @@ -362,135 +335,130 @@ 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 +474,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 @@ -540,39 +508,38 @@ public com.google.cloud.billing.v1.Category buildPartial() { 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; @@ -623,37 +590,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - serviceDisplayName_ = input.readStringRequireUtf8(); + case 10: { + serviceDisplayName_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - resourceFamily_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + resourceFamily_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - resourceGroup_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + resourceGroup_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - usageType_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + usageType_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -666,20 +628,18 @@ public Builder mergeFrom( 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; @@ -688,21 +648,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 { @@ -710,61 +669,54 @@ 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) { + public Builder setServiceDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceDisplayName_ = value; 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() { - + serviceDisplayName_ = getDefaultInstance().getServiceDisplayName(); onChanged(); 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) { + public Builder setServiceDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceDisplayName_ = value; onChanged(); return this; @@ -772,21 +724,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; @@ -795,22 +745,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 { @@ -818,64 +767,57 @@ 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) { + public Builder setResourceFamily( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceFamily_ = value; 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() { - + resourceFamily_ = getDefaultInstance().getResourceFamily(); onChanged(); 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) { + public Builder setResourceFamilyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceFamily_ = value; onChanged(); return this; @@ -883,21 +825,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; @@ -906,22 +846,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 { @@ -929,64 +868,57 @@ 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) { + public Builder setResourceGroup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceGroup_ = value; 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() { - + resourceGroup_ = getDefaultInstance().getResourceGroup(); onChanged(); 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) { + public Builder setResourceGroupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceGroup_ = value; onChanged(); return this; @@ -994,21 +926,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; @@ -1017,22 +947,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 { @@ -1040,71 +969,64 @@ 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) { + public Builder setUsageType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + usageType_ = value; 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() { - + usageType_ = getDefaultInstance().getUsageType(); onChanged(); 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) { + public Builder setUsageTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + usageType_ = 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); } @@ -1114,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(); } @@ -1128,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; @@ -1163,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 9d934f6b4e3a..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 2020 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..416acf408157 --- /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,272 @@ +// 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; + + 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\"" + + "\233\001\n\016BillingAccount\022@\n\004name\030\001 \001(\tB2\340A\003\372A," + + "\n*cloudbilling.googleapis.com/BillingAcc" + + "ount\022\021\n\004open\030\002 \001(\010B\003\340A\003\022\024\n\014display_name\030" + + "\003 \001(\t\022\036\n\026master_billing_account\030\004 \001(\t\"m\n" + + "\022ProjectBillingInfo\022\014\n\004name\030\001 \001(\t\022\022\n\npro" + + "ject_id\030\002 \001(\t\022\034\n\024billing_account_name\030\003 " + + "\001(\t\022\027\n\017billing_enabled\030\004 \001(\010\"\\\n\030GetBilli" + + "ngAccountRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*" + + "cloudbilling.googleapis.com/BillingAccou" + + "nt\"S\n\032ListBillingAccountsRequest\022\021\n\tpage" + + "_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\022\016\n\006filte" + + "r\030\003 \001(\t\"y\n\033ListBillingAccountsResponse\022A" + + "\n\020billing_accounts\030\001 \003(\0132\'.google.cloud." + + "billing.v1.BillingAccount\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"d\n\033CreateBillingAccountReques" + + "t\022E\n\017billing_account\030\001 \001(\0132\'.google.clou" + + "d.billing.v1.BillingAccountB\003\340A\002\"\317\001\n\033Upd" + + "ateBillingAccountRequest\022@\n\004name\030\001 \001(\tB2" + + "\340A\002\372A,\n*cloudbilling.googleapis.com/Bill" + + "ingAccount\022=\n\007account\030\002 \001(\0132\'.google.clo" + + "ud.billing.v1.BillingAccountB\003\340A\002\022/\n\013upd" + + "ate_mask\030\003 \001(\0132\032.google.protobuf.FieldMa" + + "sk\"\210\001\n\035ListProjectBillingInfoRequest\022@\n\004" + + "name\030\001 \001(\tB2\340A\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\"1\n\034" + + "GetProjectBillingInfoRequest\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\002\"\177\n\037UpdateProjectBillingInfoReque" + + "st\022\021\n\004name\030\001 \001(\tB\003\340A\002\022I\n\024project_billing" + + "_info\030\002 \001(\0132+.google.cloud.billing.v1.Pr" + + "ojectBillingInfo2\262\017\n\014CloudBilling\022\234\001\n\021Ge" + + "tBillingAccount\0221.google.cloud.billing.v" + + "1.GetBillingAccountRequest\032\'.google.clou" + + "d.billing.v1.BillingAccount\"+\202\323\344\223\002\036\022\034/v1" + + "/{name=billingAccounts/*}\332A\004name\022\240\001\n\023Lis" + + "tBillingAccounts\0223.google.cloud.billing." + + "v1.ListBillingAccountsRequest\0324.google.c" + + "loud.billing.v1.ListBillingAccountsRespo" + + "nse\"\036\202\323\344\223\002\025\022\023/v1/billingAccounts\332A\000\022\263\001\n\024" + + "UpdateBillingAccount\0224.google.cloud.bill" + + "ing.v1.UpdateBillingAccountRequest\032\'.goo" + + "gle.cloud.billing.v1.BillingAccount\"<\202\323\344" + + "\223\002\'2\034/v1/{name=billingAccounts/*}:\007accou" + + "nt\332A\014name,account\022\265\001\n\024CreateBillingAccou" + + "nt\0224.google.cloud.billing.v1.CreateBilli" + + "ngAccountRequest\032\'.google.cloud.billing." + + "v1.BillingAccount\">\202\323\344\223\002&\"\023/v1/billingAc" + + "counts:\017billing_account\332A\017billing_accoun" + + "t\022\277\001\n\026ListProjectBillingInfo\0226.google.cl" + + "oud.billing.v1.ListProjectBillingInfoReq" + + "uest\0327.google.cloud.billing.v1.ListProje" + + "ctBillingInfoResponse\"4\202\323\344\223\002\'\022%/v1/{name" + + "=billingAccounts/*}/projects\332A\004name\022\255\001\n\025" + + "GetProjectBillingInfo\0225.google.cloud.bil" + + "ling.v1.GetProjectBillingInfoRequest\032+.g" + + "oogle.cloud.billing.v1.ProjectBillingInf" + + "o\"0\202\323\344\223\002#\022!/v1/{name=projects/*}/billing" + + "Info\332A\004name\022\336\001\n\030UpdateProjectBillingInfo" + + "\0228.google.cloud.billing.v1.UpdateProject" + + "BillingInfoRequest\032+.google.cloud.billin" + + "g.v1.ProjectBillingInfo\"[\202\323\344\223\0029\032!/v1/{na" + + "me=projects/*}/billingInfo:\024project_bill" + + "ing_info\332A\031name,project_billing_info\022\213\001\n" + + "\014GetIamPolicy\022\".google.iam.v1.GetIamPoli" + + "cyRequest\032\025.google.iam.v1.Policy\"@\202\323\344\223\002/" + + "\022-/v1/{resource=billingAccounts/*}:getIa" + + "mPolicy\332A\010resource\022\225\001\n\014SetIamPolicy\022\".go" + + "ogle.iam.v1.SetIamPolicyRequest\032\025.google" + + ".iam.v1.Policy\"J\202\323\344\223\0022\"-/v1/{resource=bi" + + "llingAccounts/*}:setIamPolicy:\001*\332A\017resou" + + "rce,policy\022\300\001\n\022TestIamPermissions\022(.goog" + + "le.iam.v1.TestIamPermissionsRequest\032).go" + + "ogle.iam.v1.TestIamPermissionsResponse\"U" + + "\202\323\344\223\0028\"3/v1/{resource=billingAccounts/*}" + + ":testIamPermissions:\001*\332A\024resource,permis" + + "sions\032\265\001\312A\033cloudbilling.googleapis.com\322A" + + "\223\001https://www.googleapis.com/auth/cloud-" + + "billing,https://www.googleapis.com/auth/" + + "cloud-billing.readonly,https://www.googl" + + "eapis.com/auth/cloud-platformBr\n\033com.goo" + + "gle.cloud.billing.v1B\021CloudBillingProtoP" + + "\001Z>google.golang.org/genproto/googleapis" + + "/cloud/billing/v1;billingb\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", }); + 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", }); + 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", }); + 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", }); + 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.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..027fa130dadc --- /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\"\352\001\n\017Lis" + + "tSkusRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#cl" + + "oudbilling.googleapis.com/Service\022.\n\nsta" + + "rt_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\022,\n\010end_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\025\n\rcurrency_code\030\004 \001(\t\022\021\n\tpage_s" + + "ize\030\005 \001(\005\022\022\n\npage_token\030\006 \001(\t\"W\n\020ListSku" + + "sResponse\022*\n\004skus\030\001 \003(\0132\034.google.cloud.b" + + "illing.v1.Sku\022\027\n\017next_page_token\030\002 \001(\t2\336" + + "\003\n\014CloudCatalog\022\204\001\n\014ListServices\022,.googl" + + "e.cloud.billing.v1.ListServicesRequest\032-" + + ".google.cloud.billing.v1.ListServicesRes" + + "ponse\"\027\202\323\344\223\002\016\022\014/v1/services\332A\000\022\216\001\n\010ListS" + + "kus\022(.google.cloud.billing.v1.ListSkusRe" + + "quest\032).google.cloud.billing.v1.ListSkus" + + "Response\"-\202\323\344\223\002\036\022\034/v1/{parent=services/*" + + "}/skus\332A\006parent\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" + + "\226\001\n\033com.google.cloud.billing.v1B\021CloudCa" + + "talogProtoP\001Z>google.golang.org/genproto" + + "/googleapis/cloud/billing/v1;billing\242\002\007C" + + "LDCTLG\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 60% 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 c56f22dc61d5..4889eaef0013 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,86 +1,63 @@ -/* - * Copyright 2020 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() {} + private CreateBillingAccountRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBillingAccountRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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
-   * any created billing accounts must be under a provided master billing
+   * any created billing accounts must be under a provided parent billing
    * 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 @@ -88,40 +65,29 @@ public boolean hasBillingAccount() { return billingAccount_ != null; } /** - * - * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
-   * any created billing accounts must be under a provided master billing
+   * any created billing accounts must be under a provided parent billing
    * 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
-   * any created billing accounts must be under a provided master billing
+   * any created billing accounts must be under a provided parent billing
    * 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() { @@ -129,7 +95,6 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBu } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,7 +106,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()); } @@ -155,7 +121,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()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -165,17 +132,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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -198,136 +165,129 @@ 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(); @@ -341,9 +301,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 @@ -362,8 +322,7 @@ 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); + com.google.cloud.billing.v1.CreateBillingAccountRequest result = new com.google.cloud.billing.v1.CreateBillingAccountRequest(this); if (billingAccountBuilder_ == null) { result.billingAccount_ = billingAccount_; } else { @@ -377,39 +336,38 @@ public com.google.cloud.billing.v1.CreateBillingAccountRequest buildPartial() { 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; @@ -417,8 +375,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()); } @@ -448,19 +405,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBillingAccountFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBillingAccountFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -473,67 +430,48 @@ public Builder mergeFrom( 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
-     * any created billing accounts must be under a provided master billing
+     * any created billing accounts must be under a provided parent billing
      * 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 billingAccountBuilder_ != null || billingAccount_ != null; } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
-     * any created billing accounts must be under a provided master billing
+     * any created billing accounts must be under a provided parent billing
      * 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
-     * any created billing accounts must be under a provided master billing
+     * any created billing accounts must be under a provided parent billing
      * 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) { @@ -549,18 +487,14 @@ 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
-     * any created billing accounts must be under a provided master billing
+     * any created billing accounts must be under a provided parent billing
      * 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) { @@ -574,26 +508,20 @@ public Builder setBillingAccount( return this; } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
-     * any created billing accounts must be under a provided master billing
+     * any created billing accounts must be under a provided parent billing
      * 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 (billingAccount_ != null) { billingAccount_ = - com.google.cloud.billing.v1.BillingAccount.newBuilder(billingAccount_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.billing.v1.BillingAccount.newBuilder(billingAccount_).mergeFrom(value).buildPartial(); } else { billingAccount_ = value; } @@ -605,18 +533,14 @@ 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
-     * any created billing accounts must be under a provided master billing
+     * any created billing accounts must be under a provided parent billing
      * 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() { if (billingAccountBuilder_ == null) { @@ -630,80 +554,64 @@ public Builder clearBillingAccount() { return this; } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
-     * any created billing accounts must be under a provided master billing
+     * any created billing accounts must be under a provided parent billing
      * 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() { - + onChanged(); return getBillingAccountFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
-     * any created billing accounts must be under a provided master billing
+     * any created billing accounts must be under a provided parent billing
      * 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
-     * any created billing accounts must be under a provided master billing
+     * any created billing accounts must be under a provided parent billing
      * 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_; } - @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); } @@ -713,12 +621,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(); } @@ -727,27 +635,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; @@ -762,4 +670,6 @@ 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/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java new file mode 100644 index 000000000000..c5a28ba46116 --- /dev/null +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java @@ -0,0 +1,45 @@ +// 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 + // @@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
+   * any created billing accounts must be under a provided parent billing
+   * account.
+   * 
+ * + * .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
+   * any created billing accounts must be under a provided parent billing
+   * account.
+   * 
+ * + * .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
+   * any created billing accounts must be under a provided parent billing
+   * account.
+   * 
+ * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder(); +} 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/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java new file mode 100644 index 000000000000..0d2fd890f4c0 --- /dev/null +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomy.java @@ -0,0 +1,951 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.GeoTaxonomy) + GeoTaxonomyOrBuilder { +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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GeoTaxonomy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + 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 + .ensureFieldAccessorsInitialized( + 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 { + /** + *
+     * The type is not specified.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + 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.
+     * 
+ * + * GLOBAL = 1; + */ + GLOBAL(1), + /** + *
+     * The sku is available in a specific region, e.g. "us-west2".
+     * 
+ * + * REGIONAL = 2; + */ + REGIONAL(2), + /** + *
+     * The sku is associated with multiple regions, e.g. "us-west2" and
+     * "us-east1".
+     * 
+ * + * MULTI_REGIONAL = 3; + */ + MULTI_REGIONAL(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * The type is not specified.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + 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.
+     * 
+ * + * GLOBAL = 1; + */ + public static final int GLOBAL_VALUE = 1; + /** + *
+     * The sku is available in a specific region, e.g. "us-west2".
+     * 
+ * + * REGIONAL = 2; + */ + public static final int REGIONAL_VALUE = 2; + /** + *
+     * The sku is associated with multiple regions, e.g. "us-west2" and
+     * "us-east1".
+     * 
+ * + * MULTI_REGIONAL = 3; + */ + public static final int MULTI_REGIONAL_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire 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; + } + } + + 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() { + 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() { + return 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) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.billing.v1.GeoTaxonomy.Type) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + *
+   * 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() { + 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() { + @SuppressWarnings("deprecation") + com.google.cloud.billing.v1.GeoTaxonomy.Type result = com.google.cloud.billing.v1.GeoTaxonomy.Type.valueOf(type_); + return result == null ? com.google.cloud.billing.v1.GeoTaxonomy.Type.UNRECOGNIZED : result; + } + + public static final int REGIONS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList 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 A list containing the regions. + */ + 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. + */ + 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) { + return regions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + for (int i = 0; i < regions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, regions_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != com.google.cloud.billing.v1.GeoTaxonomy.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + { + int dataSize = 0; + for (int i = 0; i < regions_.size(); i++) { + dataSize += computeStringSizeNoTag(regions_.getRaw(i)); + } + size += dataSize; + size += 1 * getRegionsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.billing.v1.GeoTaxonomy)) { + return super.equals(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 (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (getRegionsCount() > 0) { + hash = (37 * hash) + REGIONS_FIELD_NUMBER; + hash = (53 * hash) + getRegionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.billing.v1.GeoTaxonomy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = 0; + + regions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + 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; + } + + @java.lang.Override + public com.google.cloud.billing.v1.GeoTaxonomy getDefaultInstanceForType() { + return com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.billing.v1.GeoTaxonomy build() { + com.google.cloud.billing.v1.GeoTaxonomy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + result.type_ = type_; + if (((bitField0_ & 0x00000001) != 0)) { + regions_ = regions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.regions_ = regions_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.billing.v1.GeoTaxonomy other) { + if (other == com.google.cloud.billing.v1.GeoTaxonomy.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.regions_.isEmpty()) { + if (regions_.isEmpty()) { + regions_ = other.regions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRegionsIsMutable(); + regions_.addAll(other.regions_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + type_ = input.readEnum(); + + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // 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() { + 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. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + 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() { + @SuppressWarnings("deprecation") + com.google.cloud.billing.v1.GeoTaxonomy.Type result = com.google.cloud.billing.v1.GeoTaxonomy.Type.valueOf(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. + */ + public Builder setType(com.google.cloud.billing.v1.GeoTaxonomy.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + 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() { + + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList regions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRegionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + regions_ = new com.google.protobuf.LazyStringArrayList(regions_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * 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() { + return regions_.getUnmodifiableView(); + } + /** + *
+     * 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. + */ + 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) { + 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(); + } + ensureRegionsIsMutable(); + regions_.set(index, value); + 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 regions to add. + * @return This builder for chaining. + */ + public Builder addRegions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegionsIsMutable(); + regions_.add(value); + 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 values The regions to add. + * @return This builder for chaining. + */ + public Builder addAllRegions( + java.lang.Iterable values) { + ensureRegionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, regions_); + 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.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + 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(); + } + checkByteStringIsUtf8(value); + ensureRegionsIsMutable(); + regions_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java new file mode 100644 index 000000000000..ba34e758c02d --- /dev/null +++ b/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GeoTaxonomyOrBuilder.java @@ -0,0 +1,73 @@ +// 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 + // @@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(); + /** + *
+   * 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); +} 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 1072f771e723..b90d8678e0bd 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,86 +1,62 @@ -/* - * Copyright 2020 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -89,32 +65,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 { @@ -123,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +108,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_); } @@ -159,15 +133,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; } @@ -187,135 +161,129 @@ 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(); @@ -325,9 +293,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 @@ -346,8 +314,7 @@ 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); + com.google.cloud.billing.v1.GetBillingAccountRequest result = new com.google.cloud.billing.v1.GetBillingAccountRequest(this); result.name_ = name_; onBuilt(); return result; @@ -357,39 +324,38 @@ public com.google.cloud.billing.v1.GetBillingAccountRequest buildPartial() { 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; @@ -397,8 +363,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_; onChanged(); @@ -429,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -454,23 +417,19 @@ public Builder mergeFrom( 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; @@ -479,24 +438,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 { @@ -504,77 +460,64 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -584,12 +527,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(); } @@ -598,27 +541,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; @@ -633,4 +576,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..27f6965dc897 --- /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 66% 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 86887651feeb..66b6d2216252 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,84 +1,62 @@ -/* - * Copyright 2020 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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]; - * * @return The name. */ @java.lang.Override @@ -87,30 +65,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]; - * * @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,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +108,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_); } @@ -155,15 +133,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; } @@ -183,136 +161,129 @@ 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(); @@ -322,9 +293,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 @@ -343,8 +314,7 @@ 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); + com.google.cloud.billing.v1.GetProjectBillingInfoRequest result = new com.google.cloud.billing.v1.GetProjectBillingInfoRequest(this); result.name_ = name_; onBuilt(); return result; @@ -354,39 +324,38 @@ public com.google.cloud.billing.v1.GetProjectBillingInfoRequest buildPartial() { 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; @@ -394,8 +363,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_; onChanged(); @@ -426,19 +394,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -451,21 +417,19 @@ public Builder mergeFrom( 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]; - * * @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; @@ -474,22 +438,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]; - * * @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 { @@ -497,71 +460,64 @@ 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]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); 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]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -571,12 +527,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(); } @@ -585,27 +541,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; @@ -620,4 +576,6 @@ 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/owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java similarity index 54% rename from java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java rename to owl-bot-staging/java-billing/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java index bd1d3ba42c09..58539acdc672 100644 --- a/java-billing/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 @@ -1,52 +1,31 @@ -/* - * Copyright 2020 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 +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]; - * * @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]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + 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 71% 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 f5b92aab271b..86819e9deab6 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 2020 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_ = ""; @@ -44,42 +26,38 @@ private ListBillingAccountsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBillingAccountsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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_; /** - * - * *
    * Requested page size. The maximum page size is 100; this is also the
    * default.
    * 
* * int32 page_size = 1; - * * @return The pageSize. */ @java.lang.Override @@ -90,8 +68,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; 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`
@@ -99,7 +75,6 @@ public int getPageSize() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -108,15 +83,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`
@@ -124,15 +98,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 { @@ -143,8 +118,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** - * - * *
    * Options for how to filter the returned billing accounts.
    * Currently this only supports filtering for
@@ -155,7 +128,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 3; - * * @return The filter. */ @java.lang.Override @@ -164,15 +136,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.
    * Currently this only supports filtering for
@@ -183,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 { @@ -200,7 +172,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,7 +183,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_); } @@ -232,7 +204,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_); @@ -248,17 +221,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.ListBillingAccountsRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListBillingAccountsRequest other = - (com.google.cloud.billing.v1.ListBillingAccountsRequest) 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 (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,136 +257,129 @@ 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(); @@ -425,9 +393,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 @@ -446,8 +414,7 @@ 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); + com.google.cloud.billing.v1.ListBillingAccountsRequest result = new com.google.cloud.billing.v1.ListBillingAccountsRequest(this); result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.filter_ = filter_; @@ -459,39 +426,38 @@ public com.google.cloud.billing.v1.ListBillingAccountsRequest buildPartial() { 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; @@ -499,8 +465,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()); } @@ -538,31 +503,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - pageSize_ = input.readInt32(); - - break; - } // case 8 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - filter_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + pageSize_ = input.readInt32(); + + break; + } // case 8 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + filter_ = input.readStringRequireUtf8(); + + 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) { @@ -573,17 +534,14 @@ public Builder mergeFrom( 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 = 1; - * * @return The pageSize. */ @java.lang.Override @@ -591,38 +549,32 @@ 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. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); 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() { - + pageSize_ = 0; onChanged(); return this; @@ -630,8 +582,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`
@@ -639,13 +589,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; @@ -654,8 +604,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`
@@ -663,14 +611,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 { @@ -678,8 +627,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`
@@ -687,22 +634,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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`
@@ -710,18 +655,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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`
@@ -729,16 +671,16 @@ 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -746,8 +688,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Options for how to filter the returned billing accounts.
      * Currently this only supports filtering for
@@ -758,13 +698,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; @@ -773,8 +713,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Options for how to filter the returned billing accounts.
      * Currently this only supports filtering for
@@ -785,14 +723,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 { @@ -800,8 +739,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Options for how to filter the returned billing accounts.
      * Currently this only supports filtering for
@@ -812,22 +749,20 @@ 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) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Options for how to filter the returned billing accounts.
      * Currently this only supports filtering for
@@ -838,18 +773,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 3; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Options for how to filter the returned billing accounts.
      * Currently this only supports filtering for
@@ -860,23 +792,23 @@ 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) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = 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); } @@ -886,12 +818,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(); } @@ -900,27 +832,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; @@ -935,4 +867,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 72% 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 3905e07859e5..ca0f6ddf49ea 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 2020 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.
    * Currently this only supports filtering for
@@ -79,13 +53,10 @@ public interface ListBillingAccountsRequestOrBuilder
    * 
* * string filter = 3; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Options for how to filter the returned billing accounts.
    * Currently this only supports filtering for
@@ -96,8 +67,8 @@ public interface ListBillingAccountsRequestOrBuilder
    * 
* * string filter = 3; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } 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 6fe85c1e0cca..e68ae18ecef8 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 2020 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,35 +26,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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private java.util.List billingAccounts_; /** - * - * *
    * A list of billing accounts.
    * 
@@ -84,8 +63,6 @@ public java.util.List getBillingAcco return billingAccounts_; } /** - * - * *
    * A list of billing accounts.
    * 
@@ -93,13 +70,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.
    * 
@@ -111,8 +86,6 @@ public int getBillingAccountsCount() { return billingAccounts_.size(); } /** - * - * *
    * A list of billing accounts.
    * 
@@ -124,8 +97,6 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccounts(int index) return billingAccounts_.get(index); } /** - * - * *
    * A list of billing accounts.
    * 
@@ -141,8 +112,6 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 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
@@ -150,7 +119,6 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -159,15 +127,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
@@ -175,15 +142,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 { @@ -192,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +171,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)); } @@ -221,7 +189,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_); @@ -234,16 +203,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; } @@ -267,136 +237,129 @@ 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(); @@ -413,9 +376,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 @@ -434,8 +397,7 @@ 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); int from_bitField0_ = bitField0_; if (billingAccountsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -455,39 +417,38 @@ public com.google.cloud.billing.v1.ListBillingAccountsResponse buildPartial() { 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; @@ -495,8 +456,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()) { @@ -515,10 +475,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_); } @@ -554,32 +513,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(); + 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(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -589,29 +546,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.
      * 
@@ -626,8 +575,6 @@ public java.util.List getBillingAcco } } /** - * - * *
      * A list of billing accounts.
      * 
@@ -642,8 +589,6 @@ public int getBillingAccountsCount() { } } /** - * - * *
      * A list of billing accounts.
      * 
@@ -658,15 +603,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(); @@ -680,8 +624,6 @@ public Builder setBillingAccounts(int index, com.google.cloud.billing.v1.Billing return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -700,8 +642,6 @@ public Builder setBillingAccounts( return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -722,15 +662,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(); @@ -744,8 +683,6 @@ public Builder addBillingAccounts(int index, com.google.cloud.billing.v1.Billing return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -764,8 +701,6 @@ public Builder addBillingAccounts( return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -784,8 +719,6 @@ public Builder addBillingAccounts( return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -796,7 +729,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); @@ -804,8 +738,6 @@ public Builder addAllBillingAccounts( return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -823,8 +755,6 @@ public Builder clearBillingAccounts() { return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -842,20 +772,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.
      * 
@@ -865,22 +792,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 { @@ -888,8 +812,6 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB } } /** - * - * *
      * A list of billing accounts.
      * 
@@ -897,47 +819,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(), @@ -949,8 +862,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
@@ -958,13 +869,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; @@ -973,8 +884,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
@@ -982,14 +891,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 { @@ -997,8 +907,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
@@ -1006,22 +914,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -1029,18 +935,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -1048,23 +951,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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -1074,12 +977,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(); } @@ -1088,27 +991,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; @@ -1123,4 +1026,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 7c1d331fcee3..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 2020 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 e2bda302a819..8afa61ad5904 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 2020 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,44 +26,38 @@ private ListProjectBillingInfoRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListProjectBillingInfoRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -90,32 +66,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 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 { @@ -126,15 +100,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; 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 @@ -145,8 +116,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; 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`
@@ -154,7 +123,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -163,15 +131,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`
@@ -179,15 +146,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 { @@ -196,7 +164,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +175,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_); } @@ -231,7 +199,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_); @@ -244,17 +213,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; } @@ -278,136 +249,129 @@ 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(); @@ -421,9 +385,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 @@ -442,8 +406,7 @@ 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); + com.google.cloud.billing.v1.ListProjectBillingInfoRequest result = new com.google.cloud.billing.v1.ListProjectBillingInfoRequest(this); result.name_ = name_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -455,39 +418,38 @@ public com.google.cloud.billing.v1.ListProjectBillingInfoRequest buildPartial() 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; @@ -495,8 +457,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_; onChanged(); @@ -534,31 +495,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + + 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) { @@ -571,23 +528,19 @@ public Builder mergeFrom( 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; @@ -596,24 +549,21 @@ 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 { @@ -621,86 +571,70 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); 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 @@ -708,38 +642,32 @@ 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. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); 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() { - + pageSize_ = 0; onChanged(); return this; @@ -747,8 +675,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`
@@ -756,13 +682,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; @@ -771,8 +697,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`
@@ -780,14 +704,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 { @@ -795,8 +720,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`
@@ -804,22 +727,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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`
@@ -827,18 +748,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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`
@@ -846,23 +764,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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -872,12 +790,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(); } @@ -886,27 +804,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; @@ -921,4 +839,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 60% 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 f36541f0410b..9ad17b43f012 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,76 +1,46 @@ -/* - * Copyright 2020 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`
@@ -78,13 +48,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`
@@ -92,8 +59,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 bebc9dd64b11..8b4f0c53b9c5 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 2020 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,35 +26,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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private java.util.List projectBillingInfo_; /** - * - * *
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -82,13 +60,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.
@@ -97,13 +72,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.
@@ -116,8 +89,6 @@ public int getProjectBillingInfoCount() {
     return projectBillingInfo_.size();
   }
   /**
-   *
-   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -130,8 +101,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.
@@ -148,8 +117,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   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
@@ -157,7 +124,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -166,15 +132,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
@@ -182,15 +147,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 { @@ -199,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,7 +176,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)); } @@ -228,8 +194,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_); @@ -242,16 +208,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; } @@ -275,136 +242,129 @@ 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(); @@ -421,9 +381,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 @@ -442,8 +402,7 @@ 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); int from_bitField0_ = bitField0_; if (projectBillingInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -463,39 +422,38 @@ public com.google.cloud.billing.v1.ListProjectBillingInfoResponse buildPartial() 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; @@ -503,8 +461,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()) { @@ -523,10 +480,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_); } @@ -562,32 +518,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(); + 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(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -597,30 +551,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.
@@ -628,8 +573,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 {
@@ -637,8 +581,6 @@ private void ensureProjectBillingInfoIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -654,8 +596,6 @@ public int getProjectBillingInfoCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -671,8 +611,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(int
       }
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -695,8 +633,6 @@ public Builder setProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -716,8 +652,6 @@ public Builder setProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -739,8 +673,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.
@@ -763,8 +695,6 @@ public Builder addProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -784,8 +714,6 @@ public Builder addProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -805,8 +733,6 @@ public Builder addProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -818,7 +744,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);
@@ -826,8 +753,6 @@ public Builder addAllProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -846,8 +771,6 @@ public Builder clearProjectBillingInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -866,8 +789,6 @@ public Builder removeProjectBillingInfo(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -880,8 +801,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.
@@ -892,14 +811,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.
@@ -907,8 +823,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 {
@@ -916,8 +832,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
       }
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -926,12 +840,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.
@@ -941,12 +853,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.
@@ -954,22 +864,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(),
@@ -981,8 +885,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
@@ -990,13 +892,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; @@ -1005,8 +907,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
@@ -1014,14 +914,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 { @@ -1029,8 +930,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
@@ -1038,22 +937,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -1061,18 +958,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -1080,23 +974,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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -1106,12 +1000,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(); } @@ -1120,27 +1014,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; @@ -1155,4 +1049,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 0fdf71d9abeb..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 2020 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 df2c4a1c900e..e67b11c7ff55 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,83 +1,61 @@ -/* - * Copyright 2020 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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_; /** - * - * *
    * Requested page size. Defaults to 5000.
    * 
* * int32 page_size = 1; - * * @return The pageSize. */ @java.lang.Override @@ -88,8 +66,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; 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`
@@ -97,7 +73,6 @@ public int getPageSize() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -106,15 +81,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`
@@ -122,15 +96,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,7 +114,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,7 +125,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_); } @@ -168,7 +143,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_); @@ -181,16 +157,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; } @@ -211,136 +188,130 @@ 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(); @@ -352,9 +323,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 @@ -373,8 +344,7 @@ 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); + com.google.cloud.billing.v1.ListServicesRequest result = new com.google.cloud.billing.v1.ListServicesRequest(this); result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; onBuilt(); @@ -385,39 +355,38 @@ public com.google.cloud.billing.v1.ListServicesRequest buildPartial() { 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; @@ -425,8 +394,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()); } @@ -460,25 +428,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - pageSize_ = input.readInt32(); - - break; - } // case 8 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + pageSize_ = input.readInt32(); + + break; + } // case 8 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + + 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) { @@ -489,16 +454,13 @@ public Builder mergeFrom( return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 1; - * * @return The pageSize. */ @java.lang.Override @@ -506,36 +468,30 @@ 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. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 1; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -543,8 +499,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`
@@ -552,13 +506,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; @@ -567,8 +521,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`
@@ -576,14 +528,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 { @@ -591,8 +544,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`
@@ -600,22 +551,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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`
@@ -623,18 +572,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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`
@@ -642,23 +588,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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -668,12 +614,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(); } @@ -682,27 +628,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; @@ -717,4 +663,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 66eb7274466e..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 2020 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 72% 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 5db566e1f213..2454c0792064 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 2020 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,35 +26,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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private java.util.List services_; /** - * - * *
    * A list of services.
    * 
@@ -84,8 +63,6 @@ public java.util.List getServicesList() { return services_; } /** - * - * *
    * A list of services.
    * 
@@ -93,13 +70,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.
    * 
@@ -111,8 +86,6 @@ public int getServicesCount() { return services_.size(); } /** - * - * *
    * A list of services.
    * 
@@ -124,8 +97,6 @@ public com.google.cloud.billing.v1.Service getServices(int index) { return services_.get(index); } /** - * - * *
    * A list of services.
    * 
@@ -133,15 +104,14 @@ 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; 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
@@ -149,7 +119,6 @@ public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int ind
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -158,15 +127,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
@@ -174,15 +142,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 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +171,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)); } @@ -220,7 +189,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_); @@ -233,16 +203,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; } @@ -265,136 +236,130 @@ 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(); @@ -411,9 +376,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 @@ -432,8 +397,7 @@ 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); int from_bitField0_ = bitField0_; if (servicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -453,39 +417,38 @@ public com.google.cloud.billing.v1.ListServicesResponse buildPartial() { 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; @@ -493,8 +456,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()) { @@ -513,10 +475,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_); } @@ -552,32 +513,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(); + 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(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -587,28 +546,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.
      * 
@@ -623,8 +575,6 @@ public java.util.List getServicesList() { } } /** - * - * *
      * A list of services.
      * 
@@ -639,8 +589,6 @@ public int getServicesCount() { } } /** - * - * *
      * A list of services.
      * 
@@ -655,15 +603,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(); @@ -677,8 +624,6 @@ public Builder setServices(int index, com.google.cloud.billing.v1.Service value) return this; } /** - * - * *
      * A list of services.
      * 
@@ -697,8 +642,6 @@ public Builder setServices( return this; } /** - * - * *
      * A list of services.
      * 
@@ -719,15 +662,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(); @@ -741,15 +683,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()); @@ -760,8 +701,6 @@ public Builder addServices(com.google.cloud.billing.v1.Service.Builder builderFo return this; } /** - * - * *
      * A list of services.
      * 
@@ -780,8 +719,6 @@ public Builder addServices( return this; } /** - * - * *
      * A list of services.
      * 
@@ -792,7 +729,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); @@ -800,8 +738,6 @@ public Builder addAllServices( return this; } /** - * - * *
      * A list of services.
      * 
@@ -819,8 +755,6 @@ public Builder clearServices() { return this; } /** - * - * *
      * A list of services.
      * 
@@ -838,44 +772,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 { @@ -883,8 +812,6 @@ public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int ind } } /** - * - * *
      * A list of services.
      * 
@@ -892,47 +819,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_; @@ -940,8 +862,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
@@ -949,13 +869,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; @@ -964,8 +884,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
@@ -973,14 +891,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 { @@ -988,8 +907,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
@@ -997,22 +914,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -1020,18 +935,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -1039,23 +951,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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -1065,12 +977,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(); } @@ -1079,27 +991,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; @@ -1114,4 +1026,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 f6034dfb204b..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 2020 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 05c001f41197..68cef534535b 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 2020 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,44 +27,38 @@ private ListSkusRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSkusRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -91,32 +67,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 { @@ -127,8 +101,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.
@@ -139,7 +111,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -147,8 +118,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.
@@ -159,7 +128,6 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ @java.lang.Override @@ -167,8 +135,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.
@@ -188,8 +154,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.
@@ -200,7 +164,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -208,8 +171,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.
@@ -220,7 +181,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ @java.lang.Override @@ -228,8 +188,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.
@@ -249,8 +207,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int CURRENCY_CODE_FIELD_NUMBER = 4;
   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.
@@ -258,7 +214,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * string currency_code = 4; - * * @return The currencyCode. */ @java.lang.Override @@ -267,15 +222,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.
@@ -283,15 +237,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 { @@ -302,14 +257,11 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 5; private int pageSize_; /** - * - * *
    * Requested page size. Defaults to 5000.
    * 
* * int32 page_size = 5; - * * @return The pageSize. */ @java.lang.Override @@ -320,8 +272,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 6; 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`
@@ -329,7 +279,6 @@ public int getPageSize() {
    * 
* * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -338,15 +287,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`
@@ -354,15 +302,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 { @@ -371,7 +320,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -383,7 +331,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_); } @@ -415,16 +364,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_); @@ -437,26 +389,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; } @@ -489,136 +446,130 @@ 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(); @@ -646,9 +597,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 @@ -667,8 +618,7 @@ 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); + com.google.cloud.billing.v1.ListSkusRequest result = new com.google.cloud.billing.v1.ListSkusRequest(this); result.parent_ = parent_; if (startTimeBuilder_ == null) { result.startTime_ = startTime_; @@ -691,39 +641,38 @@ public com.google.cloud.billing.v1.ListSkusRequest buildPartial() { 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; @@ -779,49 +728,46 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - currencyCode_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 40: - { - pageSize_ = input.readInt32(); - - break; - } // case 40 - case 50: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 18 + case 26: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + currencyCode_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 40: { + pageSize_ = input.readInt32(); + + break; + } // case 40 + case 50: { + pageToken_ = input.readStringRequireUtf8(); + + 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) { @@ -834,23 +780,19 @@ public Builder mergeFrom( 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; @@ -859,24 +801,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 { @@ -884,70 +823,57 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -955,13 +881,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.
@@ -972,15 +893,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 startTimeBuilder_ != null || 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.
@@ -991,7 +909,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1002,8 +919,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.
@@ -1029,8 +944,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.
@@ -1042,7 +955,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();
         onChanged();
@@ -1053,8 +967,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.
@@ -1070,7 +982,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-              com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -1082,8 +994,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.
@@ -1107,8 +1017,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.
@@ -1121,13 +1029,11 @@ public Builder clearStartTime() {
      * .google.protobuf.Timestamp start_time = 2;
      */
     public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
-
+      
       onChanged();
       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.
@@ -1143,12 +1049,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.
@@ -1161,17 +1066,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_;
@@ -1179,13 +1081,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.
@@ -1196,15 +1093,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || 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.
@@ -1215,7 +1109,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1226,8 +1119,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.
@@ -1253,8 +1144,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.
@@ -1266,7 +1155,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();
         onChanged();
@@ -1277,8 +1167,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.
@@ -1294,7 +1182,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1306,8 +1194,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.
@@ -1331,8 +1217,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.
@@ -1345,13 +1229,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       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.
@@ -1367,12 +1249,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.
@@ -1385,17 +1266,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_;
@@ -1403,8 +1281,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.
@@ -1412,13 +1288,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; @@ -1427,8 +1303,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.
@@ -1436,14 +1310,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 { @@ -1451,8 +1326,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.
@@ -1460,22 +1333,20 @@ 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) { + public Builder setCurrencyCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + currencyCode_ = value; 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.
@@ -1483,18 +1354,15 @@ public Builder setCurrencyCode(java.lang.String value) {
      * 
* * string currency_code = 4; - * * @return This builder for chaining. */ public Builder clearCurrencyCode() { - + currencyCode_ = getDefaultInstance().getCurrencyCode(); 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.
@@ -1502,31 +1370,28 @@ 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) { + public Builder setCurrencyCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currencyCode_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 5; - * * @return The pageSize. */ @java.lang.Override @@ -1534,36 +1399,30 @@ 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. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Requested page size. Defaults to 5000.
      * 
* * int32 page_size = 5; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1571,8 +1430,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`
@@ -1580,13 +1437,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; @@ -1595,8 +1452,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`
@@ -1604,14 +1459,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 { @@ -1619,8 +1475,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`
@@ -1628,22 +1482,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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`
@@ -1651,18 +1503,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 6; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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`
@@ -1670,23 +1519,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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -1696,12 +1545,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(); } @@ -1710,27 +1559,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; @@ -1745,4 +1594,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 b03408d4abb9..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 2020 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 71% 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 5ac8e7f644a5..a86699e03cd9 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 2020 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,35 +26,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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private java.util.List skus_; /** - * - * *
    * The list of public SKUs of the given service.
    * 
@@ -84,8 +63,6 @@ public java.util.List getSkusList() { return skus_; } /** - * - * *
    * The list of public SKUs of the given service.
    * 
@@ -93,12 +70,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.
    * 
@@ -110,8 +86,6 @@ public int getSkusCount() { return skus_.size(); } /** - * - * *
    * The list of public SKUs of the given service.
    * 
@@ -123,8 +97,6 @@ public com.google.cloud.billing.v1.Sku getSkus(int index) { return skus_.get(index); } /** - * - * *
    * The list of public SKUs of the given service.
    * 
@@ -132,15 +104,14 @@ 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; 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
@@ -148,7 +119,6 @@ public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +127,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
@@ -173,15 +142,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 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +171,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)); } @@ -219,7 +189,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_); @@ -232,16 +203,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; } @@ -264,136 +236,130 @@ 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(); @@ -410,9 +376,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 @@ -431,8 +397,7 @@ 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); int from_bitField0_ = bitField0_; if (skusBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -452,39 +417,38 @@ public com.google.cloud.billing.v1.ListSkusResponse buildPartial() { 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; @@ -511,10 +475,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_); } @@ -550,31 +513,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(); + 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(); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -584,28 +546,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.
      * 
@@ -620,8 +575,6 @@ public java.util.List getSkusList() { } } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -636,8 +589,6 @@ public int getSkusCount() { } } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -652,15 +603,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(); @@ -674,15 +624,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()); @@ -693,8 +642,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.
      * 
@@ -715,15 +662,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(); @@ -737,15 +683,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()); @@ -756,15 +701,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()); @@ -775,8 +719,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.
      * 
@@ -787,7 +729,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); @@ -795,8 +738,6 @@ public Builder addAllSkus( return this; } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -814,8 +755,6 @@ public Builder clearSkus() { return this; } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -833,44 +772,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 { @@ -878,8 +812,6 @@ public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index) { } } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -887,46 +819,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_; @@ -934,8 +862,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
@@ -943,13 +869,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; @@ -958,8 +884,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
@@ -967,14 +891,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 { @@ -982,8 +907,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
@@ -991,22 +914,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -1014,18 +935,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -1033,23 +951,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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -1059,12 +977,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(); } @@ -1073,27 +991,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; @@ -1108,4 +1026,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 db85cce39d45..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 2020 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/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 adc4e7c4febc..c717c26cfa7b 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 2020 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:-
  * `usage_unit: GBy`
@@ -34,58 +17,53 @@
  *
  * 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();
     usageUnitDescription_ = "";
     baseUnit_ = "";
     baseUnitDescription_ = "";
-    tieredRates_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PricingExpression();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  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
@@ -93,40 +71,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.
@@ -137,57 +106,52 @@ 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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_; /** - * - * *
      * Usage is priced at this rate only after this amount.
      * Example: start_usage_amount of 10 indicates that the usage will be priced
@@ -195,7 +159,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * double start_usage_amount = 1; - * * @return The startUsageAmount. */ @java.lang.Override @@ -206,15 +169,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 @@ -222,15 +182,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 @@ -238,8 +195,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.
@@ -253,7 +208,6 @@ public com.google.type.MoneyOrBuilder getUnitPriceOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -265,7 +219,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_);
       }
@@ -282,10 +237,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;
@@ -295,19 +252,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;
@@ -321,10 +279,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();
@@ -335,94 +291,87 @@ 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
@@ -432,41 +381,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(); @@ -482,9 +429,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 @@ -503,8 +450,7 @@ 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); + com.google.cloud.billing.v1.PricingExpression.TierRate result = new com.google.cloud.billing.v1.PricingExpression.TierRate(this); result.startUsageAmount_ = startUsageAmount_; if (unitPriceBuilder_ == null) { result.unitPrice_ = unitPrice_; @@ -519,41 +465,38 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate buildPartial() { 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; @@ -561,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()); } @@ -595,25 +537,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: - { - startUsageAmount_ = input.readDouble(); - - break; - } // case 9 - case 18: - { - input.readMessage(getUnitPriceFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 9: { + startUsageAmount_ = input.readDouble(); + + break; + } // case 9 + case 18: { + input.readMessage( + getUnitPriceFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -624,10 +565,8 @@ public Builder mergeFrom( return this; } - 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 +574,6 @@ public Builder mergeFrom(
        * 
* * double start_usage_amount = 1; - * * @return The startUsageAmount. */ @java.lang.Override @@ -643,8 +581,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,19 +588,16 @@ public double getStartUsageAmount() {
        * 
* * double start_usage_amount = 1; - * * @param value The startUsageAmount to set. * @return This builder for chaining. */ public Builder setStartUsageAmount(double value) { - + startUsageAmount_ = value; onChanged(); 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
@@ -672,11 +605,10 @@ public Builder setStartUsageAmount(double value) {
        * 
* * double start_usage_amount = 1; - * * @return This builder for chaining. */ public Builder clearStartUsageAmount() { - + startUsageAmount_ = 0D; onChanged(); return this; @@ -684,33 +616,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 unitPriceBuilder_ != null || 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. */ public com.google.type.Money getUnitPrice() { @@ -721,8 +646,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.
@@ -744,8 +667,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.
@@ -753,7 +674,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();
           onChanged();
@@ -764,8 +686,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.
@@ -777,7 +697,7 @@ public Builder mergeUnitPrice(com.google.type.Money value) {
         if (unitPriceBuilder_ == null) {
           if (unitPrice_ != null) {
             unitPrice_ =
-                com.google.type.Money.newBuilder(unitPrice_).mergeFrom(value).buildPartial();
+              com.google.type.Money.newBuilder(unitPrice_).mergeFrom(value).buildPartial();
           } else {
             unitPrice_ = value;
           }
@@ -789,8 +709,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.
@@ -810,8 +728,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.
@@ -820,13 +736,11 @@ public Builder clearUnitPrice() {
        * .google.type.Money unit_price = 2;
        */
       public com.google.type.Money.Builder getUnitPriceBuilder() {
-
+        
         onChanged();
         return getUnitPriceFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -838,12 +752,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.
@@ -852,20 +765,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) {
@@ -878,12 +789,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();
     }
@@ -892,28 +803,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;
@@ -928,20 +838,18 @@ 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;
   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 @@ -950,30 +858,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 { @@ -981,18 +889,107 @@ public com.google.protobuf.ByteString getUsageUnitBytes() { } } - public static final int USAGE_UNIT_DESCRIPTION_FIELD_NUMBER = 4; - private volatile java.lang.Object usageUnitDescription_; + public static final int DISPLAY_QUANTITY_FIELD_NUMBER = 2; + private double displayQuantity_; + /** + *
+   * The recommended quantity of units for displaying pricing info. When
+   * displaying pricing info it is recommended to display:
+   * (unit_price * display_quantity) per display_quantity usage_unit.
+   * This field does not affect the pricing formula and is for display purposes
+   * only.
+   * Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
+   * the display_quantity is "1000" then the recommended way of displaying the
+   * pricing info is "0.10 USD per 1000 GB"
+   * 
+ * + * double display_quantity = 2; + * @return The displayQuantity. + */ + @java.lang.Override + public double getDisplayQuantity() { + return displayQuantity_; + } + + public static final int TIERED_RATES_FIELD_NUMBER = 3; + 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
+   * by ascending order of start_usage_amount.
+   * 
+ * + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + */ + @java.lang.Override + 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
+   * by ascending order of start_usage_amount.
+   * 
+ * + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + */ + @java.lang.Override + 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
+   * by ascending order of start_usage_amount.
+   * 
+ * + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + */ + @java.lang.Override + 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
+   * by ascending order of start_usage_amount.
+   * 
* + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + */ + @java.lang.Override + public com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int index) { + 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
+   * by ascending order of start_usage_amount.
+   * 
* + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + */ + @java.lang.Override + public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTieredRatesOrBuilder( + int index) { + return tieredRates_.get(index); + } + + public static final int USAGE_UNIT_DESCRIPTION_FIELD_NUMBER = 4; + 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 @@ -1001,30 +998,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 +1032,12 @@ public com.google.protobuf.ByteString getUsageUnitDescriptionBytes() { public static final int BASE_UNIT_FIELD_NUMBER = 5; 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 +1046,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 { @@ -1086,15 +1080,12 @@ public com.google.protobuf.ByteString getBaseUnitBytes() { public static final int BASE_UNIT_DESCRIPTION_FIELD_NUMBER = 6; 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 @@ -1103,30 +1094,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 { @@ -1137,8 +1128,6 @@ public com.google.protobuf.ByteString getBaseUnitDescriptionBytes() { public static final int BASE_UNIT_CONVERSION_FACTOR_FIELD_NUMBER = 7; 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.
@@ -1148,7 +1137,6 @@ public com.google.protobuf.ByteString getBaseUnitDescriptionBytes() {
    * 
* * double base_unit_conversion_factor = 7; - * * @return The baseUnitConversionFactor. */ @java.lang.Override @@ -1156,114 +1144,7 @@ public double getBaseUnitConversionFactor() { return baseUnitConversionFactor_; } - public static final int DISPLAY_QUANTITY_FIELD_NUMBER = 2; - private double displayQuantity_; - /** - * - * - *
-   * The recommended quantity of units for displaying pricing info. When
-   * displaying pricing info it is recommended to display:
-   * (unit_price * display_quantity) per display_quantity usage_unit.
-   * This field does not affect the pricing formula and is for display purposes
-   * only.
-   * Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
-   * the display_quantity is "1000" then the recommended way of displaying the
-   * pricing info is "0.10 USD per 1000 GB"
-   * 
- * - * double display_quantity = 2; - * - * @return The displayQuantity. - */ - @java.lang.Override - public double getDisplayQuantity() { - return displayQuantity_; - } - - public static final int TIERED_RATES_FIELD_NUMBER = 3; - 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
-   * by ascending order of start_usage_amount.
-   * 
- * - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; - */ - @java.lang.Override - 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
-   * by ascending order of start_usage_amount.
-   * 
- * - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; - */ - @java.lang.Override - 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
-   * by ascending order of start_usage_amount.
-   * 
- * - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; - */ - @java.lang.Override - 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
-   * by ascending order of start_usage_amount.
-   * 
- * - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; - */ - @java.lang.Override - public com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int index) { - 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
-   * by ascending order of start_usage_amount.
-   * 
- * - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; - */ - @java.lang.Override - public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTieredRatesOrBuilder( - int index) { - return tieredRates_.get(index); - } - private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1275,7 +1156,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_); } @@ -1310,10 +1192,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_); @@ -1325,7 +1209,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; @@ -1335,23 +1220,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 (!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; + 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; + != 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; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1365,6 +1256,13 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().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())); + if (getTieredRatesCount() > 0) { + hash = (37 * hash) + TIERED_RATES_FIELD_NUMBER; + hash = (53 * hash) + getTieredRatesList().hashCode(); + } hash = (37 * hash) + USAGE_UNIT_DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getUsageUnitDescription().hashCode(); hash = (37 * hash) + BASE_UNIT_FIELD_NUMBER; @@ -1372,122 +1270,104 @@ 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 = (37 * hash) + DISPLAY_QUANTITY_FIELD_NUMBER; - 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(); - } + 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:-
    * `usage_unit: GBy`
@@ -1501,45 +1381,38 @@ 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();
       usageUnit_ = "";
 
-      usageUnitDescription_ = "";
-
-      baseUnit_ = "";
-
-      baseUnitDescription_ = "";
-
-      baseUnitConversionFactor_ = 0D;
-
       displayQuantity_ = 0D;
 
       if (tieredRatesBuilder_ == null) {
@@ -1549,13 +1422,21 @@ public Builder clear() {
         tieredRatesBuilder_.clear();
       }
       bitField0_ = (bitField0_ & ~0x00000001);
+      usageUnitDescription_ = "";
+
+      baseUnit_ = "";
+
+      baseUnitDescription_ = "";
+
+      baseUnitConversionFactor_ = 0D;
+
       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_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
@@ -1574,14 +1455,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);
       int from_bitField0_ = bitField0_;
       result.usageUnit_ = usageUnit_;
-      result.usageUnitDescription_ = usageUnitDescription_;
-      result.baseUnit_ = baseUnit_;
-      result.baseUnitDescription_ = baseUnitDescription_;
-      result.baseUnitConversionFactor_ = baseUnitConversionFactor_;
       result.displayQuantity_ = displayQuantity_;
       if (tieredRatesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -1592,6 +1468,10 @@ public com.google.cloud.billing.v1.PricingExpression buildPartial() {
       } else {
         result.tieredRates_ = tieredRatesBuilder_.build();
       }
+      result.usageUnitDescription_ = usageUnitDescription_;
+      result.baseUnit_ = baseUnit_;
+      result.baseUnitDescription_ = baseUnitDescription_;
+      result.baseUnitConversionFactor_ = baseUnitConversionFactor_;
       onBuilt();
       return result;
     }
@@ -1600,39 +1480,38 @@ public com.google.cloud.billing.v1.PricingExpression buildPartial() {
     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;
@@ -1645,21 +1524,6 @@ public Builder mergeFrom(com.google.cloud.billing.v1.PricingExpression other) {
         usageUnit_ = other.usageUnit_;
         onChanged();
       }
-      if (!other.getUsageUnitDescription().isEmpty()) {
-        usageUnitDescription_ = other.usageUnitDescription_;
-        onChanged();
-      }
-      if (!other.getBaseUnit().isEmpty()) {
-        baseUnit_ = other.baseUnit_;
-        onChanged();
-      }
-      if (!other.getBaseUnitDescription().isEmpty()) {
-        baseUnitDescription_ = other.baseUnitDescription_;
-        onChanged();
-      }
-      if (other.getBaseUnitConversionFactor() != 0D) {
-        setBaseUnitConversionFactor(other.getBaseUnitConversionFactor());
-      }
       if (other.getDisplayQuantity() != 0D) {
         setDisplayQuantity(other.getDisplayQuantity());
       }
@@ -1681,15 +1545,29 @@ public Builder mergeFrom(com.google.cloud.billing.v1.PricingExpression other) {
             tieredRatesBuilder_ = null;
             tieredRates_ = other.tieredRates_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            tieredRatesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getTieredRatesFieldBuilder()
-                    : null;
+            tieredRatesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getTieredRatesFieldBuilder() : null;
           } else {
             tieredRatesBuilder_.addAllMessages(other.tieredRates_);
           }
         }
       }
+      if (!other.getUsageUnitDescription().isEmpty()) {
+        usageUnitDescription_ = other.usageUnitDescription_;
+        onChanged();
+      }
+      if (!other.getBaseUnit().isEmpty()) {
+        baseUnit_ = other.baseUnit_;
+        onChanged();
+      }
+      if (!other.getBaseUnitDescription().isEmpty()) {
+        baseUnitDescription_ = other.baseUnitDescription_;
+        onChanged();
+      }
+      if (other.getBaseUnitConversionFactor() != 0D) {
+        setBaseUnitConversionFactor(other.getBaseUnitConversionFactor());
+      }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -1716,63 +1594,55 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                usageUnit_ = input.readStringRequireUtf8();
+            case 10: {
+              usageUnit_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 10
-            case 17:
-              {
-                displayQuantity_ = input.readDouble();
+              break;
+            } // case 10
+            case 17: {
+              displayQuantity_ = input.readDouble();
 
-                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();
+              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();
 
-                break;
-              } // case 34
-            case 42:
-              {
-                baseUnit_ = input.readStringRequireUtf8();
+              break;
+            } // case 34
+            case 42: {
+              baseUnit_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 42
-            case 50:
-              {
-                baseUnitDescription_ = input.readStringRequireUtf8();
+              break;
+            } // case 42
+            case 50: {
+              baseUnitDescription_ = input.readStringRequireUtf8();
 
-                break;
-              } // case 50
-            case 57:
-              {
-                baseUnitConversionFactor_ = input.readDouble();
+              break;
+            } // case 50
+            case 57: {
+              baseUnitConversionFactor_ = input.readDouble();
 
-                break;
-              } // case 57
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              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) {
@@ -1782,26 +1652,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; @@ -1810,22 +1677,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 { @@ -1833,560 +1699,275 @@ 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) { + public Builder setUsageUnit( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + usageUnit_ = value; 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() { - + usageUnit_ = getDefaultInstance().getUsageUnit(); 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; - * * @param value The bytes for usageUnit to set. * @return This builder for chaining. */ - public Builder setUsageUnitBytes(com.google.protobuf.ByteString value) { + public Builder setUsageUnitBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + usageUnit_ = value; onChanged(); return this; } - private java.lang.Object usageUnitDescription_ = ""; + private double displayQuantity_ ; /** - * - * *
-     * 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; - java.lang.String s = bs.toStringUtf8(); - usageUnitDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The unit of usage in human readable form.
-     * Example: "gibi byte".
+     * The recommended quantity of units for displaying pricing info. When
+     * displaying pricing info it is recommended to display:
+     * (unit_price * display_quantity) per display_quantity usage_unit.
+     * This field does not affect the pricing formula and is for display purposes
+     * only.
+     * Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
+     * the display_quantity is "1000" then the recommended way of displaying the
+     * pricing info is "0.10 USD per 1000 GB"
      * 
* - * string usage_unit_description = 4; - * - * @return The bytes for usageUnitDescription. + * double display_quantity = 2; + * @return The displayQuantity. */ - 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); - usageUnitDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public double getDisplayQuantity() { + return displayQuantity_; } /** - * - * *
-     * The unit of usage in human readable form.
-     * Example: "gibi byte".
+     * The recommended quantity of units for displaying pricing info. When
+     * displaying pricing info it is recommended to display:
+     * (unit_price * display_quantity) per display_quantity usage_unit.
+     * This field does not affect the pricing formula and is for display purposes
+     * only.
+     * Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
+     * the display_quantity is "1000" then the recommended way of displaying the
+     * pricing info is "0.10 USD per 1000 GB"
      * 
* - * string usage_unit_description = 4; - * - * @param value The usageUnitDescription to set. + * double display_quantity = 2; + * @param value The displayQuantity to set. * @return This builder for chaining. */ - public Builder setUsageUnitDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - usageUnitDescription_ = value; + public Builder setDisplayQuantity(double value) { + + displayQuantity_ = value; onChanged(); return this; } /** - * - * *
-     * The unit of usage in human readable form.
-     * Example: "gibi byte".
+     * The recommended quantity of units for displaying pricing info. When
+     * displaying pricing info it is recommended to display:
+     * (unit_price * display_quantity) per display_quantity usage_unit.
+     * This field does not affect the pricing formula and is for display purposes
+     * only.
+     * Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
+     * the display_quantity is "1000" then the recommended way of displaying the
+     * pricing info is "0.10 USD per 1000 GB"
      * 
* - * string usage_unit_description = 4; - * + * double display_quantity = 2; * @return This builder for chaining. */ - public Builder clearUsageUnitDescription() { - - usageUnitDescription_ = getDefaultInstance().getUsageUnitDescription(); + public Builder clearDisplayQuantity() { + + displayQuantity_ = 0D; onChanged(); 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(); - } - checkByteStringIsUtf8(value); - usageUnitDescription_ = value; - onChanged(); - return this; + private java.util.List tieredRates_ = + java.util.Collections.emptyList(); + private void ensureTieredRatesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tieredRates_ = new java.util.ArrayList(tieredRates_); + bitField0_ |= 0x00000001; + } } - private java.lang.Object baseUnit_ = ""; + 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_; + /** - * - * *
-     * The base unit for the SKU which is the unit used in usage exports.
-     * Example: "By"
+     * 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
+     * by ascending order of start_usage_amount.
      * 
* - * string base_unit = 5; - * - * @return The baseUnit. + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; */ - 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; - java.lang.String s = bs.toStringUtf8(); - baseUnit_ = s; - return s; + public java.util.List getTieredRatesList() { + if (tieredRatesBuilder_ == null) { + return java.util.Collections.unmodifiableList(tieredRates_); } else { - return (java.lang.String) ref; + return tieredRatesBuilder_.getMessageList(); } } /** - * - * *
-     * The base unit for the SKU which is the unit used in usage exports.
-     * Example: "By"
+     * 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
+     * by ascending order of start_usage_amount.
      * 
* - * string base_unit = 5; - * - * @return The bytes for baseUnit. + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; */ - 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); - baseUnit_ = b; - return b; + public int getTieredRatesCount() { + if (tieredRatesBuilder_ == null) { + return tieredRates_.size(); } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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(); - } - - baseUnit_ = value; - 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() { - - baseUnit_ = getDefaultInstance().getBaseUnit(); - onChanged(); - 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(); + return tieredRatesBuilder_.getCount(); } - checkByteStringIsUtf8(value); - - baseUnit_ = value; - onChanged(); - return this; } - - private java.lang.Object baseUnitDescription_ = ""; /** - * - * *
-     * The base unit in human readable form.
-     * Example: "byte".
+     * 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
+     * by ascending order of start_usage_amount.
      * 
* - * string base_unit_description = 6; - * - * @return The baseUnitDescription. + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; */ - 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; - java.lang.String s = bs.toStringUtf8(); - baseUnitDescription_ = s; - return s; + public com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int index) { + if (tieredRatesBuilder_ == null) { + return tieredRates_.get(index); } else { - return (java.lang.String) ref; + return tieredRatesBuilder_.getMessage(index); } } /** - * - * *
-     * The base unit in human readable form.
-     * Example: "byte".
+     * 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
+     * by ascending order of start_usage_amount.
      * 
* - * string base_unit_description = 6; - * - * @return The bytes for baseUnitDescription. + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; */ - 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); - baseUnitDescription_ = b; - return b; + public Builder setTieredRates( + int index, com.google.cloud.billing.v1.PricingExpression.TierRate value) { + if (tieredRatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTieredRatesIsMutable(); + tieredRates_.set(index, value); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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(); + tieredRatesBuilder_.setMessage(index, value); } - - baseUnitDescription_ = value; - 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() { - - baseUnitDescription_ = getDefaultInstance().getBaseUnitDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * The base unit in human readable form.
-     * Example: "byte".
+     * 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
+     * by ascending order of start_usage_amount.
      * 
* - * string base_unit_description = 6; - * - * @param value The bytes for baseUnitDescription to set. - * @return This builder for chaining. + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; */ - public Builder setBaseUnitDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setTieredRates( + int index, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder builderForValue) { + if (tieredRatesBuilder_ == null) { + ensureTieredRatesIsMutable(); + tieredRates_.set(index, builderForValue.build()); + onChanged(); + } else { + tieredRatesBuilder_.setMessage(index, builderForValue.build()); } - checkByteStringIsUtf8(value); - - baseUnitDescription_ = value; - onChanged(); - return this; - } - - 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.
-     * unit_price / base_unit_conversion_factor = price per base_unit.
-     * start_usage_amount * base_unit_conversion_factor = start_usage_amount in
-     * base_unit.
-     * 
- * - * double base_unit_conversion_factor = 7; - * - * @return The baseUnitConversionFactor. - */ - @java.lang.Override - 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.
-     * unit_price / base_unit_conversion_factor = price per base_unit.
-     * start_usage_amount * base_unit_conversion_factor = start_usage_amount in
-     * base_unit.
-     * 
- * - * double base_unit_conversion_factor = 7; - * - * @param value The baseUnitConversionFactor to set. - * @return This builder for chaining. - */ - public Builder setBaseUnitConversionFactor(double value) { - - baseUnitConversionFactor_ = value; - onChanged(); - 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.
-     * unit_price / base_unit_conversion_factor = price per base_unit.
-     * start_usage_amount * base_unit_conversion_factor = start_usage_amount in
-     * base_unit.
-     * 
- * - * double base_unit_conversion_factor = 7; - * - * @return This builder for chaining. - */ - public Builder clearBaseUnitConversionFactor() { - - baseUnitConversionFactor_ = 0D; - onChanged(); return this; } - - private double displayQuantity_; - /** - * - * - *
-     * The recommended quantity of units for displaying pricing info. When
-     * displaying pricing info it is recommended to display:
-     * (unit_price * display_quantity) per display_quantity usage_unit.
-     * This field does not affect the pricing formula and is for display purposes
-     * only.
-     * Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
-     * the display_quantity is "1000" then the recommended way of displaying the
-     * pricing info is "0.10 USD per 1000 GB"
-     * 
- * - * double display_quantity = 2; - * - * @return The displayQuantity. - */ - @java.lang.Override - public double getDisplayQuantity() { - return displayQuantity_; - } /** - * - * *
-     * The recommended quantity of units for displaying pricing info. When
-     * displaying pricing info it is recommended to display:
-     * (unit_price * display_quantity) per display_quantity usage_unit.
-     * This field does not affect the pricing formula and is for display purposes
-     * only.
-     * Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
-     * the display_quantity is "1000" then the recommended way of displaying the
-     * pricing info is "0.10 USD per 1000 GB"
+     * 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
+     * by ascending order of start_usage_amount.
      * 
* - * double display_quantity = 2; - * - * @param value The displayQuantity to set. - * @return This builder for chaining. + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; */ - public Builder setDisplayQuantity(double value) { - - displayQuantity_ = value; - onChanged(); + public Builder addTieredRates(com.google.cloud.billing.v1.PricingExpression.TierRate value) { + if (tieredRatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTieredRatesIsMutable(); + tieredRates_.add(value); + onChanged(); + } else { + tieredRatesBuilder_.addMessage(value); + } return this; } /** - * - * *
-     * The recommended quantity of units for displaying pricing info. When
-     * displaying pricing info it is recommended to display:
-     * (unit_price * display_quantity) per display_quantity usage_unit.
-     * This field does not affect the pricing formula and is for display purposes
-     * only.
-     * Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
-     * the display_quantity is "1000" then the recommended way of displaying the
-     * pricing info is "0.10 USD per 1000 GB"
+     * 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
+     * by ascending order of start_usage_amount.
      * 
* - * double display_quantity = 2; - * - * @return This builder for chaining. + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; */ - public Builder clearDisplayQuantity() { - - displayQuantity_ = 0D; - onChanged(); - return this; - } - - private java.util.List tieredRates_ = - java.util.Collections.emptyList(); - - private void ensureTieredRatesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tieredRates_ = - new java.util.ArrayList( - tieredRates_); - bitField0_ |= 0x00000001; + public Builder addTieredRates( + int index, com.google.cloud.billing.v1.PricingExpression.TierRate value) { + if (tieredRatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTieredRatesIsMutable(); + tieredRates_.add(index, value); + onChanged(); + } else { + tieredRatesBuilder_.addMessage(index, value); } + return this; } - - 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_; - /** - * - * *
      * 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
@@ -2395,17 +1976,18 @@ private void ensureTieredRatesIsMutable() {
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public java.util.List
-        getTieredRatesList() {
+    public Builder addTieredRates(
+        com.google.cloud.billing.v1.PricingExpression.TierRate.Builder builderForValue) {
       if (tieredRatesBuilder_ == null) {
-        return java.util.Collections.unmodifiableList(tieredRates_);
+        ensureTieredRatesIsMutable();
+        tieredRates_.add(builderForValue.build());
+        onChanged();
       } else {
-        return tieredRatesBuilder_.getMessageList();
+        tieredRatesBuilder_.addMessage(builderForValue.build());
       }
+      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
@@ -2414,16 +1996,18 @@ private void ensureTieredRatesIsMutable() {
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public int getTieredRatesCount() {
+    public Builder addTieredRates(
+        int index, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder builderForValue) {
       if (tieredRatesBuilder_ == null) {
-        return tieredRates_.size();
+        ensureTieredRatesIsMutable();
+        tieredRates_.add(index, builderForValue.build());
+        onChanged();
       } else {
-        return tieredRatesBuilder_.getCount();
+        tieredRatesBuilder_.addMessage(index, builderForValue.build());
       }
+      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
@@ -2432,16 +2016,19 @@ public int getTieredRatesCount() {
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int index) {
+    public Builder addAllTieredRates(
+        java.lang.Iterable values) {
       if (tieredRatesBuilder_ == null) {
-        return tieredRates_.get(index);
+        ensureTieredRatesIsMutable();
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, tieredRates_);
+        onChanged();
       } else {
-        return tieredRatesBuilder_.getMessage(index);
+        tieredRatesBuilder_.addAllMessages(values);
       }
+      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
@@ -2450,23 +2037,17 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public Builder setTieredRates(
-        int index, com.google.cloud.billing.v1.PricingExpression.TierRate value) {
+    public Builder clearTieredRates() {
       if (tieredRatesBuilder_ == null) {
-        if (value == null) {
-          throw new NullPointerException();
-        }
-        ensureTieredRatesIsMutable();
-        tieredRates_.set(index, value);
+        tieredRates_ = java.util.Collections.emptyList();
+        bitField0_ = (bitField0_ & ~0x00000001);
         onChanged();
       } else {
-        tieredRatesBuilder_.setMessage(index, value);
+        tieredRatesBuilder_.clear();
       }
       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
@@ -2475,20 +2056,30 @@ public Builder setTieredRates(
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public Builder setTieredRates(
-        int index, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder builderForValue) {
+    public Builder removeTieredRates(int index) {
       if (tieredRatesBuilder_ == null) {
         ensureTieredRatesIsMutable();
-        tieredRates_.set(index, builderForValue.build());
+        tieredRates_.remove(index);
         onChanged();
       } else {
-        tieredRatesBuilder_.setMessage(index, builderForValue.build());
+        tieredRatesBuilder_.remove(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
+     * by ascending order of start_usage_amount.
+     * 
* - * + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + */ + public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder getTieredRatesBuilder( + int index) { + 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
@@ -2497,22 +2088,58 @@ public Builder setTieredRates(
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public Builder addTieredRates(com.google.cloud.billing.v1.PricingExpression.TierRate value) {
+    public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTieredRatesOrBuilder(
+        int index) {
       if (tieredRatesBuilder_ == null) {
-        if (value == null) {
-          throw new NullPointerException();
-        }
-        ensureTieredRatesIsMutable();
-        tieredRates_.add(value);
-        onChanged();
+        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
+     * by ascending order of start_usage_amount.
+     * 
+ * + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + */ + public java.util.List + getTieredRatesOrBuilderList() { + if (tieredRatesBuilder_ != null) { + return tieredRatesBuilder_.getMessageOrBuilderList(); } else { - tieredRatesBuilder_.addMessage(value); + return java.util.Collections.unmodifiableList(tieredRates_); } - 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
+     * by ascending order of start_usage_amount.
+     * 
* + * 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()); + } + /** + *
+     * 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
+     * by ascending order of start_usage_amount.
+     * 
* + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + */ + public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredRatesBuilder( + int index) { + 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
@@ -2521,249 +2148,385 @@ public Builder addTieredRates(com.google.cloud.billing.v1.PricingExpression.Tier
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public Builder addTieredRates(
-        int index, com.google.cloud.billing.v1.PricingExpression.TierRate value) {
+    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> 
+        getTieredRatesFieldBuilder() {
       if (tieredRatesBuilder_ == null) {
-        if (value == null) {
-          throw new NullPointerException();
-        }
-        ensureTieredRatesIsMutable();
-        tieredRates_.add(index, value);
-        onChanged();
+        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_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
+        tieredRates_ = null;
+      }
+      return tieredRatesBuilder_;
+    }
+
+    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; + java.lang.String s = bs.toStringUtf8(); + usageUnitDescription_ = s; + return s; } else { - tieredRatesBuilder_.addMessage(index, value); + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = usageUnitDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + usageUnitDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } + /** + *
+     * 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(); + } + + usageUnitDescription_ = value; + 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() { + + usageUnitDescription_ = getDefaultInstance().getUsageUnitDescription(); + onChanged(); + 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(); + } + checkByteStringIsUtf8(value); + + usageUnitDescription_ = value; + onChanged(); return this; } + + 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; + java.lang.String s = bs.toStringUtf8(); + baseUnit_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = baseUnit_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + baseUnit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** *
-     * 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
-     * by ascending order of start_usage_amount.
+     * The base unit for the SKU which is the unit used in usage exports.
+     * Example: "By"
      * 
* - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + * string base_unit = 5; + * @param value The baseUnit to set. + * @return This builder for chaining. */ - public Builder addTieredRates( - com.google.cloud.billing.v1.PricingExpression.TierRate.Builder builderForValue) { - if (tieredRatesBuilder_ == null) { - ensureTieredRatesIsMutable(); - tieredRates_.add(builderForValue.build()); - onChanged(); - } else { - tieredRatesBuilder_.addMessage(builderForValue.build()); - } + public Builder setBaseUnit( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + baseUnit_ = value; + onChanged(); 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
-     * by ascending order of start_usage_amount.
+     * The base unit for the SKU which is the unit used in usage exports.
+     * Example: "By"
      * 
* - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + * string base_unit = 5; + * @return This builder for chaining. */ - public Builder addTieredRates( - int index, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder builderForValue) { - if (tieredRatesBuilder_ == null) { - ensureTieredRatesIsMutable(); - tieredRates_.add(index, builderForValue.build()); - onChanged(); - } else { - tieredRatesBuilder_.addMessage(index, builderForValue.build()); - } + public Builder clearBaseUnit() { + + baseUnit_ = getDefaultInstance().getBaseUnit(); + onChanged(); 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
-     * by ascending order of start_usage_amount.
+     * The base unit for the SKU which is the unit used in usage exports.
+     * Example: "By"
      * 
* - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + * string base_unit = 5; + * @param value The bytes for baseUnit to set. + * @return This builder for chaining. */ - public Builder addAllTieredRates( - java.lang.Iterable - values) { - if (tieredRatesBuilder_ == null) { - ensureTieredRatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tieredRates_); - onChanged(); - } else { - tieredRatesBuilder_.addAllMessages(values); - } + public Builder setBaseUnitBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + baseUnit_ = value; + onChanged(); return this; } + + private java.lang.Object baseUnitDescription_ = ""; /** - * - * *
-     * 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
-     * by ascending order of start_usage_amount.
+     * The base unit in human readable form.
+     * Example: "byte".
      * 
* - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + * string base_unit_description = 6; + * @return The baseUnitDescription. */ - public Builder clearTieredRates() { - if (tieredRatesBuilder_ == null) { - tieredRates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + 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; + java.lang.String s = bs.toStringUtf8(); + baseUnitDescription_ = s; + return s; } else { - tieredRatesBuilder_.clear(); + return (java.lang.String) ref; } - 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
-     * by ascending order of start_usage_amount.
+     * The base unit in human readable form.
+     * Example: "byte".
      * 
* - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + * string base_unit_description = 6; + * @return The bytes for baseUnitDescription. */ - public Builder removeTieredRates(int index) { - if (tieredRatesBuilder_ == null) { - ensureTieredRatesIsMutable(); - tieredRates_.remove(index); - onChanged(); + 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); + baseUnitDescription_ = b; + return b; } else { - tieredRatesBuilder_.remove(index); + return (com.google.protobuf.ByteString) ref; } - 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
-     * by ascending order of start_usage_amount.
+     * The base unit in human readable form.
+     * Example: "byte".
      * 
* - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + * string base_unit_description = 6; + * @param value The baseUnitDescription to set. + * @return This builder for chaining. */ - public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder getTieredRatesBuilder( - int index) { - return getTieredRatesFieldBuilder().getBuilder(index); + public Builder setBaseUnitDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + baseUnitDescription_ = value; + onChanged(); + 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
-     * by ascending order of start_usage_amount.
+     * The base unit in human readable form.
+     * Example: "byte".
      * 
* - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + * string base_unit_description = 6; + * @return This builder for chaining. */ - public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTieredRatesOrBuilder( - int index) { - if (tieredRatesBuilder_ == null) { - return tieredRates_.get(index); - } else { - return tieredRatesBuilder_.getMessageOrBuilder(index); - } + public Builder clearBaseUnitDescription() { + + baseUnitDescription_ = getDefaultInstance().getBaseUnitDescription(); + onChanged(); + 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
-     * by ascending order of start_usage_amount.
+     * The base unit in human readable form.
+     * Example: "byte".
      * 
* - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + * string base_unit_description = 6; + * @param value The bytes for baseUnitDescription to set. + * @return This builder for chaining. */ - public java.util.List - getTieredRatesOrBuilderList() { - if (tieredRatesBuilder_ != null) { - return tieredRatesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tieredRates_); - } + public Builder setBaseUnitDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + baseUnitDescription_ = value; + onChanged(); + return this; } + + private double baseUnitConversionFactor_ ; /** - * - * *
-     * 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
-     * by ascending order of start_usage_amount.
+     * 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.
+     * unit_price / base_unit_conversion_factor = price per base_unit.
+     * start_usage_amount * base_unit_conversion_factor = start_usage_amount in
+     * base_unit.
      * 
* - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + * double base_unit_conversion_factor = 7; + * @return The baseUnitConversionFactor. */ - public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredRatesBuilder() { - return getTieredRatesFieldBuilder() - .addBuilder(com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance()); + @java.lang.Override + public double getBaseUnitConversionFactor() { + return baseUnitConversionFactor_; } /** - * - * *
-     * 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
-     * by ascending order of start_usage_amount.
+     * 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.
+     * unit_price / base_unit_conversion_factor = price per base_unit.
+     * start_usage_amount * base_unit_conversion_factor = start_usage_amount in
+     * base_unit.
      * 
* - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + * double base_unit_conversion_factor = 7; + * @param value The baseUnitConversionFactor to set. + * @return This builder for chaining. */ - public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredRatesBuilder( - int index) { - return getTieredRatesFieldBuilder() - .addBuilder( - index, com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance()); + public Builder setBaseUnitConversionFactor(double value) { + + baseUnitConversionFactor_ = value; + onChanged(); + 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
-     * by ascending order of start_usage_amount.
+     * 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.
+     * unit_price / base_unit_conversion_factor = price per base_unit.
+     * start_usage_amount * base_unit_conversion_factor = start_usage_amount in
+     * base_unit.
      * 
* - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + * double base_unit_conversion_factor = 7; + * @return This builder for chaining. */ - 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> - 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); - tieredRates_ = null; - } - return tieredRatesBuilder_; + public Builder clearBaseUnitConversionFactor() { + + baseUnitConversionFactor_ = 0D; + 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); } @@ -2773,12 +2536,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(); } @@ -2787,27 +2550,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; @@ -2822,4 +2585,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 847a1caf59db..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,139 +1,172 @@ -/* - * Copyright 2020 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:
+   * (unit_price * display_quantity) per display_quantity usage_unit.
+   * This field does not affect the pricing formula and is for display purposes
+   * only.
+   * Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
+   * the display_quantity is "1000" then the recommended way of displaying the
+   * pricing info is "0.10 USD per 1000 GB"
+   * 
+ * + * 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
+   * by ascending order of start_usage_amount.
+   * 
+ * + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + */ + 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
+   * by ascending order of start_usage_amount.
+   * 
+ * + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + */ + 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
+   * by ascending order of start_usage_amount.
+   * 
+ * + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + */ + 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
+   * by ascending order of start_usage_amount.
+   * 
* + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + */ + 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
+   * by ascending order of start_usage_amount.
+   * 
* + * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; + */ + com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTieredRatesOrBuilder( + 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.
@@ -143,91 +176,7 @@ public interface PricingExpressionOrBuilder
    * 
* * double base_unit_conversion_factor = 7; - * * @return The baseUnitConversionFactor. */ double getBaseUnitConversionFactor(); - - /** - * - * - *
-   * The recommended quantity of units for displaying pricing info. When
-   * displaying pricing info it is recommended to display:
-   * (unit_price * display_quantity) per display_quantity usage_unit.
-   * This field does not affect the pricing formula and is for display purposes
-   * only.
-   * Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
-   * the display_quantity is "1000" then the recommended way of displaying the
-   * pricing info is "0.10 USD per 1000 GB"
-   * 
- * - * 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
-   * by ascending order of start_usage_amount.
-   * 
- * - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; - */ - 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
-   * by ascending order of start_usage_amount.
-   * 
- * - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; - */ - 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
-   * by ascending order of start_usage_amount.
-   * 
- * - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; - */ - 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
-   * by ascending order of start_usage_amount.
-   * 
- * - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; - */ - 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
-   * by ascending order of start_usage_amount.
-   * 
- * - * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3; - */ - com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTieredRatesOrBuilder( - int index); } 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 75% 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 d002c19303a2..ef1b30435f0b 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,77 +1,56 @@ -/* - * Copyright 2020 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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
@@ -82,7 +61,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 @@ -90,8 +68,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
@@ -102,18 +78,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
@@ -133,15 +104,12 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
   public static final int SUMMARY_FIELD_NUMBER = 2;
   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 @@ -150,30 +118,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 { @@ -184,14 +152,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 @@ -199,25 +164,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.
    * 
@@ -232,15 +190,12 @@ public com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressi 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 @@ -248,26 +203,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.
@@ -283,8 +231,6 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
   public static final int CURRENCY_CONVERSION_RATE_FIELD_NUMBER = 5;
   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
@@ -294,7 +240,6 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
    * 
* * double currency_conversion_rate = 5; - * * @return The currencyConversionRate. */ @java.lang.Override @@ -303,7 +248,6 @@ public double getCurrencyConversionRate() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +259,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()); } @@ -341,19 +286,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; @@ -363,7 +312,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); @@ -372,19 +321,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; } @@ -411,145 +365,137 @@ 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(); @@ -579,9 +525,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 @@ -600,8 +546,7 @@ 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); + com.google.cloud.billing.v1.PricingInfo result = new com.google.cloud.billing.v1.PricingInfo(this); if (effectiveTimeBuilder_ == null) { result.effectiveTime_ = effectiveTime_; } else { @@ -627,39 +572,38 @@ public com.google.cloud.billing.v1.PricingInfo buildPartial() { 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; @@ -710,44 +654,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getEffectiveTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - summary_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage( - getPricingExpressionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getAggregationInfoFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 41: - { - currencyConversionRate_ = input.readDouble(); - - 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); + + break; + } // case 10 + case 18: { + summary_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + input.readMessage( + getPricingExpressionFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 26 + case 34: { + input.readMessage( + getAggregationInfoFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 34 + case 41: { + currencyConversionRate_ = input.readDouble(); + + 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) { @@ -760,13 +703,8 @@ public Builder mergeFrom( 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
@@ -777,15 +715,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Timestamp effective_time = 1; - * * @return Whether the effectiveTime field is set. */ public boolean hasEffectiveTime() { return effectiveTimeBuilder_ != null || 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
@@ -796,21 +731,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
@@ -836,8 +766,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
@@ -849,7 +777,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();
         onChanged();
@@ -860,8 +789,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
@@ -877,9 +804,7 @@ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) {
       if (effectiveTimeBuilder_ == null) {
         if (effectiveTime_ != null) {
           effectiveTime_ =
-              com.google.protobuf.Timestamp.newBuilder(effectiveTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(effectiveTime_).mergeFrom(value).buildPartial();
         } else {
           effectiveTime_ = value;
         }
@@ -891,8 +816,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
@@ -916,8 +839,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
@@ -930,13 +851,11 @@ public Builder clearEffectiveTime() {
      * .google.protobuf.Timestamp effective_time = 1;
      */
     public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder() {
-
+      
       onChanged();
       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
@@ -952,14 +871,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
@@ -972,17 +888,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_;
@@ -990,21 +903,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; @@ -1013,22 +924,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 { @@ -1036,64 +946,57 @@ 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) { + public Builder setSummary( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + summary_ = value; 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() { - + summary_ = getDefaultInstance().getSummary(); onChanged(); 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) { + public Builder setSummaryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + summary_ = value; onChanged(); return this; @@ -1101,47 +1004,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 pricingExpressionBuilder_ != null || pricingExpression_ != null; } /** - * - * *
      * 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.
      * 
@@ -1162,8 +1052,6 @@ public Builder setPricingExpression(com.google.cloud.billing.v1.PricingExpressio return this; } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1182,8 +1070,6 @@ public Builder setPricingExpression( return this; } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1194,9 +1080,7 @@ public Builder mergePricingExpression(com.google.cloud.billing.v1.PricingExpress if (pricingExpressionBuilder_ == null) { if (pricingExpression_ != null) { pricingExpression_ = - com.google.cloud.billing.v1.PricingExpression.newBuilder(pricingExpression_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.billing.v1.PricingExpression.newBuilder(pricingExpression_).mergeFrom(value).buildPartial(); } else { pricingExpression_ = value; } @@ -1208,8 +1092,6 @@ public Builder mergePricingExpression(com.google.cloud.billing.v1.PricingExpress return this; } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1228,8 +1110,6 @@ public Builder clearPricingExpression() { return this; } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1237,13 +1117,11 @@ public Builder clearPricingExpression() { * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; */ public com.google.cloud.billing.v1.PricingExpression.Builder getPricingExpressionBuilder() { - + onChanged(); return getPricingExpressionFieldBuilder().getBuilder(); } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1254,14 +1132,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.
      * 
@@ -1269,17 +1144,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_; @@ -1287,49 +1159,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 aggregationInfoBuilder_ != null || 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. */ 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.
@@ -1351,8 +1210,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.
@@ -1372,8 +1229,6 @@ public Builder setAggregationInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1385,9 +1240,7 @@ public Builder mergeAggregationInfo(com.google.cloud.billing.v1.AggregationInfo
       if (aggregationInfoBuilder_ == null) {
         if (aggregationInfo_ != null) {
           aggregationInfo_ =
-              com.google.cloud.billing.v1.AggregationInfo.newBuilder(aggregationInfo_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.billing.v1.AggregationInfo.newBuilder(aggregationInfo_).mergeFrom(value).buildPartial();
         } else {
           aggregationInfo_ = value;
         }
@@ -1399,8 +1252,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.
@@ -1420,8 +1271,6 @@ public Builder clearAggregationInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1430,13 +1279,11 @@ public Builder clearAggregationInfo() {
      * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4;
      */
     public com.google.cloud.billing.v1.AggregationInfo.Builder getAggregationInfoBuilder() {
-
+      
       onChanged();
       return getAggregationInfoFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1448,14 +1295,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.
@@ -1464,26 +1308,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
@@ -1493,7 +1332,6 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
      * 
* * double currency_conversion_rate = 5; - * * @return The currencyConversionRate. */ @java.lang.Override @@ -1501,8 +1339,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
@@ -1512,19 +1348,16 @@ public double getCurrencyConversionRate() {
      * 
* * double currency_conversion_rate = 5; - * * @param value The currencyConversionRate to set. * @return This builder for chaining. */ public Builder setCurrencyConversionRate(double value) { - + currencyConversionRate_ = value; onChanged(); return this; } /** - * - * *
      * Conversion rate used for currency conversion, from USD to the currency
      * specified in the request. This includes any surcharge collected for billing
@@ -1534,18 +1367,17 @@ public Builder setCurrencyConversionRate(double value) {
      * 
* * double currency_conversion_rate = 5; - * * @return This builder for chaining. */ public Builder clearCurrencyConversionRate() { - + currencyConversionRate_ = 0D; 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); } @@ -1555,12 +1387,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(); } @@ -1569,27 +1401,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; @@ -1604,4 +1436,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 a4155ac2b57a..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 2020 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 72% 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 6142aab76843..05d3c626b5b1 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,44 +1,26 @@ -/* - * Copyright 2020 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 GCP Console project. A project
- * has at most one associated billing account at a time (but a billing account
- * can be assigned to multiple projects).
+ * 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
+ * account can be assigned to multiple projects).
  * 
* * 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,35 +29,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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * The resource name for the `ProjectBillingInfo`; has the form
    * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -84,7 +63,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -93,15 +71,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; } } /** - * - * *
    * The resource name for the `ProjectBillingInfo`; has the form
    * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -110,15 +87,16 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -129,8 +107,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** - * - * *
    * The ID of the project that this `ProjectBillingInfo` represents, such as
    * `tokyo-rain-123`. This is a convenience field so that you don't need to
@@ -138,7 +114,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string project_id = 2; - * * @return The projectId. */ @java.lang.Override @@ -147,15 +122,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; } } /** - * - * *
    * The ID of the project that this `ProjectBillingInfo` represents, such as
    * `tokyo-rain-123`. This is a convenience field so that you don't need to
@@ -163,15 +137,16 @@ public java.lang.String getProjectId() {
    * 
* * string project_id = 2; - * * @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 { @@ -182,15 +157,12 @@ public com.google.protobuf.ByteString getProjectIdBytes() { public static final int BILLING_ACCOUNT_NAME_FIELD_NUMBER = 3; 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 @@ -199,30 +171,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 { @@ -233,8 +205,6 @@ public com.google.protobuf.ByteString getBillingAccountNameBytes() { public static final int BILLING_ENABLED_FIELD_NUMBER = 4; private boolean billingEnabled_; /** - * - * *
    * True if the project is associated with an open billing account, to which
    * usage on the project is charged. False if the project is associated with a
@@ -243,7 +213,6 @@ public com.google.protobuf.ByteString getBillingAccountNameBytes() {
    * 
* * bool billing_enabled = 4; - * * @return The billingEnabled. */ @java.lang.Override @@ -252,7 +221,6 @@ public boolean getBillingEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +232,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_); } @@ -296,7 +265,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; @@ -306,18 +276,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; } @@ -336,144 +309,139 @@ 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 GCP Console project. A project
-   * has at most one associated billing account at a time (but a billing account
-   * can be assigned to multiple projects).
+   * 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
+   * account can be assigned to multiple projects).
    * 
* * 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(); @@ -489,9 +457,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 @@ -510,8 +478,7 @@ 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); + com.google.cloud.billing.v1.ProjectBillingInfo result = new com.google.cloud.billing.v1.ProjectBillingInfo(this); result.name_ = name_; result.projectId_ = projectId_; result.billingAccountName_ = billingAccountName_; @@ -524,39 +491,38 @@ public com.google.cloud.billing.v1.ProjectBillingInfo buildPartial() { 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; @@ -606,37 +572,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); + case 10: { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - projectId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + projectId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - billingAccountName_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + billingAccountName_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 32: - { - billingEnabled_ = input.readBool(); + break; + } // case 26 + case 32: { + billingEnabled_ = input.readBool(); - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -649,8 +610,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The resource name for the `ProjectBillingInfo`; has the form
      * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -659,13 +618,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -674,8 +633,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name for the `ProjectBillingInfo`; has the form
      * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -684,14 +641,15 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -699,8 +657,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name for the `ProjectBillingInfo`; has the form
      * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -709,22 +665,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name for the `ProjectBillingInfo`; has the form
      * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -733,18 +687,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name for the `ProjectBillingInfo`; has the form
      * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -753,16 +704,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -770,8 +721,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * *
      * The ID of the project that this `ProjectBillingInfo` represents, such as
      * `tokyo-rain-123`. This is a convenience field so that you don't need to
@@ -779,13 +728,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string project_id = 2; - * * @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; @@ -794,8 +743,6 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * The ID of the project that this `ProjectBillingInfo` represents, such as
      * `tokyo-rain-123`. This is a convenience field so that you don't need to
@@ -803,14 +750,15 @@ public java.lang.String getProjectId() {
      * 
* * string project_id = 2; - * * @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 { @@ -818,8 +766,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * The ID of the project that this `ProjectBillingInfo` represents, such as
      * `tokyo-rain-123`. This is a convenience field so that you don't need to
@@ -827,22 +773,20 @@ public com.google.protobuf.ByteString getProjectIdBytes() {
      * 
* * string project_id = 2; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * The ID of the project that this `ProjectBillingInfo` represents, such as
      * `tokyo-rain-123`. This is a convenience field so that you don't need to
@@ -850,18 +794,15 @@ public Builder setProjectId(java.lang.String value) {
      * 
* * string project_id = 2; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * The ID of the project that this `ProjectBillingInfo` represents, such as
      * `tokyo-rain-123`. This is a convenience field so that you don't need to
@@ -869,16 +810,16 @@ public Builder clearProjectId() {
      * 
* * string project_id = 2; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; onChanged(); return this; @@ -886,21 +827,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; @@ -909,22 +848,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 { @@ -932,73 +870,64 @@ 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) { + public Builder setBillingAccountName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + billingAccountName_ = value; 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() { - + billingAccountName_ = getDefaultInstance().getBillingAccountName(); 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; - * * @param value The bytes for billingAccountName to set. * @return This builder for chaining. */ - public Builder setBillingAccountNameBytes(com.google.protobuf.ByteString value) { + public Builder setBillingAccountNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + billingAccountName_ = value; onChanged(); return this; } - private boolean billingEnabled_; + private boolean billingEnabled_ ; /** - * - * *
      * True if the project is associated with an open billing account, to which
      * usage on the project is charged. False if the project is associated with a
@@ -1007,7 +936,6 @@ public Builder setBillingAccountNameBytes(com.google.protobuf.ByteString value)
      * 
* * bool billing_enabled = 4; - * * @return The billingEnabled. */ @java.lang.Override @@ -1015,8 +943,6 @@ public boolean getBillingEnabled() { return billingEnabled_; } /** - * - * *
      * True if the project is associated with an open billing account, to which
      * usage on the project is charged. False if the project is associated with a
@@ -1025,19 +951,16 @@ public boolean getBillingEnabled() {
      * 
* * bool billing_enabled = 4; - * * @param value The billingEnabled to set. * @return This builder for chaining. */ public Builder setBillingEnabled(boolean value) { - + billingEnabled_ = value; onChanged(); return this; } /** - * - * *
      * True if the project is associated with an open billing account, to which
      * usage on the project is charged. False if the project is associated with a
@@ -1046,18 +969,17 @@ public Builder setBillingEnabled(boolean value) {
      * 
* * bool billing_enabled = 4; - * * @return This builder for chaining. */ public Builder clearBillingEnabled() { - + billingEnabled_ = false; 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); } @@ -1067,12 +989,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(); } @@ -1081,27 +1003,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; @@ -1116,4 +1038,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 75% 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 6252c53b44d7..7a3b14e6968f 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 2020 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 { /** - * - * *
    * 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; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * 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; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The ID of the project that this `ProjectBillingInfo` represents, such as
    * `tokyo-rain-123`. This is a convenience field so that you don't need to
@@ -64,13 +41,10 @@ public interface ProjectBillingInfoOrBuilder
    * 
* * string project_id = 2; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * The ID of the project that this `ProjectBillingInfo` represents, such as
    * `tokyo-rain-123`. This is a convenience field so that you don't need to
@@ -78,41 +52,34 @@ public interface ProjectBillingInfoOrBuilder
    * 
* * string project_id = 2; - * * @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(); /** - * - * *
    * True if the project is associated with an open billing account, to which
    * usage on the project is charged. False if the project is associated with a
@@ -121,7 +88,6 @@ public interface ProjectBillingInfoOrBuilder
    * 
* * bool billing_enabled = 4; - * * @return The billingEnabled. */ boolean getBillingEnabled(); 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 69% 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 9f52737295a3..d2aca5b07015 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 2020 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,42 +28,38 @@ private Service() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Service(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -90,30 +68,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 { @@ -124,15 +102,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SERVICE_ID_FIELD_NUMBER = 2; 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 @@ -141,30 +116,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 { @@ -175,14 +150,11 @@ public com.google.protobuf.ByteString getServiceIdBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object displayName_; /** - * - * *
    * A human readable display name for this service.
    * 
* * string display_name = 3; - * * @return The displayName. */ @java.lang.Override @@ -191,29 +163,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 { @@ -224,15 +196,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int BUSINESS_ENTITY_NAME_FIELD_NUMBER = 4; 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 @@ -241,30 +210,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 { @@ -273,7 +242,6 @@ public com.google.protobuf.ByteString getBusinessEntityNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,7 +253,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_); } @@ -327,17 +296,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; } @@ -362,135 +335,130 @@ 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 +474,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 @@ -540,39 +508,38 @@ public com.google.cloud.billing.v1.Service buildPartial() { 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; @@ -623,37 +590,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); + case 10: { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - serviceId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: { + serviceId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: - { - displayName_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: { + displayName_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: - { - businessEntityName_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: { + businessEntityName_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -666,21 +628,19 @@ public Builder mergeFrom( 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; @@ -689,22 +649,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 { @@ -712,64 +671,57 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -777,21 +729,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; @@ -800,22 +750,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 { @@ -823,64 +772,57 @@ 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) { + public Builder setServiceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceId_ = value; onChanged(); return this; } /** - * - * *
      * The identifier for the service.
      * Example: "DA34-426B-A397"
      * 
* * string service_id = 2; - * * @return This builder for chaining. */ public Builder clearServiceId() { - + serviceId_ = getDefaultInstance().getServiceId(); onChanged(); 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) { + public Builder setServiceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceId_ = value; onChanged(); return this; @@ -888,20 +830,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; @@ -910,21 +850,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 { @@ -932,61 +871,54 @@ 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) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * A human readable display name for this service.
      * 
* * string display_name = 3; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); 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) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -994,21 +926,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; @@ -1017,22 +947,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 { @@ -1040,71 +969,64 @@ 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) { + public Builder setBusinessEntityName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + businessEntityName_ = value; 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() { - + businessEntityName_ = getDefaultInstance().getBusinessEntityName(); onChanged(); 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) { + public Builder setBusinessEntityNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + businessEntityName_ = 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); } @@ -1114,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(); } @@ -1128,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; @@ -1163,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 d81c066413b1..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 2020 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 69% 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 5e630ac93b17..e6e2d5c0a1bb 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,42 +1,24 @@ -/* - * Copyright 2020 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_ = ""; @@ -48,25 +30,25 @@ private Sku() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Sku(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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); } @@ -74,15 +56,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int NAME_FIELD_NUMBER = 1; 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 @@ -91,30 +70,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 { @@ -125,15 +104,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SKU_ID_FIELD_NUMBER = 2; 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 @@ -142,30 +118,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 { @@ -176,15 +152,12 @@ public com.google.protobuf.ByteString getSkuIdBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; 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 @@ -193,30 +166,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 { @@ -227,14 +200,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 @@ -242,25 +212,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.
    * 
@@ -275,8 +238,6 @@ public com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder() { public static final int SERVICE_REGIONS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList serviceRegions_; /** - * - * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -284,15 +245,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"
@@ -300,15 +259,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"
@@ -316,7 +272,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. */ @@ -324,8 +279,6 @@ public java.lang.String getServiceRegions(int index) { return serviceRegions_.get(index); } /** - * - * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -333,19 +286,17 @@ 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; private java.util.List pricingInfo_; /** - * - * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -357,8 +308,6 @@ public java.util.List getPricingInfoLis return pricingInfo_; } /** - * - * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -366,13 +315,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.
    * 
@@ -384,8 +331,6 @@ public int getPricingInfoCount() { return pricingInfo_.size(); } /** - * - * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -397,8 +342,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.
    * 
@@ -406,22 +349,20 @@ 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; 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 @@ -430,30 +371,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 { @@ -461,8 +402,45 @@ public com.google.protobuf.ByteString getServiceProviderNameBytes() { } } - private byte memoizedIsInitialized = -1; + 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 + 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_; + } + /** + *
+   * The geographic taxonomy for this sku.
+   * 
+ * + * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; + */ + @java.lang.Override + public com.google.cloud.billing.v1.GeoTaxonomyOrBuilder getGeoTaxonomyOrBuilder() { + return getGeoTaxonomy(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -474,7 +452,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_); } @@ -496,6 +475,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceProviderName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, serviceProviderName_); } + if (geoTaxonomy_ != null) { + output.writeMessage(8, getGeoTaxonomy()); + } getUnknownFields().writeTo(output); } @@ -515,7 +497,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; @@ -526,11 +509,16 @@ 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 += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -539,23 +527,35 @@ 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 (!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 (!getServiceRegionsList().equals(other.getServiceRegionsList())) return false; - if (!getPricingInfoList().equals(other.getPricingInfoList())) return false; - if (!getServiceProviderName().equals(other.getServiceProviderName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -587,139 +587,139 @@ public int hashCode() { } hash = (37 * hash) + SERVICE_PROVIDER_NAME_FIELD_NUMBER; hash = (53 * hash) + getServiceProviderName().hashCode(); + if (hasGeoTaxonomy()) { + hash = (37 * hash) + GEO_TAXONOMY_FIELD_NUMBER; + hash = (53 * hash) + getGeoTaxonomy().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; 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(); @@ -746,13 +746,19 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000002); serviceProviderName_ = ""; + if (geoTaxonomyBuilder_ == null) { + geoTaxonomy_ = null; + } else { + geoTaxonomy_ = null; + geoTaxonomyBuilder_ = null; + } 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_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 @@ -796,6 +802,11 @@ public com.google.cloud.billing.v1.Sku buildPartial() { result.pricingInfo_ = pricingInfoBuilder_.build(); } result.serviceProviderName_ = serviceProviderName_; + if (geoTaxonomyBuilder_ == null) { + result.geoTaxonomy_ = geoTaxonomy_; + } else { + result.geoTaxonomy_ = geoTaxonomyBuilder_.build(); + } onBuilt(); return result; } @@ -804,39 +815,38 @@ public com.google.cloud.billing.v1.Sku buildPartial() { 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; @@ -888,10 +898,9 @@ public Builder mergeFrom(com.google.cloud.billing.v1.Sku other) { pricingInfoBuilder_ = null; pricingInfo_ = other.pricingInfo_; bitField0_ = (bitField0_ & ~0x00000002); - pricingInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPricingInfoFieldBuilder() - : null; + pricingInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPricingInfoFieldBuilder() : null; } else { pricingInfoBuilder_.addAllMessages(other.pricingInfo_); } @@ -901,6 +910,9 @@ public Builder mergeFrom(com.google.cloud.billing.v1.Sku other) { serviceProviderName_ = other.serviceProviderName_; onChanged(); } + if (other.hasGeoTaxonomy()) { + mergeGeoTaxonomy(other.getGeoTaxonomy()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -927,63 +939,65 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - skuId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - input.readMessage(getCategoryFieldBuilder().getBuilder(), extensionRegistry); - - 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(); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + skuId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: { + input.readMessage( + getCategoryFieldBuilder().getBuilder(), + extensionRegistry); + + 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(); + + break; + } // case 58 + case 66: { + input.readMessage( + getGeoTaxonomyFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -993,26 +1007,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; @@ -1021,22 +1032,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 { @@ -1044,64 +1054,57 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1109,21 +1112,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; @@ -1132,22 +1133,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 { @@ -1155,64 +1155,57 @@ 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) { + public Builder setSkuId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + skuId_ = value; onChanged(); return this; } /** - * - * *
      * The identifier for the SKU.
      * Example: "AA95-CD31-42FE"
      * 
* * string sku_id = 2; - * * @return This builder for chaining. */ public Builder clearSkuId() { - + skuId_ = getDefaultInstance().getSkuId(); onChanged(); 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) { + public Builder setSkuIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + skuId_ = value; onChanged(); return this; @@ -1220,21 +1213,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; @@ -1243,22 +1234,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 { @@ -1266,64 +1256,57 @@ 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) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; 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() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1331,47 +1314,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 categoryBuilder_ != null || category_ != null; } /** - * - * *
      * 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.
      * 
@@ -1392,15 +1362,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(); onChanged(); @@ -1411,8 +1380,6 @@ public Builder setCategory(com.google.cloud.billing.v1.Category.Builder builderF return this; } /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1423,9 +1390,7 @@ public Builder mergeCategory(com.google.cloud.billing.v1.Category value) { if (categoryBuilder_ == null) { if (category_ != null) { category_ = - com.google.cloud.billing.v1.Category.newBuilder(category_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.billing.v1.Category.newBuilder(category_).mergeFrom(value).buildPartial(); } else { category_ = value; } @@ -1437,8 +1402,6 @@ public Builder mergeCategory(com.google.cloud.billing.v1.Category value) { return this; } /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1457,8 +1420,6 @@ public Builder clearCategory() { return this; } /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1466,13 +1427,11 @@ public Builder clearCategory() { * .google.cloud.billing.v1.Category category = 4; */ public com.google.cloud.billing.v1.Category.Builder getCategoryBuilder() { - + onChanged(); return getCategoryFieldBuilder().getBuilder(); } /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1483,14 +1442,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.
      * 
@@ -1498,34 +1454,27 @@ 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_; } - private com.google.protobuf.LazyStringList serviceRegions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList serviceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureServiceRegionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { serviceRegions_ = new com.google.protobuf.LazyStringArrayList(serviceRegions_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1533,15 +1482,13 @@ 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() { return serviceRegions_.getUnmodifiableView(); } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1549,15 +1496,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"
@@ -1565,7 +1509,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. */ @@ -1573,8 +1516,6 @@ public java.lang.String getServiceRegions(int index) { return serviceRegions_.get(index); } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1582,16 +1523,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"
@@ -1599,23 +1538,21 @@ 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) { + public Builder setServiceRegions( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureServiceRegionsIsMutable(); + throw new NullPointerException(); + } + ensureServiceRegionsIsMutable(); serviceRegions_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1623,22 +1560,20 @@ 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) { + public Builder addServiceRegions( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureServiceRegionsIsMutable(); + throw new NullPointerException(); + } + ensureServiceRegionsIsMutable(); serviceRegions_.add(value); onChanged(); return this; } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1646,19 +1581,18 @@ 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_); onChanged(); return this; } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1666,7 +1600,6 @@ public Builder addAllServiceRegions(java.lang.Iterable values)
      * 
* * repeated string service_regions = 5; - * * @return This builder for chaining. */ public Builder clearServiceRegions() { @@ -1676,8 +1609,6 @@ public Builder clearServiceRegions() { return this; } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1685,15 +1616,15 @@ 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) { + public Builder addServiceRegionsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureServiceRegionsIsMutable(); serviceRegions_.add(value); onChanged(); @@ -1701,25 +1632,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_ & 0x00000002) != 0)) { - pricingInfo_ = - new java.util.ArrayList(pricingInfo_); + pricingInfo_ = new java.util.ArrayList(pricingInfo_); bitField0_ |= 0x00000002; - } + } } 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.
      * 
@@ -1734,8 +1658,6 @@ public java.util.List getPricingInfoLis } } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1750,8 +1672,6 @@ public int getPricingInfoCount() { } } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1766,15 +1686,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(); @@ -1788,8 +1707,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.
      * 
@@ -1808,8 +1725,6 @@ public Builder setPricingInfo( return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1830,15 +1745,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(); @@ -1852,15 +1766,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()); @@ -1871,8 +1784,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.
      * 
@@ -1891,8 +1802,6 @@ public Builder addPricingInfo( return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1903,7 +1812,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); @@ -1911,8 +1821,6 @@ public Builder addAllPricingInfo( return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1930,8 +1838,6 @@ public Builder clearPricingInfo() { return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1949,44 +1855,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 { @@ -1994,8 +1895,6 @@ public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( } } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -2003,48 +1902,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_ & 0x00000002) != 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_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); pricingInfo_ = null; } return pricingInfoBuilder_; @@ -2052,21 +1945,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; @@ -2075,22 +1966,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 { @@ -2098,71 +1988,219 @@ 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) { + public Builder setServiceProviderName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceProviderName_ = value; 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() { - + serviceProviderName_ = getDefaultInstance().getServiceProviderName(); onChanged(); 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) { + public Builder setServiceProviderNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceProviderName_ = value; onChanged(); return this; } + 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_; + /** + *
+     * 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 geoTaxonomyBuilder_ != null || geoTaxonomy_ != null; + } + /** + *
+     * 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_; + } else { + return geoTaxonomyBuilder_.getMessage(); + } + } + /** + *
+     * The geographic taxonomy for this sku.
+     * 
+ * + * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; + */ + public Builder setGeoTaxonomy(com.google.cloud.billing.v1.GeoTaxonomy value) { + if (geoTaxonomyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + geoTaxonomy_ = value; + onChanged(); + } else { + geoTaxonomyBuilder_.setMessage(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) { + if (geoTaxonomyBuilder_ == null) { + geoTaxonomy_ = builderForValue.build(); + onChanged(); + } else { + geoTaxonomyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The geographic taxonomy for this sku.
+     * 
+ * + * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; + */ + public Builder mergeGeoTaxonomy(com.google.cloud.billing.v1.GeoTaxonomy value) { + if (geoTaxonomyBuilder_ == null) { + if (geoTaxonomy_ != null) { + geoTaxonomy_ = + com.google.cloud.billing.v1.GeoTaxonomy.newBuilder(geoTaxonomy_).mergeFrom(value).buildPartial(); + } else { + geoTaxonomy_ = value; + } + onChanged(); + } else { + geoTaxonomyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The geographic taxonomy for this sku.
+     * 
+ * + * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; + */ + public Builder clearGeoTaxonomy() { + if (geoTaxonomyBuilder_ == null) { + geoTaxonomy_ = null; + onChanged(); + } else { + geoTaxonomy_ = null; + geoTaxonomyBuilder_ = null; + } + + return this; + } + /** + *
+     * The geographic taxonomy for this sku.
+     * 
+ * + * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; + */ + public com.google.cloud.billing.v1.GeoTaxonomy.Builder getGeoTaxonomyBuilder() { + + onChanged(); + return getGeoTaxonomyFieldBuilder().getBuilder(); + } + /** + *
+     * The geographic taxonomy for this sku.
+     * 
+ * + * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; + */ + 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_; + } + } + /** + *
+     * The geographic taxonomy for this sku.
+     * 
+ * + * .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> + 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()); + 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); } @@ -2172,12 +2210,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(); } @@ -2186,27 +2224,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; @@ -2221,4 +2259,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 80% 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 9b282cd8b366..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 2020 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,51 +175,70 @@ 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.
+   * 
+ * + * .google.cloud.billing.v1.GeoTaxonomy geo_taxonomy = 8; + */ + com.google.cloud.billing.v1.GeoTaxonomyOrBuilder getGeoTaxonomyOrBuilder(); } 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 0b82a1276676..b7dd291dd773 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,85 +1,61 @@ -/* - * Copyright 2020 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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 @@ -88,31 +64,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 { @@ -123,16 +97,11 @@ 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 @@ -140,34 +109,23 @@ 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() { @@ -177,15 +135,12 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getAccountOrBuilder() 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 @@ -193,15 +148,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 @@ -209,8 +161,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.
@@ -224,7 +174,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -236,7 +185,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_);
     }
@@ -259,10 +209,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;
@@ -272,22 +224,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;
@@ -316,136 +270,129 @@ 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 +414,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,8 +435,7 @@ 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); + com.google.cloud.billing.v1.UpdateBillingAccountRequest result = new com.google.cloud.billing.v1.UpdateBillingAccountRequest(this); result.name_ = name_; if (accountBuilder_ == null) { result.account_ = account_; @@ -509,39 +455,38 @@ public com.google.cloud.billing.v1.UpdateBillingAccountRequest buildPartial() { 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; @@ -549,8 +494,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_; onChanged(); @@ -587,31 +531,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); + case 10: { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: - { - input.readMessage(getAccountFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 10 + case 18: { + input.readMessage( + getAccountFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -624,22 +568,18 @@ public Builder mergeFrom( 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; @@ -648,23 +588,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 { @@ -672,67 +609,54 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -740,58 +664,39 @@ 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 accountBuilder_ != null || 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. */ 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) { @@ -807,17 +712,14 @@ 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(); onChanged(); @@ -828,23 +730,17 @@ 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 (account_ != null) { account_ = - com.google.cloud.billing.v1.BillingAccount.newBuilder(account_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.billing.v1.BillingAccount.newBuilder(account_).mergeFrom(value).buildPartial(); } else { account_ = value; } @@ -856,15 +752,11 @@ 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() { if (accountBuilder_ == null) { @@ -878,64 +770,48 @@ 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() { - + onChanged(); 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_; @@ -943,49 +819,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 updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * 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.
@@ -1007,8 +870,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -1016,7 +877,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();
         onChanged();
@@ -1027,8 +889,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.
@@ -1040,7 +900,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -1052,8 +912,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -1073,8 +931,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -1083,13 +939,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -1101,14 +955,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.
@@ -1117,24 +968,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);
     }
 
@@ -1144,12 +992,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();
   }
@@ -1158,27 +1006,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;
@@ -1193,4 +1041,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 0300e04a6491..fe5c9936f676 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,127 +1,80 @@
-/*
- * Copyright 2020 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 f7133bc6d733..ed453451ffb7 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,85 +1,62 @@
-/*
- * Copyright 2020 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - 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; 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, `projects/tokyo-rain-123`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -88,30 +65,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 associated with the billing information
    * that you want to update. For example, `projects/tokyo-rain-123`.
    * 
* * 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 { @@ -122,15 +99,12 @@ 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. Read-only fields are ignored;
    * thus, you can leave empty all fields except `billing_account_name`.
    * 
* * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2; - * * @return Whether the projectBillingInfo field is set. */ @java.lang.Override @@ -138,26 +112,19 @@ public boolean hasProjectBillingInfo() { return projectBillingInfo_ != null; } /** - * - * *
    * The new billing information for the project. Read-only fields are ignored;
    * thus, you can leave empty all fields except `billing_account_name`.
    * 
* * .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. Read-only fields are ignored;
    * thus, you can leave empty all fields except `billing_account_name`.
@@ -171,7 +138,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -183,7 +149,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_);
     }
@@ -203,7 +170,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;
@@ -213,18 +181,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;
@@ -249,136 +218,129 @@ 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(); @@ -394,9 +356,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 @@ -415,8 +377,7 @@ 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); + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest result = new com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest(this); result.name_ = name_; if (projectBillingInfoBuilder_ == null) { result.projectBillingInfo_ = projectBillingInfo_; @@ -431,39 +392,38 @@ public com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest buildPartial( 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; @@ -471,8 +431,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_; onChanged(); @@ -506,26 +465,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getProjectBillingInfoFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: { + input.readMessage( + getProjectBillingInfoFieldBuilder().getBuilder(), + extensionRegistry); + + 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) { @@ -538,21 +495,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the project associated with the billing information
      * that you want to update. For example, `projects/tokyo-rain-123`.
      * 
* * 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; @@ -561,22 +516,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the project associated with the billing information
      * that you want to update. For example, `projects/tokyo-rain-123`.
      * 
* * 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 { @@ -584,64 +538,57 @@ 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, `projects/tokyo-rain-123`.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project associated with the billing information
      * that you want to update. For example, `projects/tokyo-rain-123`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the project associated with the billing information
      * that you want to update. For example, `projects/tokyo-rain-123`.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -649,49 +596,36 @@ 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. Read-only fields are ignored;
      * thus, you can leave empty all fields except `billing_account_name`.
      * 
* * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2; - * * @return Whether the projectBillingInfo field is set. */ public boolean hasProjectBillingInfo() { return projectBillingInfoBuilder_ != null || projectBillingInfo_ != null; } /** - * - * *
      * The new billing information for the project. Read-only fields are ignored;
      * thus, you can leave empty all fields except `billing_account_name`.
      * 
* * .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. Read-only fields are ignored;
      * thus, you can leave empty all fields except `billing_account_name`.
@@ -713,8 +647,6 @@ public Builder setProjectBillingInfo(com.google.cloud.billing.v1.ProjectBillingI
       return this;
     }
     /**
-     *
-     *
      * 
      * The new billing information for the project. Read-only fields are ignored;
      * thus, you can leave empty all fields except `billing_account_name`.
@@ -734,8 +666,6 @@ public Builder setProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * The new billing information for the project. Read-only fields are ignored;
      * thus, you can leave empty all fields except `billing_account_name`.
@@ -747,9 +677,7 @@ public Builder mergeProjectBillingInfo(com.google.cloud.billing.v1.ProjectBillin
       if (projectBillingInfoBuilder_ == null) {
         if (projectBillingInfo_ != null) {
           projectBillingInfo_ =
-              com.google.cloud.billing.v1.ProjectBillingInfo.newBuilder(projectBillingInfo_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.billing.v1.ProjectBillingInfo.newBuilder(projectBillingInfo_).mergeFrom(value).buildPartial();
         } else {
           projectBillingInfo_ = value;
         }
@@ -761,8 +689,6 @@ public Builder mergeProjectBillingInfo(com.google.cloud.billing.v1.ProjectBillin
       return this;
     }
     /**
-     *
-     *
      * 
      * The new billing information for the project. Read-only fields are ignored;
      * thus, you can leave empty all fields except `billing_account_name`.
@@ -782,8 +708,6 @@ public Builder clearProjectBillingInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The new billing information for the project. Read-only fields are ignored;
      * thus, you can leave empty all fields except `billing_account_name`.
@@ -792,13 +716,11 @@ public Builder clearProjectBillingInfo() {
      * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2;
      */
     public com.google.cloud.billing.v1.ProjectBillingInfo.Builder getProjectBillingInfoBuilder() {
-
+      
       onChanged();
       return getProjectBillingInfoFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The new billing information for the project. Read-only fields are ignored;
      * thus, you can leave empty all fields except `billing_account_name`.
@@ -806,19 +728,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. Read-only fields are ignored;
      * thus, you can leave empty all fields except `billing_account_name`.
@@ -827,24 +745,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);
     }
 
@@ -854,12 +769,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();
   }
@@ -868,27 +783,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;
@@ -903,4 +818,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 bda32cfdce84..92a9bb826513 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,84 +1,55 @@
-/*
- * Copyright 2020 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, `projects/tokyo-rain-123`.
    * 
* * 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, `projects/tokyo-rain-123`.
    * 
* * 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. Read-only fields are ignored;
    * thus, you can leave empty all fields except `billing_account_name`.
    * 
* * .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. Read-only fields are ignored;
    * thus, you can leave empty all fields except `billing_account_name`.
    * 
* * .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. Read-only fields are ignored;
    * thus, you can leave empty all fields except `billing_account_name`.
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 87%
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 f0b19d14d136..b98f0fd7c264 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
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2022 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
 // 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.
-//
 
 syntax = "proto3";
 
@@ -30,10 +29,14 @@ option java_multiple_files = true;
 option java_outer_classname = "CloudBillingProto";
 option java_package = "com.google.cloud.billing.v1";
 
-// Retrieves GCP Console billing accounts and associates them with projects.
+// Retrieves the Google Cloud Console billing accounts and associates them with
+// projects.
 service CloudBilling {
   option (google.api.default_host) = "cloudbilling.googleapis.com";
-  option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+  option (google.api.oauth_scopes) =
+      "https://www.googleapis.com/auth/cloud-billing,"
+      "https://www.googleapis.com/auth/cloud-billing.readonly,"
+      "https://www.googleapis.com/auth/cloud-platform";
 
   // Gets information about a billing account. The current authenticated user
   // must be a [viewer of the billing
@@ -69,15 +72,20 @@ service CloudBilling {
     option (google.api.method_signature) = "name,account";
   }
 
-  // Creates a billing account.
-  // This method can only be used to create
-  // [billing subaccounts](https://cloud.google.com/billing/docs/concepts)
-  // by GCP resellers.
+  // This method creates [billing
+  // subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).
+  //
+  // Google Cloud resellers should use the
+  // Channel Services APIs,
+  // [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create)
+  // and
+  // [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create).
+  //
   // When creating a subaccount, the current authenticated user must have the
-  // `billing.accounts.update` IAM permission on the master account, which is
+  // `billing.accounts.update` IAM permission on the parent account, which is
   // typically given to billing account
   // [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
-  // This method will return an error if the master account has not been
+  // This method will return an error if the parent account has not been
   // provisioned as a reseller account.
   rpc CreateBillingAccount(CreateBillingAccountRequest) returns (BillingAccount) {
     option (google.api.http) = {
@@ -99,9 +107,10 @@ service CloudBilling {
   }
 
   // Gets the billing information for a project. The current authenticated user
-  // must have [permission to view the
-  // project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
-  // ).
+  // must have the `resourcemanager.projects.get` permission for the project,
+  // which can be granted by assigning the [Project
+  // Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
+  // role.
   rpc GetProjectBillingInfo(GetProjectBillingInfoRequest) returns (ProjectBillingInfo) {
     option (google.api.http) = {
       get: "/v1/{name=projects/*}/billingInfo"
@@ -118,7 +127,7 @@ service CloudBilling {
   // usage charges.
   //
   // *Note:* Incurred charges that have not yet been reported in the transaction
-  // history of the GCP Console might be billed to the new billing
+  // history of the Google Cloud Console might be billed to the new billing
   // account, even if the charge occurred before the new billing account was
   // assigned to the project.
   //
@@ -184,16 +193,20 @@ service CloudBilling {
   }
 }
 
-// A billing account in [GCP Console](https://console.cloud.google.com/).
-// You can assign a billing account to one or more projects.
+// A billing account in the
+// [Google Cloud Console](https://console.cloud.google.com/). You can assign a
+// billing account to one or more projects.
 message BillingAccount {
-  // The resource name of the billing account. The resource name has the form
+  // Output only. The resource name of the billing account. The resource name has the form
   // `billingAccounts/{billing_account_id}`. For example,
   // `billingAccounts/012345-567890-ABCDEF` would be the resource name for
   // billing account `012345-567890-ABCDEF`.
-  string name = 1 [(google.api.resource_reference) = {
-                     type: "cloudbilling.googleapis.com/BillingAccount"
-                   }];
+  string name = 1 [
+    (google.api.field_behavior) = OUTPUT_ONLY,
+    (google.api.resource_reference) = {
+      type: "cloudbilling.googleapis.com/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
@@ -201,20 +214,20 @@ message BillingAccount {
   bool open = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
 
   // The display name given to the billing account, such as `My Billing
-  // Account`. This name is displayed in the GCP Console.
+  // Account`. This name is displayed in the Google Cloud Console.
   string display_name = 3;
 
   // If this account is a
   // [subaccount](https://cloud.google.com/billing/docs/concepts), then this
-  // will be the resource name of the master billing account that it is being
+  // will be the resource name of the parent billing account that it is being
   // resold through.
   // Otherwise this will be empty.
   string master_billing_account = 4;
 }
 
-// Encapsulation of billing information for a GCP Console project. A project
-// has at most one associated billing account at a time (but a billing account
-// can be assigned to multiple projects).
+// 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
+// account can be assigned to multiple projects).
 message ProjectBillingInfo {
   // The resource name for the `ProjectBillingInfo`; has the form
   // `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -285,7 +298,7 @@ message ListBillingAccountsResponse {
 message CreateBillingAccountRequest {
   // Required. The billing account resource to create.
   // Currently CreateBillingAccount only supports subaccount creation, so
-  // any created billing accounts must be under a provided master billing
+  // any created billing accounts must be under a provided parent billing
   // account.
   BillingAccount billing_account = 1 [(google.api.field_behavior) = REQUIRED];
 }
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 91%
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
index 7bc2f14e3b10..f3d46e627083 100644
--- 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
@@ -1,4 +1,4 @@
-// Copyright 2019 Google LLC.
+// Copyright 2022 Google LLC
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
 // 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.
-//
 
 syntax = "proto3";
 
@@ -36,7 +35,10 @@ option objc_class_prefix = "CLDCTLG";
 // and SKUs.
 service CloudCatalog {
   option (google.api.default_host) = "cloudbilling.googleapis.com";
-  option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+  option (google.api.oauth_scopes) =
+      "https://www.googleapis.com/auth/cloud-billing,"
+      "https://www.googleapis.com/auth/cloud-billing.readonly,"
+      "https://www.googleapis.com/auth/cloud-platform";
 
   // Lists all public cloud services.
   rpc ListServices(ListServicesRequest) returns (ListServicesResponse) {
@@ -111,6 +113,9 @@ message Sku {
   // Identifies the service provider.
   // This is 'Google' for first party services in Google Cloud Platform.
   string service_provider_name = 7;
+
+  // The geographic taxonomy for this sku.
+  GeoTaxonomy geo_taxonomy = 8;
 }
 
 // Represents the category hierarchy of a SKU.
@@ -187,6 +192,21 @@ message PricingExpression {
   // Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
   string usage_unit = 1;
 
+  // The recommended quantity of units for displaying pricing info. When
+  // displaying pricing info it is recommended to display:
+  // (unit_price * display_quantity) per display_quantity usage_unit.
+  // This field does not affect the pricing formula and is for display purposes
+  // only.
+  // Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
+  // the display_quantity is "1000" then the recommended way of displaying the
+  // pricing info is "0.10 USD per 1000 GB"
+  double display_quantity = 2;
+
+  // 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
+  // by ascending order of start_usage_amount.
+  repeated TierRate tiered_rates = 3;
+
   // The unit of usage in human readable form.
   // Example: "gibi byte".
   string usage_unit_description = 4;
@@ -205,21 +225,6 @@ message PricingExpression {
   // start_usage_amount * base_unit_conversion_factor = start_usage_amount in
   // base_unit.
   double base_unit_conversion_factor = 7;
-
-  // The recommended quantity of units for displaying pricing info. When
-  // displaying pricing info it is recommended to display:
-  // (unit_price * display_quantity) per display_quantity usage_unit.
-  // This field does not affect the pricing formula and is for display purposes
-  // only.
-  // Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
-  // the display_quantity is "1000" then the recommended way of displaying the
-  // pricing info is "0.10 USD per 1000 GB"
-  double display_quantity = 2;
-
-  // 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
-  // by ascending order of start_usage_amount.
-  repeated TierRate tiered_rates = 3;
 }
 
 // Represents the aggregation level and interval for pricing of a single SKU.
@@ -256,6 +261,33 @@ message AggregationInfo {
   int32 aggregation_count = 3;
 }
 
+// Encapsulates the geographic taxonomy data for a sku.
+message GeoTaxonomy {
+  // The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
+  enum Type {
+    // The type is not specified.
+    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.
+    GLOBAL = 1;
+
+    // The sku is available in a specific region, e.g. "us-west2".
+    REGIONAL = 2;
+
+    // The sku is associated with multiple regions, e.g. "us-west2" and
+    // "us-east1".
+    MULTI_REGIONAL = 3;
+  }
+
+  // The type of Geo Taxonomy: GLOBAL, REGIONAL, or MULTI_REGIONAL.
+  Type type = 1;
+
+  // The list of regions associated with a sku. Empty for Global skus, which are
+  // associated with all Google Cloud regions.
+  repeated string regions = 2;
+}
+
 // Request message for `ListServices`.
 message ListServicesRequest {
   // Requested page size. Defaults to 5000.
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/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/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/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/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