From 29711f8cb8db3e7caa20d3956c41557bb1b77d07 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:54:12 +0000 Subject: [PATCH 1/4] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../cloud/billing/v1/CloudCatalogGrpc.java | 483 ------- .../cloud/billing/v1/CloudBillingClient.java | 62 +- .../billing/v1/CloudBillingSettings.java | 39 +- .../cloud/billing/v1/CloudCatalogClient.java | 30 +- .../billing/v1/CloudCatalogSettings.java | 30 +- .../cloud/billing/v1/gapic_metadata.json | 0 .../google/cloud/billing/v1/package-info.java | 0 .../billing/v1/stub/CloudBillingStub.java | 0 .../v1/stub/CloudBillingStubSettings.java | 89 +- .../billing/v1/stub/CloudCatalogStub.java | 0 .../v1/stub/CloudCatalogStubSettings.java | 59 +- .../stub/GrpcCloudBillingCallableFactory.java | 0 .../billing/v1/stub/GrpcCloudBillingStub.java | 1 + .../stub/GrpcCloudCatalogCallableFactory.java | 0 .../billing/v1/stub/GrpcCloudCatalogStub.java | 1 + .../HttpJsonCloudBillingCallableFactory.java | 105 ++ .../v1/stub/HttpJsonCloudBillingStub.java | 725 +++++++++++ .../HttpJsonCloudCatalogCallableFactory.java | 105 ++ .../v1/stub/HttpJsonCloudCatalogStub.java | 270 ++++ .../v1/CloudBillingClientHttpJsonTest.java | 853 +++++++++++++ .../billing/v1/CloudBillingClientTest.java | 0 .../v1/CloudCatalogClientHttpJsonTest.java | 230 ++++ .../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 | 1119 ++++++----------- .../cloud/billing/v1/CloudCatalogGrpc.java | 399 ++++++ .../cloud/billing/v1/AggregationInfo.java | 555 ++++---- .../billing/v1/AggregationInfoOrBuilder.java | 31 +- .../cloud/billing/v1/BillingAccount.java | 498 ++++---- .../cloud/billing/v1/BillingAccountName.java | 0 .../billing/v1/BillingAccountOrBuilder.java | 48 +- .../com/google/cloud/billing/v1/Category.java | 531 ++++---- .../cloud/billing/v1/CategoryOrBuilder.java | 54 +- .../cloud/billing/v1/CloudBillingProto.java | 270 ++++ .../cloud/billing/v1/CloudCatalogProto.java | 249 ++++ .../v1/CreateBillingAccountRequest.java | 386 +++--- .../CreateBillingAccountRequestOrBuilder.java | 38 +- .../billing/v1/GetBillingAccountRequest.java | 339 +++-- .../v1/GetBillingAccountRequestOrBuilder.java | 31 + .../v1/GetProjectBillingInfoRequest.java | 314 ++--- ...GetProjectBillingInfoRequestOrBuilder.java | 27 +- .../v1/ListBillingAccountsRequest.java | 427 +++---- .../ListBillingAccountsRequestOrBuilder.java | 39 +- .../v1/ListBillingAccountsResponse.java | 453 +++---- .../ListBillingAccountsResponseOrBuilder.java | 45 +- .../v1/ListProjectBillingInfoRequest.java | 455 +++---- ...istProjectBillingInfoRequestOrBuilder.java | 47 +- .../v1/ListProjectBillingInfoResponse.java | 452 +++---- ...stProjectBillingInfoResponseOrBuilder.java | 45 +- .../cloud/billing/v1/ListServicesRequest.java | 338 +++-- .../v1/ListServicesRequestOrBuilder.java | 30 +- .../billing/v1/ListServicesResponse.java | 456 +++---- .../v1/ListServicesResponseOrBuilder.java | 46 +- .../cloud/billing/v1/ListSkusRequest.java | 699 ++++------ .../billing/v1/ListSkusRequestOrBuilder.java | 72 +- .../cloud/billing/v1/ListSkusResponse.java | 454 +++---- .../billing/v1/ListSkusResponseOrBuilder.java | 46 +- .../cloud/billing/v1/PricingExpression.java | 1117 +++++++--------- .../v1/PricingExpressionOrBuilder.java | 75 +- .../google/cloud/billing/v1/PricingInfo.java | 636 ++++------ .../billing/v1/PricingInfoOrBuilder.java | 54 +- .../cloud/billing/v1/ProjectBillingInfo.java | 498 ++++---- .../v1/ProjectBillingInfoOrBuilder.java | 48 +- .../com/google/cloud/billing/v1/Service.java | 531 ++++---- .../google/cloud/billing/v1/ServiceName.java | 0 .../cloud/billing/v1/ServiceOrBuilder.java | 54 +- .../java/com/google/cloud/billing/v1/Sku.java | 890 +++++-------- .../google/cloud/billing/v1/SkuOrBuilder.java | 98 +- .../v1/UpdateBillingAccountRequest.java | 585 ++++----- .../UpdateBillingAccountRequestOrBuilder.java | 63 +- .../v1/UpdateProjectBillingInfoRequest.java | 418 +++--- ...ateProjectBillingInfoRequestOrBuilder.java | 35 +- .../cloud/billing/v1/cloud_billing.proto | 0 .../cloud/billing/v1/cloud_catalog.proto | 0 .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 38 + .../AsyncCreateBillingAccount.java | 46 + .../SyncCreateBillingAccount.java | 42 + ...yncCreateBillingAccountBillingaccount.java | 38 + .../AsyncGetBillingAccount.java | 47 + .../SyncGetBillingAccount.java | 43 + ...ncGetBillingAccountBillingaccountname.java | 39 + .../SyncGetBillingAccountString.java | 39 + .../getiampolicy/AsyncGetIamPolicy.java | 48 + .../getiampolicy/SyncGetIamPolicy.java | 45 + .../SyncGetIamPolicyResourcename.java | 40 + .../getiampolicy/SyncGetIamPolicyString.java | 39 + .../AsyncGetProjectBillingInfo.java | 44 + .../SyncGetProjectBillingInfo.java | 40 + .../SyncGetProjectBillingInfoString.java | 38 + .../AsyncListBillingAccounts.java | 50 + .../AsyncListBillingAccountsPaged.java | 58 + .../SyncListBillingAccounts.java | 46 + .../SyncListBillingAccountsNoargs.java | 39 + .../AsyncListProjectBillingInfo.java | 51 + .../AsyncListProjectBillingInfoPaged.java | 59 + .../SyncListProjectBillingInfo.java | 48 + ...tProjectBillingInfoBillingaccountname.java | 42 + .../SyncListProjectBillingInfoString.java | 42 + .../setiampolicy/AsyncSetIamPolicy.java | 49 + .../setiampolicy/SyncSetIamPolicy.java | 46 + .../SyncSetIamPolicyResourcenamePolicy.java | 41 + .../SyncSetIamPolicyStringPolicy.java | 40 + .../AsyncTestIamPermissions.java | 49 + .../SyncTestIamPermissions.java | 45 + ...tIamPermissionsResourcenameListstring.java | 44 + ...yncTestIamPermissionsStringListstring.java | 43 + .../AsyncUpdateBillingAccount.java | 50 + .../SyncUpdateBillingAccount.java | 46 + ...countBillingaccountnameBillingaccount.java | 40 + ...ateBillingAccountStringBillingaccount.java | 40 + .../AsyncUpdateProjectBillingInfo.java | 47 + .../SyncUpdateProjectBillingInfo.java | 43 + ...ctBillingInfoStringProjectbillinginfo.java | 40 + .../SyncGetBillingAccount.java | 45 + .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 38 + .../listservices/AsyncListServices.java | 49 + .../listservices/AsyncListServicesPaged.java | 56 + .../listservices/SyncListServices.java | 45 + .../listservices/SyncListServicesNoargs.java | 39 + .../listskus/AsyncListSkus.java | 54 + .../listskus/AsyncListSkusPaged.java | 62 + .../listskus/SyncListSkus.java | 51 + .../listskus/SyncListSkusServicename.java | 41 + .../listskus/SyncListSkusString.java | 41 + .../listservices/SyncListServices.java | 45 + .../SyncGetBillingAccount.java | 46 + .../listservices/SyncListServices.java | 46 + .../cloud/billing/v1/CloudBillingProto.java | 295 ----- .../cloud/billing/v1/CloudCatalogProto.java | 292 ----- .../v1/GetBillingAccountRequestOrBuilder.java | 56 - 137 files changed, 10957 insertions(+), 9407 deletions(-) delete mode 100644 grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java (97%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java (90%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java (95%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java (86%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json (100%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/package-info.java (100%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java (100%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java (90%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java (100%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java (87%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java (100%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java (99%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java (100%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java (99%) create mode 100644 owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java create mode 100644 owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java create mode 100644 owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java (100%) create mode 100644 owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java (100%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java (100%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java (100%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java (100%) rename {google-cloud-billing => owl-bot-staging/v1/google-cloud-billing}/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java (100%) rename {grpc-google-cloud-billing-v1 => owl-bot-staging/v1/grpc-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java (54%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java (67%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java (65%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/BillingAccount.java (75%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java (100%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java (75%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/Category.java (72%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java (65%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java (54%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java (69%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java (54%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java (73%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java (72%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java (74%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java (69%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java (69%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java (60%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java (76%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java (75%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java (71%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java (60%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java (74%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java (67%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java (76%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java (80%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java (74%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java (67%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/PricingExpression.java (77%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java (82%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/PricingInfo.java (75%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java (84%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java (75%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java (75%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/Service.java (71%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ServiceName.java (100%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java (66%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/Sku.java (75%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java (79%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java (65%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java (58%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java (71%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java (72%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/proto/google/cloud/billing/v1/cloud_billing.proto (100%) rename {proto-google-cloud-billing-v1 => owl-bot-staging/v1/proto-google-cloud-billing-v1}/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/AsyncCreateBillingAccount.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccount.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccountBillingaccount.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/AsyncGetBillingAccount.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccount.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountBillingaccountname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/AsyncGetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyResourcename.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/AsyncGetProjectBillingInfo.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfo.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfoString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccounts.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccountsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccounts.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccountsNoargs.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfo.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfo.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/AsyncSetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyStringPolicy.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/AsyncTestIamPermissions.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissions.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsStringListstring.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/AsyncUpdateBillingAccount.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccount.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServices.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServicesPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServices.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServicesNoargs.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkus.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkusPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkus.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusServicename.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java delete mode 100644 proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java delete mode 100644 proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java delete mode 100644 proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java diff --git a/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java b/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java deleted file mode 100644 index 989b5170..00000000 --- a/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/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java similarity index 97% rename from google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java rename to owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java index edd9f2a2..3a9fee5d 100644 --- a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java +++ b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java @@ -61,13 +61,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -102,6 +102,20 @@ * CloudBillingClient cloudBillingClient = CloudBillingClient.create(cloudBillingSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * CloudBillingSettings cloudBillingSettings =
+ *     CloudBillingSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             CloudBillingSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * CloudBillingClient cloudBillingClient = CloudBillingClient.create(cloudBillingSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -875,7 +889,7 @@ public final ProjectBillingInfo getProjectBillingInfo(GetProjectBillingInfoReque * the name of an * *

    - *
  • open* billing account. + *
  • open* billing account. *
* *

Sample code: @@ -936,7 +950,7 @@ public final ProjectBillingInfo updateProjectBillingInfo( * the name of an * *

    - *
  • open* billing account. + *
  • open* billing account. *
* *

Sample code: @@ -991,7 +1005,7 @@ public final ProjectBillingInfo updateProjectBillingInfo( * the name of an * *

    - *
  • open* billing account. + *
  • open* billing account. *
* *

Sample code: @@ -1414,11 +1428,8 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListBillingAccountsPagedResponse extends AbstractPagedListResponse< - ListBillingAccountsRequest, - ListBillingAccountsResponse, - BillingAccount, - ListBillingAccountsPage, - ListBillingAccountsFixedSizeCollection> { + ListBillingAccountsRequest, ListBillingAccountsResponse, BillingAccount, + ListBillingAccountsPage, ListBillingAccountsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -1439,9 +1450,7 @@ private ListBillingAccountsPagedResponse(ListBillingAccountsPage page) { public static class ListBillingAccountsPage extends AbstractPage< - ListBillingAccountsRequest, - ListBillingAccountsResponse, - BillingAccount, + ListBillingAccountsRequest, ListBillingAccountsResponse, BillingAccount, ListBillingAccountsPage> { private ListBillingAccountsPage( @@ -1474,11 +1483,8 @@ public ApiFuture createPageAsync( public static class ListBillingAccountsFixedSizeCollection extends AbstractFixedSizeCollection< - ListBillingAccountsRequest, - ListBillingAccountsResponse, - BillingAccount, - ListBillingAccountsPage, - ListBillingAccountsFixedSizeCollection> { + ListBillingAccountsRequest, ListBillingAccountsResponse, BillingAccount, + ListBillingAccountsPage, ListBillingAccountsFixedSizeCollection> { private ListBillingAccountsFixedSizeCollection( List pages, int collectionSize) { @@ -1498,11 +1504,8 @@ protected ListBillingAccountsFixedSizeCollection createCollection( public static class ListProjectBillingInfoPagedResponse extends AbstractPagedListResponse< - ListProjectBillingInfoRequest, - ListProjectBillingInfoResponse, - ProjectBillingInfo, - ListProjectBillingInfoPage, - ListProjectBillingInfoFixedSizeCollection> { + ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ProjectBillingInfo, + ListProjectBillingInfoPage, ListProjectBillingInfoFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -1524,9 +1527,7 @@ private ListProjectBillingInfoPagedResponse(ListProjectBillingInfoPage page) { public static class ListProjectBillingInfoPage extends AbstractPage< - ListProjectBillingInfoRequest, - ListProjectBillingInfoResponse, - ProjectBillingInfo, + ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ProjectBillingInfo, ListProjectBillingInfoPage> { private ListProjectBillingInfoPage( @@ -1562,11 +1563,8 @@ public ApiFuture createPageAsync( public static class ListProjectBillingInfoFixedSizeCollection extends AbstractFixedSizeCollection< - ListProjectBillingInfoRequest, - ListProjectBillingInfoResponse, - ProjectBillingInfo, - ListProjectBillingInfoPage, - ListProjectBillingInfoFixedSizeCollection> { + ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ProjectBillingInfo, + ListProjectBillingInfoPage, ListProjectBillingInfoFixedSizeCollection> { private ListProjectBillingInfoFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java similarity index 90% rename from google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java rename to owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java index 5f88c74a..05d69c8c 100644 --- a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java +++ b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java @@ -24,10 +24,12 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; 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; @@ -47,9 +49,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -102,8 +104,7 @@ public UnaryCallSettings getBillingAcc /** Returns the object with the settings used for calls to listProjectBillingInfo. */ public PagedCallSettings< - ListProjectBillingInfoRequest, - ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse> listProjectBillingInfoSettings() { return ((CloudBillingStubSettings) getStubSettings()).listProjectBillingInfoSettings(); @@ -162,11 +163,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return CloudBillingStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return CloudBillingStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CloudBillingStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return CloudBillingStubSettings.defaultTransportChannelProvider(); } @@ -176,11 +184,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return CloudBillingStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -218,6 +232,11 @@ private static Builder createDefault() { return new Builder(CloudBillingStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(CloudBillingStubSettings.newHttpJsonBuilder()); + } + public CloudBillingStubSettings.Builder getStubSettingsBuilder() { return ((CloudBillingStubSettings.Builder) getStubSettings()); } @@ -242,8 +261,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listBillingAccounts. */ public PagedCallSettings.Builder< - ListBillingAccountsRequest, - ListBillingAccountsResponse, + ListBillingAccountsRequest, ListBillingAccountsResponse, ListBillingAccountsPagedResponse> listBillingAccountsSettings() { return getStubSettingsBuilder().listBillingAccountsSettings(); @@ -263,8 +281,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listProjectBillingInfo. */ public PagedCallSettings.Builder< - ListProjectBillingInfoRequest, - ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse> listProjectBillingInfoSettings() { return getStubSettingsBuilder().listProjectBillingInfoSettings(); diff --git a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java similarity index 95% rename from google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java rename to owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java index 76d36bfa..225283b0 100644 --- a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java +++ b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java @@ -57,13 +57,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -98,6 +98,20 @@ * CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create(cloudCatalogSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * CloudCatalogSettings cloudCatalogSettings =
+ *     CloudCatalogSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             CloudCatalogSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create(cloudCatalogSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -448,10 +462,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListServicesPagedResponse extends AbstractPagedListResponse< - ListServicesRequest, - ListServicesResponse, - Service, - ListServicesPage, + ListServicesRequest, ListServicesResponse, Service, ListServicesPage, ListServicesFixedSizeCollection> { public static ApiFuture createAsync( @@ -500,10 +511,7 @@ public ApiFuture createPageAsync( public static class ListServicesFixedSizeCollection extends AbstractFixedSizeCollection< - ListServicesRequest, - ListServicesResponse, - Service, - ListServicesPage, + ListServicesRequest, ListServicesResponse, Service, ListServicesPage, ListServicesFixedSizeCollection> { private ListServicesFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java similarity index 86% rename from google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java rename to owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java index f24dc378..a278c4c8 100644 --- a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java +++ b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java @@ -24,10 +24,12 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; 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; @@ -42,9 +44,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -108,11 +110,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return CloudCatalogStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return CloudCatalogStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CloudCatalogStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return CloudCatalogStubSettings.defaultTransportChannelProvider(); } @@ -122,11 +131,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return CloudCatalogStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -164,6 +179,11 @@ private static Builder createDefault() { return new Builder(CloudCatalogStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(CloudCatalogStubSettings.newHttpJsonBuilder()); + } + public CloudCatalogStubSettings.Builder getStubSettingsBuilder() { return ((CloudCatalogStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json similarity index 100% rename from google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json diff --git a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java similarity index 100% rename from google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java diff --git a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java similarity index 100% rename from google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java rename to owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java diff --git a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java similarity index 90% rename from google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java rename to owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java index 90f5923f..2db92c7a 100644 --- a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -73,9 +76,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -116,8 +119,7 @@ public class CloudBillingStubSettings extends StubSettings createBillingAccountSettings; private final PagedCallSettings< - ListProjectBillingInfoRequest, - ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse> listProjectBillingInfoSettings; private final UnaryCallSettings @@ -216,8 +218,7 @@ public Iterable extractResources( ListBillingAccountsRequest, ListBillingAccountsResponse, ListBillingAccountsPagedResponse> LIST_BILLING_ACCOUNTS_PAGE_STR_FACT = new PagedListResponseFactory< - ListBillingAccountsRequest, - ListBillingAccountsResponse, + ListBillingAccountsRequest, ListBillingAccountsResponse, ListBillingAccountsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -234,13 +235,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListProjectBillingInfoRequest, - ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse> LIST_PROJECT_BILLING_INFO_PAGE_STR_FACT = new PagedListResponseFactory< - ListProjectBillingInfoRequest, - ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -250,8 +249,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListProjectBillingInfoRequest, - ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ProjectBillingInfo> pageContext = PageContext.create( @@ -286,8 +284,7 @@ public UnaryCallSettings getBillingAcc /** Returns the object with the settings used for calls to listProjectBillingInfo. */ public PagedCallSettings< - ListProjectBillingInfoRequest, - ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse> listProjectBillingInfoSettings() { return listProjectBillingInfoSettings; @@ -327,6 +324,11 @@ public CloudBillingStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCloudBillingStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCloudBillingStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -359,18 +361,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(CloudBillingStubSettings.class)) @@ -378,11 +387,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CloudBillingStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CloudBillingStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -414,8 +442,7 @@ public static class Builder extends StubSettings.Builder getBillingAccountSettings; private final PagedCallSettings.Builder< - ListBillingAccountsRequest, - ListBillingAccountsResponse, + ListBillingAccountsRequest, ListBillingAccountsResponse, ListBillingAccountsPagedResponse> listBillingAccountsSettings; private final UnaryCallSettings.Builder @@ -423,8 +450,7 @@ public static class Builder extends StubSettings.Builder createBillingAccountSettings; private final PagedCallSettings.Builder< - ListProjectBillingInfoRequest, - ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse> listProjectBillingInfoSettings; private final UnaryCallSettings.Builder @@ -554,6 +580,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .getBillingAccountSettings() @@ -631,8 +670,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listBillingAccounts. */ public PagedCallSettings.Builder< - ListBillingAccountsRequest, - ListBillingAccountsResponse, + ListBillingAccountsRequest, ListBillingAccountsResponse, ListBillingAccountsPagedResponse> listBillingAccountsSettings() { return listBillingAccountsSettings; @@ -652,8 +690,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listProjectBillingInfo. */ public PagedCallSettings.Builder< - ListProjectBillingInfoRequest, - ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse> listProjectBillingInfoSettings() { return listProjectBillingInfoSettings; diff --git a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java similarity index 100% rename from google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java rename to owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java diff --git a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java similarity index 87% rename from google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java rename to owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java index 73489b8b..e7641300 100644 --- a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -63,9 +66,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -225,6 +228,11 @@ public CloudCatalogStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCloudCatalogStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCloudCatalogStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -257,18 +265,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(CloudCatalogStubSettings.class)) @@ -276,11 +291,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CloudCatalogStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CloudCatalogStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -372,6 +406,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .listServicesSettings() diff --git a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java similarity index 100% rename from google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java rename to owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java diff --git a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java similarity index 99% rename from google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java rename to owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java index fdd74671..2a089fd7 100644 --- a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java +++ b/owl-bot-staging/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/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java similarity index 100% rename from google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java rename to owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java diff --git a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java similarity index 99% rename from google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java rename to owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java index 92a88f5c..e0354f5b 100644 --- a/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java +++ b/owl-bot-staging/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/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java new file mode 100644 index 00000000..894f58f0 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java @@ -0,0 +1,105 @@ +/* + * 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. + * 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CloudBilling service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonCloudBillingCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java new file mode 100644 index 00000000..2ef1b9ac --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java @@ -0,0 +1,725 @@ +/* + * 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. + * 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.stub; + +import static com.google.cloud.billing.v1.CloudBillingClient.ListBillingAccountsPagedResponse; +import static com.google.cloud.billing.v1.CloudBillingClient.ListProjectBillingInfoPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.billing.v1.BillingAccount; +import com.google.cloud.billing.v1.CreateBillingAccountRequest; +import com.google.cloud.billing.v1.GetBillingAccountRequest; +import com.google.cloud.billing.v1.GetProjectBillingInfoRequest; +import com.google.cloud.billing.v1.ListBillingAccountsRequest; +import com.google.cloud.billing.v1.ListBillingAccountsResponse; +import com.google.cloud.billing.v1.ListProjectBillingInfoRequest; +import com.google.cloud.billing.v1.ListProjectBillingInfoResponse; +import com.google.cloud.billing.v1.ProjectBillingInfo; +import com.google.cloud.billing.v1.UpdateBillingAccountRequest; +import com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CloudBilling service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonCloudBillingStub extends CloudBillingStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getBillingAccountMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.billing.v1.CloudBilling/GetBillingAccount") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=billingAccounts/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BillingAccount.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listBillingAccountsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.billing.v1.CloudBilling/ListBillingAccounts") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/billingAccounts", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBillingAccountsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateBillingAccountMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.billing.v1.CloudBilling/UpdateBillingAccount") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=billingAccounts/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("account", request.getAccount())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BillingAccount.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createBillingAccountMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.billing.v1.CloudBilling/CreateBillingAccount") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/billingAccounts", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("billingAccount", request.getBillingAccount())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BillingAccount.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListProjectBillingInfoRequest, ListProjectBillingInfoResponse> + listProjectBillingInfoMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.billing.v1.CloudBilling/ListProjectBillingInfo") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=billingAccounts/*}/projects", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListProjectBillingInfoResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getProjectBillingInfoMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.billing.v1.CloudBilling/GetProjectBillingInfo") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/billingInfo", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ProjectBillingInfo.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateProjectBillingInfoMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.billing.v1.CloudBilling/UpdateProjectBillingInfo") + .setHttpMethod("PUT") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/billingInfo", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("projectBillingInfo", request.getProjectBillingInfo())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ProjectBillingInfo.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.billing.v1.CloudBilling/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=billingAccounts/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "options", request.getOptions()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.billing.v1.CloudBilling/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=billingAccounts/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.billing.v1.CloudBilling/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=billingAccounts/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getBillingAccountCallable; + private final UnaryCallable + listBillingAccountsCallable; + private final UnaryCallable + listBillingAccountsPagedCallable; + private final UnaryCallable + updateBillingAccountCallable; + private final UnaryCallable + createBillingAccountCallable; + private final UnaryCallable + listProjectBillingInfoCallable; + private final UnaryCallable + listProjectBillingInfoPagedCallable; + private final UnaryCallable + getProjectBillingInfoCallable; + private final UnaryCallable + updateProjectBillingInfoCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCloudBillingStub create(CloudBillingStubSettings settings) + throws IOException { + return new HttpJsonCloudBillingStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCloudBillingStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCloudBillingStub( + CloudBillingStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCloudBillingStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCloudBillingStub( + CloudBillingStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCloudBillingStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonCloudBillingStub(CloudBillingStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonCloudBillingCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCloudBillingStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonCloudBillingStub( + CloudBillingStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + getBillingAccountTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getBillingAccountMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listBillingAccountsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listBillingAccountsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateBillingAccountTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateBillingAccountMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createBillingAccountTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createBillingAccountMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listProjectBillingInfoTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listProjectBillingInfoMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getProjectBillingInfoTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getProjectBillingInfoMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateProjectBillingInfoTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateProjectBillingInfoMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.getBillingAccountCallable = + callableFactory.createUnaryCallable( + getBillingAccountTransportSettings, + settings.getBillingAccountSettings(), + clientContext); + this.listBillingAccountsCallable = + callableFactory.createUnaryCallable( + listBillingAccountsTransportSettings, + settings.listBillingAccountsSettings(), + clientContext); + this.listBillingAccountsPagedCallable = + callableFactory.createPagedCallable( + listBillingAccountsTransportSettings, + settings.listBillingAccountsSettings(), + clientContext); + this.updateBillingAccountCallable = + callableFactory.createUnaryCallable( + updateBillingAccountTransportSettings, + settings.updateBillingAccountSettings(), + clientContext); + this.createBillingAccountCallable = + callableFactory.createUnaryCallable( + createBillingAccountTransportSettings, + settings.createBillingAccountSettings(), + clientContext); + this.listProjectBillingInfoCallable = + callableFactory.createUnaryCallable( + listProjectBillingInfoTransportSettings, + settings.listProjectBillingInfoSettings(), + clientContext); + this.listProjectBillingInfoPagedCallable = + callableFactory.createPagedCallable( + listProjectBillingInfoTransportSettings, + settings.listProjectBillingInfoSettings(), + clientContext); + this.getProjectBillingInfoCallable = + callableFactory.createUnaryCallable( + getProjectBillingInfoTransportSettings, + settings.getProjectBillingInfoSettings(), + clientContext); + this.updateProjectBillingInfoCallable = + callableFactory.createUnaryCallable( + updateProjectBillingInfoTransportSettings, + settings.updateProjectBillingInfoSettings(), + clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getBillingAccountMethodDescriptor); + methodDescriptors.add(listBillingAccountsMethodDescriptor); + methodDescriptors.add(updateBillingAccountMethodDescriptor); + methodDescriptors.add(createBillingAccountMethodDescriptor); + methodDescriptors.add(listProjectBillingInfoMethodDescriptor); + methodDescriptors.add(getProjectBillingInfoMethodDescriptor); + methodDescriptors.add(updateProjectBillingInfoMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getBillingAccountCallable() { + return getBillingAccountCallable; + } + + @Override + public UnaryCallable + listBillingAccountsCallable() { + return listBillingAccountsCallable; + } + + @Override + public UnaryCallable + listBillingAccountsPagedCallable() { + return listBillingAccountsPagedCallable; + } + + @Override + public UnaryCallable updateBillingAccountCallable() { + return updateBillingAccountCallable; + } + + @Override + public UnaryCallable createBillingAccountCallable() { + return createBillingAccountCallable; + } + + @Override + public UnaryCallable + listProjectBillingInfoCallable() { + return listProjectBillingInfoCallable; + } + + @Override + public UnaryCallable + listProjectBillingInfoPagedCallable() { + return listProjectBillingInfoPagedCallable; + } + + @Override + public UnaryCallable + getProjectBillingInfoCallable() { + return getProjectBillingInfoCallable; + } + + @Override + public UnaryCallable + updateProjectBillingInfoCallable() { + return updateProjectBillingInfoCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java new file mode 100644 index 00000000..6fd3a5af --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java @@ -0,0 +1,105 @@ +/* + * 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. + * 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CloudCatalog service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonCloudCatalogCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java new file mode 100644 index 00000000..18d77855 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java @@ -0,0 +1,270 @@ +/* + * 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. + * 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.stub; + +import static com.google.cloud.billing.v1.CloudCatalogClient.ListServicesPagedResponse; +import static com.google.cloud.billing.v1.CloudCatalogClient.ListSkusPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.billing.v1.ListServicesRequest; +import com.google.cloud.billing.v1.ListServicesResponse; +import com.google.cloud.billing.v1.ListSkusRequest; +import com.google.cloud.billing.v1.ListSkusResponse; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CloudCatalog service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonCloudCatalogStub extends CloudCatalogStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + listServicesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.billing.v1.CloudCatalog/ListServices") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/services", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListServicesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSkusMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.billing.v1.CloudCatalog/ListSkus") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=services/*}/skus", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "currencyCode", request.getCurrencyCode()); + serializer.putQueryParam(fields, "endTime", request.getEndTime()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "startTime", request.getStartTime()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSkusResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable listServicesCallable; + private final UnaryCallable + listServicesPagedCallable; + private final UnaryCallable listSkusCallable; + private final UnaryCallable listSkusPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCloudCatalogStub create(CloudCatalogStubSettings settings) + throws IOException { + return new HttpJsonCloudCatalogStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCloudCatalogStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCloudCatalogStub( + CloudCatalogStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCloudCatalogStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCloudCatalogStub( + CloudCatalogStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCloudCatalogStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonCloudCatalogStub(CloudCatalogStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonCloudCatalogCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCloudCatalogStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonCloudCatalogStub( + CloudCatalogStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings listServicesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listServicesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listSkusTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSkusMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.listServicesCallable = + callableFactory.createUnaryCallable( + listServicesTransportSettings, settings.listServicesSettings(), clientContext); + this.listServicesPagedCallable = + callableFactory.createPagedCallable( + listServicesTransportSettings, settings.listServicesSettings(), clientContext); + this.listSkusCallable = + callableFactory.createUnaryCallable( + listSkusTransportSettings, settings.listSkusSettings(), clientContext); + this.listSkusPagedCallable = + callableFactory.createPagedCallable( + listSkusTransportSettings, settings.listSkusSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listServicesMethodDescriptor); + methodDescriptors.add(listSkusMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable listServicesCallable() { + return listServicesCallable; + } + + @Override + public UnaryCallable listServicesPagedCallable() { + return listServicesPagedCallable; + } + + @Override + public UnaryCallable listSkusCallable() { + return listSkusCallable; + } + + @Override + public UnaryCallable listSkusPagedCallable() { + return listSkusPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java new file mode 100644 index 00000000..ba9f3b92 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java @@ -0,0 +1,853 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.billing.v1; + +import static com.google.cloud.billing.v1.CloudBillingClient.ListBillingAccountsPagedResponse; +import static com.google.cloud.billing.v1.CloudBillingClient.ListProjectBillingInfoPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.billing.v1.stub.HttpJsonCloudBillingStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.ByteString; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CloudBillingClientHttpJsonTest { + private static MockHttpService mockService; + private static CloudBillingClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCloudBillingStub.getMethodDescriptors(), + CloudBillingSettings.getDefaultEndpoint()); + CloudBillingSettings settings = + CloudBillingSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CloudBillingSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CloudBillingClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getBillingAccountTest() throws Exception { + BillingAccount expectedResponse = + BillingAccount.newBuilder() + .setName(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + .setOpen(true) + .setDisplayName("displayName1714148973") + .setMasterBillingAccount("masterBillingAccount1488941620") + .build(); + mockService.addResponse(expectedResponse); + + BillingAccountName name = BillingAccountName.of("[BILLING_ACCOUNT]"); + + BillingAccount actualResponse = client.getBillingAccount(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBillingAccountExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BillingAccountName name = BillingAccountName.of("[BILLING_ACCOUNT]"); + client.getBillingAccount(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBillingAccountTest2() throws Exception { + BillingAccount expectedResponse = + BillingAccount.newBuilder() + .setName(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + .setOpen(true) + .setDisplayName("displayName1714148973") + .setMasterBillingAccount("masterBillingAccount1488941620") + .build(); + mockService.addResponse(expectedResponse); + + String name = "billingAccounts/billingAccount-6593"; + + BillingAccount actualResponse = client.getBillingAccount(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBillingAccountExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "billingAccounts/billingAccount-6593"; + client.getBillingAccount(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBillingAccountsTest() throws Exception { + BillingAccount responsesElement = BillingAccount.newBuilder().build(); + ListBillingAccountsResponse expectedResponse = + ListBillingAccountsResponse.newBuilder() + .setNextPageToken("") + .addAllBillingAccounts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListBillingAccountsPagedResponse pagedListResponse = client.listBillingAccounts(); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBillingAccountsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBillingAccountsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListBillingAccountsRequest request = + ListBillingAccountsRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + client.listBillingAccounts(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBillingAccountTest() throws Exception { + BillingAccount expectedResponse = + BillingAccount.newBuilder() + .setName(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + .setOpen(true) + .setDisplayName("displayName1714148973") + .setMasterBillingAccount("masterBillingAccount1488941620") + .build(); + mockService.addResponse(expectedResponse); + + BillingAccountName name = BillingAccountName.of("[BILLING_ACCOUNT]"); + BillingAccount account = BillingAccount.newBuilder().build(); + + BillingAccount actualResponse = client.updateBillingAccount(name, account); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateBillingAccountExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BillingAccountName name = BillingAccountName.of("[BILLING_ACCOUNT]"); + BillingAccount account = BillingAccount.newBuilder().build(); + client.updateBillingAccount(name, account); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateBillingAccountTest2() throws Exception { + BillingAccount expectedResponse = + BillingAccount.newBuilder() + .setName(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + .setOpen(true) + .setDisplayName("displayName1714148973") + .setMasterBillingAccount("masterBillingAccount1488941620") + .build(); + mockService.addResponse(expectedResponse); + + String name = "billingAccounts/billingAccount-6593"; + BillingAccount account = BillingAccount.newBuilder().build(); + + BillingAccount actualResponse = client.updateBillingAccount(name, account); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateBillingAccountExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "billingAccounts/billingAccount-6593"; + BillingAccount account = BillingAccount.newBuilder().build(); + client.updateBillingAccount(name, account); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBillingAccountTest() throws Exception { + BillingAccount expectedResponse = + BillingAccount.newBuilder() + .setName(BillingAccountName.of("[BILLING_ACCOUNT]").toString()) + .setOpen(true) + .setDisplayName("displayName1714148973") + .setMasterBillingAccount("masterBillingAccount1488941620") + .build(); + mockService.addResponse(expectedResponse); + + BillingAccount billingAccount = BillingAccount.newBuilder().build(); + + BillingAccount actualResponse = client.createBillingAccount(billingAccount); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBillingAccountExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BillingAccount billingAccount = BillingAccount.newBuilder().build(); + client.createBillingAccount(billingAccount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listProjectBillingInfoTest() throws Exception { + ProjectBillingInfo responsesElement = ProjectBillingInfo.newBuilder().build(); + ListProjectBillingInfoResponse expectedResponse = + ListProjectBillingInfoResponse.newBuilder() + .setNextPageToken("") + .addAllProjectBillingInfo(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + BillingAccountName name = BillingAccountName.of("[BILLING_ACCOUNT]"); + + ListProjectBillingInfoPagedResponse pagedListResponse = client.listProjectBillingInfo(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProjectBillingInfoList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listProjectBillingInfoExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BillingAccountName name = BillingAccountName.of("[BILLING_ACCOUNT]"); + client.listProjectBillingInfo(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listProjectBillingInfoTest2() throws Exception { + ProjectBillingInfo responsesElement = ProjectBillingInfo.newBuilder().build(); + ListProjectBillingInfoResponse expectedResponse = + ListProjectBillingInfoResponse.newBuilder() + .setNextPageToken("") + .addAllProjectBillingInfo(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String name = "billingAccounts/billingAccount-6593"; + + ListProjectBillingInfoPagedResponse pagedListResponse = client.listProjectBillingInfo(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProjectBillingInfoList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listProjectBillingInfoExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "billingAccounts/billingAccount-6593"; + client.listProjectBillingInfo(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProjectBillingInfoTest() throws Exception { + ProjectBillingInfo expectedResponse = + ProjectBillingInfo.newBuilder() + .setName("name3373707") + .setProjectId("projectId-894832108") + .setBillingAccountName("billingAccountName929322205") + .setBillingEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3664"; + + ProjectBillingInfo actualResponse = client.getProjectBillingInfo(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getProjectBillingInfoExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3664"; + client.getProjectBillingInfo(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateProjectBillingInfoTest() throws Exception { + ProjectBillingInfo expectedResponse = + ProjectBillingInfo.newBuilder() + .setName("name3373707") + .setProjectId("projectId-894832108") + .setBillingAccountName("billingAccountName929322205") + .setBillingEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3664"; + ProjectBillingInfo projectBillingInfo = ProjectBillingInfo.newBuilder().build(); + + ProjectBillingInfo actualResponse = client.updateProjectBillingInfo(name, projectBillingInfo); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateProjectBillingInfoExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3664"; + ProjectBillingInfo projectBillingInfo = ProjectBillingInfo.newBuilder().build(); + client.updateProjectBillingInfo(name, projectBillingInfo); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = BillingAccountName.of("[BILLING_ACCOUNT]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = BillingAccountName.of("[BILLING_ACCOUNT]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "billingAccounts/billingAccount-2850"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "billingAccounts/billingAccount-2850"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = BillingAccountName.of("[BILLING_ACCOUNT]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = BillingAccountName.of("[BILLING_ACCOUNT]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "billingAccounts/billingAccount-2850"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "billingAccounts/billingAccount-2850"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = BillingAccountName.of("[BILLING_ACCOUNT]"); + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = BillingAccountName.of("[BILLING_ACCOUNT]"); + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest2() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String resource = "billingAccounts/billingAccount-2850"; + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "billingAccounts/billingAccount-2850"; + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java b/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java similarity index 100% rename from google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java rename to owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java new file mode 100644 index 00000000..4306f71f --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java @@ -0,0 +1,230 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.billing.v1; + +import static com.google.cloud.billing.v1.CloudCatalogClient.ListServicesPagedResponse; +import static com.google.cloud.billing.v1.CloudCatalogClient.ListSkusPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.billing.v1.stub.HttpJsonCloudCatalogStub; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CloudCatalogClientHttpJsonTest { + private static MockHttpService mockService; + private static CloudCatalogClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCloudCatalogStub.getMethodDescriptors(), + CloudCatalogSettings.getDefaultEndpoint()); + CloudCatalogSettings settings = + CloudCatalogSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CloudCatalogSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CloudCatalogClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listServicesTest() throws Exception { + Service responsesElement = Service.newBuilder().build(); + ListServicesResponse expectedResponse = + ListServicesResponse.newBuilder() + .setNextPageToken("") + .addAllServices(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListServicesPagedResponse pagedListResponse = client.listServices(); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServicesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listServicesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListServicesRequest request = + ListServicesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listServices(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSkusTest() throws Exception { + Sku responsesElement = Sku.newBuilder().build(); + ListSkusResponse expectedResponse = + ListSkusResponse.newBuilder() + .setNextPageToken("") + .addAllSkus(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ServiceName parent = ServiceName.of("[SERVICE]"); + + ListSkusPagedResponse pagedListResponse = client.listSkus(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkusList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSkusExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ServiceName parent = ServiceName.of("[SERVICE]"); + client.listSkus(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSkusTest2() throws Exception { + Sku responsesElement = Sku.newBuilder().build(); + ListSkusResponse expectedResponse = + ListSkusResponse.newBuilder() + .setNextPageToken("") + .addAllSkus(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "services/service-5597"; + + ListSkusPagedResponse pagedListResponse = client.listSkus(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkusList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSkusExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "services/service-5597"; + client.listSkus(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java b/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java similarity index 100% rename from google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java rename to owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java diff --git a/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java b/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java similarity index 100% rename from google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java rename to owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java diff --git a/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java b/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java similarity index 100% rename from google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java rename to owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java diff --git a/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java b/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java similarity index 100% rename from google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java rename to owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java diff --git a/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java b/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java similarity index 100% rename from google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java rename to owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java diff --git a/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java similarity index 54% rename from grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java index fe09ea60..0431f998 100644 --- a/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java @@ -1,25 +1,8 @@ -/* - * 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.
  * 
@@ -35,550 +18,392 @@ 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.
    * 
*/ - 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,16 +413,12 @@ 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
@@ -611,16 +432,12 @@ public void updateBillingAccount(
      * 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,17 +445,12 @@ 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
@@ -646,17 +458,12 @@ public void listProjectBillingInfo(
      * ).
      * 
*/ - 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
@@ -687,17 +494,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 +507,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 +521,143 @@ 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.
    * 
*/ - 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,18 +667,13 @@ public void listBillingAccounts(
      * of the billing account.
      * 
*/ - public void updateBillingAccount( - com.google.cloud.billing.v1.UpdateBillingAccountRequest request, + public void updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBillingAccountMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateBillingAccountMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a billing account.
      * This method can only be used to create
@@ -914,18 +687,13 @@ public void updateBillingAccount(
      * 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,19 +701,13 @@ public void createBillingAccount(
      * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
      * 
*/ - public void listProjectBillingInfo( - com.google.cloud.billing.v1.ListProjectBillingInfoRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillingInfoRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProjectBillingInfoMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListProjectBillingInfoMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets the billing information for a project. The current authenticated user
      * must have [permission to view the
@@ -953,19 +715,13 @@ public void listProjectBillingInfo(
      * ).
      * 
*/ - 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
@@ -996,19 +752,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 +766,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 +781,34 @@ 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.
    * 
*/ - 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 +819,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,15 +852,12 @@ public com.google.cloud.billing.v1.ListBillingAccountsResponse listBillingAccoun
      * of the billing account.
      * 
*/ - public com.google.cloud.billing.v1.BillingAccount updateBillingAccount( - com.google.cloud.billing.v1.UpdateBillingAccountRequest request) { + public com.google.cloud.billing.v1.BillingAccount updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccountRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBillingAccountMethod(), getCallOptions(), request); } /** - * - * *
      * Creates a billing account.
      * This method can only be used to create
@@ -1148,15 +871,12 @@ public com.google.cloud.billing.v1.BillingAccount updateBillingAccount(
      * 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,15 +884,12 @@ public com.google.cloud.billing.v1.BillingAccount createBillingAccount(
      * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
      * 
*/ - public com.google.cloud.billing.v1.ListProjectBillingInfoResponse listProjectBillingInfo( - com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) { + public com.google.cloud.billing.v1.ListProjectBillingInfoResponse listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProjectBillingInfoMethod(), getCallOptions(), request); } /** - * - * *
      * Gets the billing information for a project. The current authenticated user
      * must have [permission to view the
@@ -1180,15 +897,12 @@ public com.google.cloud.billing.v1.ListProjectBillingInfoResponse listProjectBil
      * ).
      * 
*/ - 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
@@ -1219,15 +933,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 +952,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 +966,26 @@ 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.
    * 
*/ - 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 +996,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,16 +1031,13 @@ protected CloudBillingFutureStub build(
      * of the billing account.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.v1.BillingAccount> - updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccountRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateBillingAccount( + com.google.cloud.billing.v1.UpdateBillingAccountRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateBillingAccountMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a billing account.
      * This method can only be used to create
@@ -1358,16 +1051,13 @@ protected CloudBillingFutureStub build(
      * 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,16 +1065,13 @@ protected CloudBillingFutureStub build(
      * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.billing.v1.ListProjectBillingInfoResponse> - listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) { + public com.google.common.util.concurrent.ListenableFuture listProjectBillingInfo( + com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListProjectBillingInfoMethod(), getCallOptions()), request); } /** - * - * *
      * Gets the billing information for a project. The current authenticated user
      * must have [permission to view the
@@ -1392,16 +1079,13 @@ protected CloudBillingFutureStub build(
      * ).
      * 
*/ - 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
@@ -1432,17 +1116,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 +1130,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 +1145,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 +1176,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 +1194,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 +1249,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 +1292,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/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java new file mode 100644 index 00000000..dd2e8d5d --- /dev/null +++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java similarity index 67% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java index 62063a25..96c08d0a 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java +++ b/owl-bot-staging/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,15 +26,16 @@ 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; } - private AggregationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private AggregationInfo( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - aggregationLevel_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + aggregationLevel_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - aggregationInterval_ = rawValue; - break; - } - case 24: - { - aggregationCount_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + aggregationInterval_ = rawValue; + break; + } + case 24: { + + aggregationCount_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,31 +85,27 @@ private AggregationInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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
@@ -137,23 +114,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(
@@ -178,42 +169,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);
     }
 
@@ -222,7 +210,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;
@@ -240,8 +229,6 @@ private AggregationLevel(int value) {
   }
 
   /**
-   *
-   *
    * 
    * The interval at which usage is aggregated to compute cost.
    * Example: "MONTHLY" aggregation interval indicates that usage for tiered
@@ -250,23 +237,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(
@@ -291,14 +292,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;
       }
     }
 
@@ -306,28 +303,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);
     }
 
@@ -336,7 +333,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;
@@ -357,62 +355,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,
@@ -420,7 +399,6 @@ public com.google.cloud.billing.v1.AggregationInfo.AggregationInterval getAggreg
    * 
* * int32 aggregation_count = 3; - * * @return The aggregationCount. */ @java.lang.Override @@ -429,7 +407,6 @@ public int getAggregationCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -441,17 +418,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) { @@ -466,20 +438,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -489,17 +458,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -522,127 +491,118 @@ 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() @@ -650,15 +610,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -672,9 +633,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 @@ -693,8 +654,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_; @@ -706,39 +666,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; @@ -788,62 +747,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; @@ -851,79 +800,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,
@@ -931,7 +861,6 @@ public Builder clearAggregationInterval() {
      * 
* * int32 aggregation_count = 3; - * * @return The aggregationCount. */ @java.lang.Override @@ -939,8 +868,6 @@ public int getAggregationCount() { return aggregationCount_; } /** - * - * *
      * The number of intervals to aggregate over.
      * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -948,19 +875,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,
@@ -968,18 +892,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); } @@ -989,12 +912,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(); } @@ -1003,16 +926,16 @@ 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 { - return new AggregationInfo(input, extensionRegistry); - } - }; + 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 { + return new AggregationInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1027,4 +950,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.AggregationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java similarity index 65% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java index e0237fc7..229a5451 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java +++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java similarity index 75% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java index ee1c13f9..263340c9 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java +++ b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.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_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.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.billing.v1.BillingAccount}
  */
-public final class BillingAccount extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BillingAccount extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.BillingAccount)
     BillingAccountOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BillingAccount.newBuilder() to construct.
   private BillingAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private BillingAccount() {
     name_ = "";
     displayName_ = "";
@@ -46,15 +28,16 @@ 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;
   }
-
   private BillingAccount(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,39 +56,36 @@ private BillingAccount(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              open_ = input.readBool();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 16: {
 
-              displayName_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            open_ = input.readBool();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              masterBillingAccount_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            displayName_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            masterBillingAccount_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -113,33 +93,29 @@ private BillingAccount(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  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
    * `billingAccounts/{billing_account_id}`. For example,
@@ -148,7 +124,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ @java.lang.Override @@ -157,15 +132,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 of the billing account. The resource name has the form
    * `billingAccounts/{billing_account_id}`. For example,
@@ -174,15 +148,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.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 { @@ -193,8 +168,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
@@ -202,7 +175,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The open. */ @java.lang.Override @@ -213,15 +185,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.
    * 
* * string display_name = 3; - * * @return The displayName. */ @java.lang.Override @@ -230,30 +199,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.
    * 
* * 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 { @@ -264,8 +233,6 @@ 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
@@ -275,7 +242,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string master_billing_account = 4; - * * @return The masterBillingAccount. */ @java.lang.Override @@ -284,15 +250,14 @@ public java.lang.String getMasterBillingAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); masterBillingAccount_ = s; return s; } } /** - * - * *
    * If this account is a
    * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -302,15 +267,16 @@ public java.lang.String getMasterBillingAccount() {
    * 
* * string master_billing_account = 4; - * * @return The bytes for masterBillingAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getMasterBillingAccountBytes() { + public com.google.protobuf.ByteString + getMasterBillingAccountBytes() { java.lang.Object ref = masterBillingAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); masterBillingAccount_ = b; return b; } else { @@ -319,7 +285,6 @@ public com.google.protobuf.ByteString getMasterBillingAccountBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -331,7 +296,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -357,7 +323,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_); @@ -373,18 +340,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -399,7 +369,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; @@ -409,104 +380,97 @@ 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.
@@ -514,23 +478,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.v1.BillingAccount}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.BillingAccount)
       com.google.cloud.billing.v1.BillingAccountOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.v1.CloudBillingProto
-          .internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.v1.CloudBillingProto
-          .internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable
+      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.v1.BillingAccount.class,
-              com.google.cloud.billing.v1.BillingAccount.Builder.class);
+              com.google.cloud.billing.v1.BillingAccount.class, com.google.cloud.billing.v1.BillingAccount.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.v1.BillingAccount.newBuilder()
@@ -538,15 +500,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -562,9 +525,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
@@ -583,8 +546,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_;
@@ -597,39 +559,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;
@@ -684,8 +645,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the billing account. The resource name has the form
      * `billingAccounts/{billing_account_id}`. For example,
@@ -694,13 +653,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.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; @@ -709,8 +668,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the billing account. The resource name has the form
      * `billingAccounts/{billing_account_id}`. For example,
@@ -719,14 +676,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.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 { @@ -734,8 +692,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the billing account. The resource name has the form
      * `billingAccounts/{billing_account_id}`. For example,
@@ -744,22 +700,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.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
      * `billingAccounts/{billing_account_id}`. For example,
@@ -768,18 +722,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.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
      * `billingAccounts/{billing_account_id}`. For example,
@@ -788,25 +739,23 @@ public Builder clearName() {
      * 
* * string name = 1 [(.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
@@ -814,7 +763,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The open. */ @java.lang.Override @@ -822,8 +770,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
@@ -831,19 +777,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
@@ -851,11 +794,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; @@ -863,21 +805,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.
      * 
* * 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; @@ -886,22 +826,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.
      * 
* * 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 { @@ -909,64 +848,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.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -974,8 +906,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object masterBillingAccount_ = ""; /** - * - * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -985,13 +915,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string master_billing_account = 4; - * * @return The masterBillingAccount. */ public java.lang.String getMasterBillingAccount() { java.lang.Object ref = masterBillingAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); masterBillingAccount_ = s; return s; @@ -1000,8 +930,6 @@ public java.lang.String getMasterBillingAccount() { } } /** - * - * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -1011,14 +939,15 @@ public java.lang.String getMasterBillingAccount() {
      * 
* * string master_billing_account = 4; - * * @return The bytes for masterBillingAccount. */ - public com.google.protobuf.ByteString getMasterBillingAccountBytes() { + public com.google.protobuf.ByteString + getMasterBillingAccountBytes() { java.lang.Object ref = masterBillingAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); masterBillingAccount_ = b; return b; } else { @@ -1026,8 +955,6 @@ public com.google.protobuf.ByteString getMasterBillingAccountBytes() { } } /** - * - * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -1037,22 +964,20 @@ public com.google.protobuf.ByteString getMasterBillingAccountBytes() {
      * 
* * string master_billing_account = 4; - * * @param value The masterBillingAccount to set. * @return This builder for chaining. */ - public Builder setMasterBillingAccount(java.lang.String value) { + 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
@@ -1062,18 +987,15 @@ public Builder setMasterBillingAccount(java.lang.String value) {
      * 
* * 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
@@ -1083,23 +1005,23 @@ public Builder clearMasterBillingAccount() {
      * 
* * string master_billing_account = 4; - * * @param value The bytes for masterBillingAccount to set. * @return This builder for chaining. */ - public Builder setMasterBillingAccountBytes(com.google.protobuf.ByteString value) { + 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); } @@ -1109,12 +1031,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(); } @@ -1123,16 +1045,16 @@ 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 { - return new BillingAccount(input, extensionRegistry); - } - }; + 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 { + return new BillingAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1147,4 +1069,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.BillingAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java similarity index 100% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java similarity index 75% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java index 7783928f..d8761060 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.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 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
    * `billingAccounts/{billing_account_id}`. For example,
@@ -34,13 +16,10 @@ public interface BillingAccountOrBuilder
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the billing account. The resource name has the form
    * `billingAccounts/{billing_account_id}`. For example,
@@ -49,14 +28,12 @@ public interface BillingAccountOrBuilder
    * 
* * string name = 1 [(.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,41 +41,33 @@ 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.
    * 
* * 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.
    * 
* * 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
@@ -108,13 +77,10 @@ public interface BillingAccountOrBuilder
    * 
* * string master_billing_account = 4; - * * @return The masterBillingAccount. */ java.lang.String getMasterBillingAccount(); /** - * - * *
    * If this account is a
    * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -124,8 +90,8 @@ public interface BillingAccountOrBuilder
    * 
* * string master_billing_account = 4; - * * @return The bytes for masterBillingAccount. */ - com.google.protobuf.ByteString getMasterBillingAccountBytes(); + com.google.protobuf.ByteString + getMasterBillingAccountBytes(); } diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java similarity index 72% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java index 025c36b5..45a63c40 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java +++ b/owl-bot-staging/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,15 +28,16 @@ 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; } - private Category( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private Category( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - serviceDisplayName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + serviceDisplayName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - resourceFamily_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + resourceFamily_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - resourceGroup_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + resourceGroup_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - usageType_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + usageType_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,39 +94,34 @@ private Category( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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 @@ -156,29 +130,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 { @@ -189,15 +163,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 @@ -206,30 +177,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 { @@ -240,15 +211,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 @@ -257,30 +225,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 { @@ -291,15 +259,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 @@ -308,30 +273,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 { @@ -340,7 +305,6 @@ public com.google.protobuf.ByteString getUsageTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -352,7 +316,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_); } @@ -394,17 +359,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -429,126 +398,118 @@ 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() @@ -556,15 +517,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -580,9 +542,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 @@ -614,39 +576,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; @@ -702,20 +663,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; @@ -724,21 +683,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 { @@ -746,61 +704,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; @@ -808,21 +759,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; @@ -831,22 +780,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 { @@ -854,64 +802,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; @@ -919,21 +860,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; @@ -942,22 +881,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 { @@ -965,64 +903,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; @@ -1030,21 +961,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; @@ -1053,22 +982,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 { @@ -1076,71 +1004,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); } @@ -1150,12 +1071,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(); } @@ -1164,16 +1085,16 @@ 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 { - return new Category(input, extensionRegistry); - } - }; + 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 { + return new Category(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1188,4 +1109,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.Category getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java similarity index 69% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java index 9d934f6b..0a422ab1 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java +++ b/owl-bot-staging/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/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java new file mode 100644 index 00000000..b551d747 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java @@ -0,0 +1,270 @@ +// 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/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java new file mode 100644 index 00000000..10791b00 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java @@ -0,0 +1,249 @@ +// 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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java similarity index 65% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java index 29686a14..1bf14d38 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java @@ -1,55 +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; /** - * - * *
  * 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; } - private CreateBillingAccountRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,29 +52,26 @@ private CreateBillingAccountRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.billing.v1.BillingAccount.Builder subBuilder = null; - if (billingAccount_ != null) { - subBuilder = billingAccount_.toBuilder(); - } - billingAccount_ = - input.readMessage( - com.google.cloud.billing.v1.BillingAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(billingAccount_); - billingAccount_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.billing.v1.BillingAccount.Builder subBuilder = null; + if (billingAccount_ != null) { + subBuilder = billingAccount_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + billingAccount_ = input.readMessage(com.google.cloud.billing.v1.BillingAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(billingAccount_); + billingAccount_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,33 +79,29 @@ private CreateBillingAccountRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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
@@ -132,10 +109,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * account.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the billingAccount field is set. */ @java.lang.Override @@ -143,8 +117,6 @@ public boolean hasBillingAccount() { return billingAccount_ != null; } /** - * - * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -152,21 +124,14 @@ public boolean hasBillingAccount() {
    * account.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The billingAccount. */ @java.lang.Override public com.google.cloud.billing.v1.BillingAccount getBillingAccount() { - return billingAccount_ == null - ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() - : billingAccount_; + return billingAccount_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_; } /** - * - * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -174,9 +139,7 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccount() {
    * account.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder() { @@ -184,7 +147,6 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBu } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,7 +158,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()); } @@ -210,7 +173,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -220,17 +184,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -253,127 +217,117 @@ 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() @@ -381,15 +335,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -403,9 +358,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_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 @@ -424,8 +379,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 { @@ -439,39 +393,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; @@ -479,8 +432,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()); } @@ -503,8 +455,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.billing.v1.CreateBillingAccountRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.billing.v1.CreateBillingAccountRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -516,13 +467,8 @@ 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
@@ -530,18 +476,13 @@ public Builder mergeFrom(
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the billingAccount field is set. */ public boolean hasBillingAccount() { return billingAccountBuilder_ != null || billingAccount_ != null; } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -549,24 +490,17 @@ public boolean hasBillingAccount() {
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The billingAccount. */ public com.google.cloud.billing.v1.BillingAccount getBillingAccount() { if (billingAccountBuilder_ == null) { - return billingAccount_ == null - ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() - : billingAccount_; + return billingAccount_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_; } else { return billingAccountBuilder_.getMessage(); } } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -574,9 +508,7 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccount() {
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBillingAccount(com.google.cloud.billing.v1.BillingAccount value) { if (billingAccountBuilder_ == null) { @@ -592,8 +524,6 @@ public Builder setBillingAccount(com.google.cloud.billing.v1.BillingAccount valu return this; } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -601,9 +531,7 @@ public Builder setBillingAccount(com.google.cloud.billing.v1.BillingAccount valu
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBillingAccount( com.google.cloud.billing.v1.BillingAccount.Builder builderForValue) { @@ -617,8 +545,6 @@ public Builder setBillingAccount( return this; } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -626,17 +552,13 @@ public Builder setBillingAccount(
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeBillingAccount(com.google.cloud.billing.v1.BillingAccount value) { if (billingAccountBuilder_ == null) { if (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; } @@ -648,8 +570,6 @@ public Builder mergeBillingAccount(com.google.cloud.billing.v1.BillingAccount va return this; } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -657,9 +577,7 @@ public Builder mergeBillingAccount(com.google.cloud.billing.v1.BillingAccount va
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBillingAccount() { if (billingAccountBuilder_ == null) { @@ -673,8 +591,6 @@ public Builder clearBillingAccount() { return this; } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -682,18 +598,14 @@ public Builder clearBillingAccount() {
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountBuilder() { - + onChanged(); return getBillingAccountFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -701,22 +613,17 @@ public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountBuild
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder() { if (billingAccountBuilder_ != null) { return billingAccountBuilder_.getMessageOrBuilder(); } else { - return billingAccount_ == null - ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() - : billingAccount_; + return billingAccount_ == null ? + com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_; } } /** - * - * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -724,29 +631,24 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBu
      * account.
      * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, - com.google.cloud.billing.v1.BillingAccount.Builder, - com.google.cloud.billing.v1.BillingAccountOrBuilder> + com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> getBillingAccountFieldBuilder() { if (billingAccountBuilder_ == null) { - billingAccountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, - com.google.cloud.billing.v1.BillingAccount.Builder, - com.google.cloud.billing.v1.BillingAccountOrBuilder>( - getBillingAccount(), getParentForChildren(), isClean()); + billingAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder>( + getBillingAccount(), + getParentForChildren(), + isClean()); billingAccount_ = null; } return billingAccountBuilder_; } - @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); } @@ -756,12 +658,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(); } @@ -770,16 +672,16 @@ 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 { - return new CreateBillingAccountRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateBillingAccountRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -794,4 +696,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.billing.v1.CreateBillingAccountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java index 32ed78c3..d7e23831 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.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 CreateBillingAccountRequestOrBuilder - extends +public interface CreateBillingAccountRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.CreateBillingAccountRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -33,16 +15,11 @@ public interface CreateBillingAccountRequestOrBuilder
    * account.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the billingAccount field is set. */ boolean hasBillingAccount(); /** - * - * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -50,16 +27,11 @@ public interface CreateBillingAccountRequestOrBuilder
    * account.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The billingAccount. */ com.google.cloud.billing.v1.BillingAccount getBillingAccount(); /** - * - * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -67,9 +39,7 @@ public interface CreateBillingAccountRequestOrBuilder
    * account.
    * 
* - * - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder(); } diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java similarity index 65% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java index 618b11cd..9cb9857a 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java @@ -1,57 +1,40 @@ -/* - * 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; } - private GetBillingAccountRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetBillingAccountRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetBillingAccountRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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 @@ -135,32 +110,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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,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_); } @@ -205,15 +178,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,126 +206,117 @@ 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() @@ -360,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,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 @@ -399,8 +364,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; @@ -410,39 +374,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; @@ -450,8 +413,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(); @@ -475,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.billing.v1.GetBillingAccountRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.billing.v1.GetBillingAccountRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,23 +449,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; @@ -513,24 +470,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 { @@ -538,77 +492,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); } @@ -618,12 +559,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(); } @@ -632,16 +573,16 @@ 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 { - return new GetBillingAccountRequest(input, extensionRegistry); - } - }; + 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 { + return new GetBillingAccountRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -656,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.GetBillingAccountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java new file mode 100644 index 00000000..27f6965d --- /dev/null +++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java similarity index 69% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java index 8a989fec..a1092af2 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java @@ -1,57 +1,40 @@ -/* - * 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; } - private GetProjectBillingInfoRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetProjectBillingInfoRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private GetProjectBillingInfoRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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 @@ -133,30 +110,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 { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,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_); } @@ -201,15 +178,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +206,117 @@ 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() @@ -357,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +343,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 @@ -396,8 +364,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; @@ -407,39 +374,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; @@ -447,8 +413,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(); @@ -472,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.billing.v1.GetProjectBillingInfoRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.billing.v1.GetProjectBillingInfoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,21 +449,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; @@ -508,22 +470,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 { @@ -531,71 +492,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); } @@ -605,12 +559,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(); } @@ -619,16 +573,16 @@ 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 { - return new GetProjectBillingInfoRequest(input, extensionRegistry); - } - }; + 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 { + return new GetProjectBillingInfoRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +597,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.billing.v1.GetProjectBillingInfoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java index bd1d3ba4..58539acd 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java +++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java similarity index 73% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java index 94e813ff..ecc69fb1 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java +++ b/owl-bot-staging/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,15 +26,16 @@ 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; } - private ListBillingAccountsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListBillingAccountsRequest( case 0: done = true; break; - case 8: - { - pageSize_ = input.readInt32(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + case 8: { - pageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,40 +85,35 @@ private ListBillingAccountsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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 @@ -148,8 +124,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`
@@ -157,7 +131,6 @@ public int getPageSize() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -166,15 +139,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`
@@ -182,15 +154,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 { @@ -201,8 +174,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
@@ -213,7 +184,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 3; - * * @return The filter. */ @java.lang.Override @@ -222,15 +192,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
@@ -241,15 +210,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 { @@ -258,7 +228,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +239,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_); } @@ -290,7 +260,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_); @@ -306,17 +277,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -340,127 +313,117 @@ 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() @@ -468,15 +431,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +454,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto - .internal_static_google_cloud_billing_v1_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 @@ -511,8 +475,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_; @@ -524,39 +487,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; @@ -564,8 +526,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()); } @@ -596,8 +557,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.billing.v1.ListBillingAccountsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.billing.v1.ListBillingAccountsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -607,17 +567,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 @@ -625,38 +582,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; @@ -664,8 +615,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`
@@ -673,13 +622,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; @@ -688,8 +637,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`
@@ -697,14 +644,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 { @@ -712,8 +660,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`
@@ -721,22 +667,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`
@@ -744,18 +688,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`
@@ -763,16 +704,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; @@ -780,8 +721,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
@@ -792,13 +731,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; @@ -807,8 +746,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Options for how to filter the returned billing accounts.
      * Currently this only supports filtering for
@@ -819,14 +756,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 { @@ -834,8 +772,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Options for how to filter the returned billing accounts.
      * Currently this only supports filtering for
@@ -846,22 +782,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
@@ -872,18 +806,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
@@ -894,23 +825,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); } @@ -920,12 +851,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(); } @@ -934,16 +865,16 @@ 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 { - return new ListBillingAccountsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListBillingAccountsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -958,4 +889,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.billing.v1.ListBillingAccountsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java index 3905e078..ca0f6ddf 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java +++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java similarity index 74% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java index 626e84d7..a70d1a1c 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java +++ b/owl-bot-staging/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,15 +26,16 @@ 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; } - private ListBillingAccountsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListBillingAccountsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - billingAccounts_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - billingAccounts_.add( - input.readMessage( - com.google.cloud.billing.v1.BillingAccount.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + billingAccounts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + billingAccounts_.add( + input.readMessage(com.google.cloud.billing.v1.BillingAccount.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListBillingAccountsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { billingAccounts_ = java.util.Collections.unmodifiableList(billingAccounts_); @@ -114,27 +94,22 @@ private ListBillingAccountsResponse( makeExtensionsImmutable(); } } - - 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.
    * 
@@ -146,8 +121,6 @@ public java.util.List getBillingAcco return billingAccounts_; } /** - * - * *
    * A list of billing accounts.
    * 
@@ -155,13 +128,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.
    * 
@@ -173,8 +144,6 @@ public int getBillingAccountsCount() { return billingAccounts_.size(); } /** - * - * *
    * A list of billing accounts.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccounts(int index) return billingAccounts_.get(index); } /** - * - * *
    * A list of billing accounts.
    * 
@@ -203,8 +170,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
@@ -212,7 +177,6 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,15 +185,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
@@ -237,15 +200,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 { @@ -254,7 +218,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +229,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)); } @@ -283,7 +247,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_); @@ -296,16 +261,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -329,127 +295,117 @@ 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() @@ -457,17 +413,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getBillingAccountsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,9 +439,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 @@ -504,8 +460,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)) { @@ -525,39 +480,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; @@ -565,8 +519,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()) { @@ -585,10 +538,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_); } @@ -617,8 +569,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.billing.v1.ListBillingAccountsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.billing.v1.ListBillingAccountsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -627,29 +578,21 @@ public Builder mergeFrom( } 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.
      * 
@@ -664,8 +607,6 @@ public java.util.List getBillingAcco } } /** - * - * *
      * A list of billing accounts.
      * 
@@ -680,8 +621,6 @@ public int getBillingAccountsCount() { } } /** - * - * *
      * A list of billing accounts.
      * 
@@ -696,15 +635,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(); @@ -718,8 +656,6 @@ public Builder setBillingAccounts(int index, com.google.cloud.billing.v1.Billing return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -738,8 +674,6 @@ public Builder setBillingAccounts( return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -760,15 +694,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(); @@ -782,8 +715,6 @@ public Builder addBillingAccounts(int index, com.google.cloud.billing.v1.Billing return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -802,8 +733,6 @@ public Builder addBillingAccounts( return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -822,8 +751,6 @@ public Builder addBillingAccounts( return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -834,7 +761,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); @@ -842,8 +770,6 @@ public Builder addAllBillingAccounts( return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -861,8 +787,6 @@ public Builder clearBillingAccounts() { return this; } /** - * - * *
      * A list of billing accounts.
      * 
@@ -880,20 +804,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.
      * 
@@ -903,22 +824,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 { @@ -926,8 +844,6 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB } } /** - * - * *
      * A list of billing accounts.
      * 
@@ -935,47 +851,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(), @@ -987,8 +894,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
@@ -996,13 +901,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; @@ -1011,8 +916,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
@@ -1020,14 +923,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 { @@ -1035,8 +939,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
@@ -1044,22 +946,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
@@ -1067,18 +967,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
@@ -1086,23 +983,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); } @@ -1112,12 +1009,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(); } @@ -1126,16 +1023,16 @@ 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 { - return new ListBillingAccountsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListBillingAccountsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1150,4 +1047,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.billing.v1.ListBillingAccountsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java index 7c1d331f..6315edcd 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java +++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java similarity index 69% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java index 98445293..a135783b 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java +++ b/owl-bot-staging/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,15 +26,16 @@ 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; } - private ListProjectBillingInfoRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListProjectBillingInfoRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListProjectBillingInfoRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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 @@ -148,32 +122,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 { @@ -184,15 +156,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 @@ -203,8 +172,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`
@@ -212,7 +179,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -221,15 +187,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`
@@ -237,15 +202,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 { @@ -254,7 +220,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +231,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_); } @@ -289,7 +255,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_); @@ -302,17 +269,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -336,127 +305,117 @@ 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() @@ -464,15 +423,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,9 +446,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 @@ -507,8 +467,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_; @@ -520,39 +479,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; @@ -560,8 +518,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(); @@ -592,8 +549,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.billing.v1.ListProjectBillingInfoRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.billing.v1.ListProjectBillingInfoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -605,23 +561,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; @@ -630,24 +582,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 { @@ -655,86 +604,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 @@ -742,38 +675,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; @@ -781,8 +708,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`
@@ -790,13 +715,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; @@ -805,8 +730,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`
@@ -814,14 +737,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 { @@ -829,8 +753,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`
@@ -838,22 +760,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`
@@ -861,18 +781,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`
@@ -880,23 +797,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); } @@ -906,12 +823,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(); } @@ -920,16 +837,16 @@ 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 { - return new ListProjectBillingInfoRequest(input, extensionRegistry); - } - }; + 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 { + return new ListProjectBillingInfoRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -944,4 +861,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.billing.v1.ListProjectBillingInfoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java index f36541f0..9ad17b43 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java +++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java similarity index 76% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java index fa51e9b1..a9775259 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java +++ b/owl-bot-staging/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,15 +26,16 @@ 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; } - private ListProjectBillingInfoResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,32 +55,28 @@ private ListProjectBillingInfoResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - projectBillingInfo_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - projectBillingInfo_.add( - input.readMessage( - com.google.cloud.billing.v1.ProjectBillingInfo.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + projectBillingInfo_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + projectBillingInfo_.add( + input.readMessage(com.google.cloud.billing.v1.ProjectBillingInfo.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListProjectBillingInfoResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { projectBillingInfo_ = java.util.Collections.unmodifiableList(projectBillingInfo_); @@ -115,27 +94,22 @@ private ListProjectBillingInfoResponse( makeExtensionsImmutable(); } } - - 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.
@@ -144,13 +118,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.
@@ -159,13 +130,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.
@@ -178,8 +147,6 @@ public int getProjectBillingInfoCount() {
     return projectBillingInfo_.size();
   }
   /**
-   *
-   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -192,8 +159,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.
@@ -210,8 +175,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
@@ -219,7 +182,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -228,15 +190,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
@@ -244,15 +205,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 { @@ -261,7 +223,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,7 +234,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)); } @@ -290,8 +252,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_); @@ -304,16 +266,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,127 +300,117 @@ 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() @@ -465,17 +418,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getProjectBillingInfoFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -491,9 +444,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 @@ -512,8 +465,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)) { @@ -533,39 +485,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; @@ -573,8 +524,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()) { @@ -593,10 +543,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_); } @@ -625,8 +574,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.billing.v1.ListProjectBillingInfoResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.billing.v1.ListProjectBillingInfoResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -635,30 +583,21 @@ public Builder mergeFrom( } 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.
@@ -666,8 +605,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 {
@@ -675,8 +613,6 @@ private void ensureProjectBillingInfoIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -692,8 +628,6 @@ public int getProjectBillingInfoCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -709,8 +643,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(int
       }
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -733,8 +665,6 @@ public Builder setProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -754,8 +684,6 @@ public Builder setProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -777,8 +705,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.
@@ -801,8 +727,6 @@ public Builder addProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -822,8 +746,6 @@ public Builder addProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -843,8 +765,6 @@ public Builder addProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -856,7 +776,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);
@@ -864,8 +785,6 @@ public Builder addAllProjectBillingInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -884,8 +803,6 @@ public Builder clearProjectBillingInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -904,8 +821,6 @@ public Builder removeProjectBillingInfo(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -918,8 +833,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.
@@ -930,14 +843,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.
@@ -945,8 +855,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 {
@@ -954,8 +864,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
       }
     }
     /**
-     *
-     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -964,12 +872,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.
@@ -979,12 +885,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.
@@ -992,22 +896,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(),
@@ -1019,8 +917,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
@@ -1028,13 +924,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; @@ -1043,8 +939,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
@@ -1052,14 +946,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 { @@ -1067,8 +962,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
@@ -1076,22 +969,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
@@ -1099,18 +990,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
@@ -1118,23 +1006,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); } @@ -1144,12 +1032,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(); } @@ -1158,16 +1046,16 @@ 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 { - return new ListProjectBillingInfoResponse(input, extensionRegistry); - } - }; + 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 { + return new ListProjectBillingInfoResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1182,4 +1070,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.billing.v1.ListProjectBillingInfoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java similarity index 75% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java index 0fdf71d9..76816d2b 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java +++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java similarity index 71% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java index 5fcef038..0c9cfd98 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java @@ -1,57 +1,40 @@ -/* - * 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; } - private ListServicesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,25 +53,24 @@ private ListServicesRequest( case 0: done = true; break; - case 8: - { - pageSize_ = input.readInt32(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + case 8: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,39 +78,34 @@ private ListServicesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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 @@ -139,8 +116,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`
@@ -148,7 +123,6 @@ public int getPageSize() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -157,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 return. This should be a
    * `next_page_token` value returned from a previous `ListServices`
@@ -173,15 +146,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 { @@ -190,7 +164,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,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 (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -219,7 +193,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_); @@ -232,16 +207,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -262,127 +238,118 @@ 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() @@ -390,15 +357,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +378,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 @@ -431,8 +399,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(); @@ -443,39 +410,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; @@ -483,8 +449,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()); } @@ -521,16 +486,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 @@ -538,36 +500,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; @@ -575,8 +531,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`
@@ -584,13 +538,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; @@ -599,8 +553,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`
@@ -608,14 +560,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 { @@ -623,8 +576,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`
@@ -632,22 +583,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`
@@ -655,18 +604,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`
@@ -674,23 +620,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); } @@ -700,12 +646,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(); } @@ -714,16 +660,16 @@ 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 { - return new ListServicesRequest(input, extensionRegistry); - } - }; + 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 { + return new ListServicesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -738,4 +684,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListServicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java index 66eb7274..02186174 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java +++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java similarity index 74% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java index 00f6aa45..f8208942 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java +++ b/owl-bot-staging/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,15 +26,16 @@ 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; } - private ListServicesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,31 +55,28 @@ private ListServicesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - services_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - services_.add( - input.readMessage( - com.google.cloud.billing.v1.Service.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + services_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + services_.add( + input.readMessage(com.google.cloud.billing.v1.Service.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,7 +84,8 @@ private ListServicesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { services_ = java.util.Collections.unmodifiableList(services_); @@ -113,27 +94,22 @@ private ListServicesResponse( makeExtensionsImmutable(); } } - - 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.
    * 
@@ -145,8 +121,6 @@ public java.util.List getServicesList() { return services_; } /** - * - * *
    * A list of services.
    * 
@@ -154,13 +128,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.
    * 
@@ -172,8 +144,6 @@ public int getServicesCount() { return services_.size(); } /** - * - * *
    * A list of services.
    * 
@@ -185,8 +155,6 @@ public com.google.cloud.billing.v1.Service getServices(int index) { return services_.get(index); } /** - * - * *
    * A list of services.
    * 
@@ -194,15 +162,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
@@ -210,7 +177,6 @@ public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int ind
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,15 +185,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
@@ -235,15 +200,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 { @@ -252,7 +218,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +229,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)); } @@ -281,7 +247,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_); @@ -294,16 +261,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +294,118 @@ 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() @@ -454,17 +413,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getServicesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +439,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 @@ -501,8 +460,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)) { @@ -522,39 +480,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; @@ -562,8 +519,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()) { @@ -582,10 +538,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_); } @@ -623,28 +578,21 @@ public Builder mergeFrom( } 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.
      * 
@@ -659,8 +607,6 @@ public java.util.List getServicesList() { } } /** - * - * *
      * A list of services.
      * 
@@ -675,8 +621,6 @@ public int getServicesCount() { } } /** - * - * *
      * A list of services.
      * 
@@ -691,15 +635,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(); @@ -713,8 +656,6 @@ public Builder setServices(int index, com.google.cloud.billing.v1.Service value) return this; } /** - * - * *
      * A list of services.
      * 
@@ -733,8 +674,6 @@ public Builder setServices( return this; } /** - * - * *
      * A list of services.
      * 
@@ -755,15 +694,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(); @@ -777,15 +715,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()); @@ -796,8 +733,6 @@ public Builder addServices(com.google.cloud.billing.v1.Service.Builder builderFo return this; } /** - * - * *
      * A list of services.
      * 
@@ -816,8 +751,6 @@ public Builder addServices( return this; } /** - * - * *
      * A list of services.
      * 
@@ -828,7 +761,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); @@ -836,8 +770,6 @@ public Builder addAllServices( return this; } /** - * - * *
      * A list of services.
      * 
@@ -855,8 +787,6 @@ public Builder clearServices() { return this; } /** - * - * *
      * A list of services.
      * 
@@ -874,44 +804,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 { @@ -919,8 +844,6 @@ public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int ind } } /** - * - * *
      * A list of services.
      * 
@@ -928,47 +851,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_; @@ -976,8 +894,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
@@ -985,13 +901,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; @@ -1000,8 +916,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
@@ -1009,14 +923,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 { @@ -1024,8 +939,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
@@ -1033,22 +946,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
@@ -1056,18 +967,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
@@ -1075,23 +983,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); } @@ -1101,12 +1009,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(); } @@ -1115,16 +1023,16 @@ 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 { - return new ListServicesResponse(input, extensionRegistry); - } - }; + 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 { + return new ListServicesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,4 +1047,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListServicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java index f6034dfb..72fed954 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java +++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java similarity index 76% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java index a74bdaf9..810501f9 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java +++ b/owl-bot-staging/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,15 +27,16 @@ 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; } - private ListSkusRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,69 +55,62 @@ private ListSkusRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; + parent_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - currencyCode_ = s; - break; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 40: - { - pageSize_ = input.readInt32(); - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + currencyCode_ = s; + break; + } + case 40: { + + pageSize_ = input.readInt32(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -142,42 +118,35 @@ private ListSkusRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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 @@ -186,32 +155,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 { @@ -222,8 +189,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.
@@ -234,7 +199,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -242,8 +206,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.
@@ -254,7 +216,6 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ @java.lang.Override @@ -262,8 +223,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.
@@ -283,8 +242,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.
@@ -295,7 +252,6 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -303,8 +259,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.
@@ -315,7 +269,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ @java.lang.Override @@ -323,8 +276,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.
@@ -344,8 +295,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.
@@ -353,7 +302,6 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * string currency_code = 4; - * * @return The currencyCode. */ @java.lang.Override @@ -362,15 +310,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.
@@ -378,15 +325,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 { @@ -397,14 +345,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 @@ -415,8 +360,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`
@@ -424,7 +367,6 @@ public int getPageSize() {
    * 
* * string page_token = 6; - * * @return The pageToken. */ @java.lang.Override @@ -433,15 +375,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`
@@ -449,15 +390,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 { @@ -466,7 +408,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -478,7 +419,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_); } @@ -510,16 +452,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_); @@ -532,26 +477,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -584,127 +534,118 @@ 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() @@ -712,15 +653,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -748,9 +690,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 @@ -769,8 +711,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_; @@ -793,39 +734,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; @@ -886,23 +826,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; @@ -911,24 +847,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 { @@ -936,70 +869,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; @@ -1007,13 +927,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.
@@ -1024,15 +939,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.
@@ -1043,7 +955,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1054,8 +965,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.
@@ -1081,8 +990,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.
@@ -1094,7 +1001,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();
@@ -1105,8 +1013,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.
@@ -1122,7 +1028,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;
         }
@@ -1134,8 +1040,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.
@@ -1159,8 +1063,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.
@@ -1173,13 +1075,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.
@@ -1195,12 +1095,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.
@@ -1213,17 +1112,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_;
@@ -1231,13 +1127,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.
@@ -1248,15 +1139,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.
@@ -1267,7 +1155,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1278,8 +1165,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.
@@ -1305,8 +1190,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.
@@ -1318,7 +1201,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();
@@ -1329,8 +1213,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.
@@ -1346,7 +1228,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;
         }
@@ -1358,8 +1240,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.
@@ -1383,8 +1263,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.
@@ -1397,13 +1275,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.
@@ -1419,12 +1295,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.
@@ -1437,17 +1312,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_;
@@ -1455,8 +1327,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.
@@ -1464,13 +1334,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; @@ -1479,8 +1349,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.
@@ -1488,14 +1356,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 { @@ -1503,8 +1372,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.
@@ -1512,22 +1379,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.
@@ -1535,18 +1400,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.
@@ -1554,31 +1416,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 @@ -1586,36 +1445,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; @@ -1623,8 +1476,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`
@@ -1632,13 +1483,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; @@ -1647,8 +1498,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`
@@ -1656,14 +1505,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 { @@ -1671,8 +1521,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`
@@ -1680,22 +1528,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`
@@ -1703,18 +1549,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`
@@ -1722,23 +1565,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); } @@ -1748,12 +1591,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(); } @@ -1762,16 +1605,16 @@ 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 { - return new ListSkusRequest(input, extensionRegistry); - } - }; + 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 { + return new ListSkusRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1786,4 +1629,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListSkusRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java similarity index 80% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java index b03408d4..e9fffd88 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java +++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java similarity index 74% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java index cb3cda44..6bfaabb8 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java +++ b/owl-bot-staging/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,15 +26,16 @@ 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; } - private ListSkusResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private ListSkusResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - skus_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - skus_.add( - input.readMessage(com.google.cloud.billing.v1.Sku.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + skus_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + skus_.add( + input.readMessage(com.google.cloud.billing.v1.Sku.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private ListSkusResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { skus_ = java.util.Collections.unmodifiableList(skus_); @@ -112,27 +94,22 @@ private ListSkusResponse( makeExtensionsImmutable(); } } - - 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.
    * 
@@ -144,8 +121,6 @@ public java.util.List getSkusList() { return skus_; } /** - * - * *
    * The list of public SKUs of the given service.
    * 
@@ -153,12 +128,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.
    * 
@@ -170,8 +144,6 @@ public int getSkusCount() { return skus_.size(); } /** - * - * *
    * The list of public SKUs of the given service.
    * 
@@ -183,8 +155,6 @@ public com.google.cloud.billing.v1.Sku getSkus(int index) { return skus_.get(index); } /** - * - * *
    * The list of public SKUs of the given service.
    * 
@@ -192,15 +162,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
@@ -208,7 +177,6 @@ public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -217,15 +185,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
@@ -233,15 +200,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 { @@ -250,7 +218,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +229,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)); } @@ -279,7 +247,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_); @@ -292,16 +261,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,127 +294,118 @@ 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() @@ -452,17 +413,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSkusFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +439,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 @@ -499,8 +460,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)) { @@ -520,39 +480,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; @@ -579,10 +538,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_); } @@ -620,28 +578,21 @@ public Builder mergeFrom( } 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.
      * 
@@ -656,8 +607,6 @@ public java.util.List getSkusList() { } } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -672,8 +621,6 @@ public int getSkusCount() { } } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -688,15 +635,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(); @@ -710,15 +656,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()); @@ -729,8 +674,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.
      * 
@@ -751,15 +694,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(); @@ -773,15 +715,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()); @@ -792,15 +733,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()); @@ -811,8 +751,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.
      * 
@@ -823,7 +761,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); @@ -831,8 +770,6 @@ public Builder addAllSkus( return this; } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -850,8 +787,6 @@ public Builder clearSkus() { return this; } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -869,44 +804,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 { @@ -914,8 +844,6 @@ public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index) { } } /** - * - * *
      * The list of public SKUs of the given service.
      * 
@@ -923,46 +851,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_; @@ -970,8 +894,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
@@ -979,13 +901,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; @@ -994,8 +916,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
@@ -1003,14 +923,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 { @@ -1018,8 +939,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
@@ -1027,22 +946,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
@@ -1050,18 +967,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
@@ -1069,23 +983,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); } @@ -1095,12 +1009,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(); } @@ -1109,16 +1023,16 @@ 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 { - return new ListSkusResponse(input, extensionRegistry); - } - }; + 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 { + return new ListSkusResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1133,4 +1047,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListSkusResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java index db85cce3..aeebda34 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java +++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java similarity index 77% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java index 4943bb00..80ec217c 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java +++ b/owl-bot-staging/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,16 +17,15 @@
  *
  * Protobuf type {@code google.cloud.billing.v1.PricingExpression}
  */
-public final class PricingExpression extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PricingExpression extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.PricingExpression)
     PricingExpressionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PricingExpression.newBuilder() to construct.
   private PricingExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PricingExpression() {
     usageUnit_ = "";
     usageUnitDescription_ = "";
@@ -54,15 +36,16 @@ private PricingExpression() {
 
   @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;
   }
-
   private PricingExpression(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -82,65 +65,56 @@ private PricingExpression(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              usageUnit_ = s;
-              break;
-            }
-          case 17:
-            {
-              displayQuantity_ = input.readDouble();
-              break;
-            }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                tieredRates_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.billing.v1.PricingExpression.TierRate>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              tieredRates_.add(
-                  input.readMessage(
-                      com.google.cloud.billing.v1.PricingExpression.TierRate.parser(),
-                      extensionRegistry));
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            usageUnit_ = s;
+            break;
+          }
+          case 17: {
 
-              usageUnitDescription_ = s;
-              break;
+            displayQuantity_ = input.readDouble();
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              tieredRates_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            tieredRates_.add(
+                input.readMessage(com.google.cloud.billing.v1.PricingExpression.TierRate.parser(), extensionRegistry));
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              baseUnit_ = s;
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            usageUnitDescription_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              baseUnitDescription_ = s;
-              break;
-            }
-          case 57:
-            {
-              baseUnitConversionFactor_ = input.readDouble();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            baseUnit_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            baseUnitDescription_ = s;
+            break;
+          }
+          case 57: {
+
+            baseUnitConversionFactor_ = input.readDouble();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -148,7 +122,8 @@ private PricingExpression(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         tieredRates_ = java.util.Collections.unmodifiableList(tieredRates_);
@@ -157,30 +132,24 @@ private PricingExpression(
       makeExtensionsImmutable();
     }
   }
-
-  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
@@ -188,40 +157,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.
@@ -232,37 +192,36 @@ 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; } - private TierRate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -281,32 +240,31 @@ private TierRate( case 0: done = true; break; - case 9: - { - startUsageAmount_ = input.readDouble(); - break; + case 9: { + + startUsageAmount_ = input.readDouble(); + break; + } + case 18: { + com.google.type.Money.Builder subBuilder = null; + if (unitPrice_ != null) { + subBuilder = unitPrice_.toBuilder(); } - case 18: - { - com.google.type.Money.Builder subBuilder = null; - if (unitPrice_ != null) { - subBuilder = unitPrice_.toBuilder(); - } - unitPrice_ = input.readMessage(com.google.type.Money.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(unitPrice_); - unitPrice_ = subBuilder.buildPartial(); - } - - break; + unitPrice_ = input.readMessage(com.google.type.Money.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(unitPrice_); + unitPrice_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -314,33 +272,29 @@ private TierRate( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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
@@ -348,7 +302,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * double start_usage_amount = 1; - * * @return The startUsageAmount. */ @java.lang.Override @@ -359,15 +312,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 @@ -375,15 +325,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 @@ -391,8 +338,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.
@@ -406,7 +351,6 @@ public com.google.type.MoneyOrBuilder getUnitPriceOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -418,7 +362,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_);
       }
@@ -435,10 +380,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 += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -448,19 +395,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 (!unknownFields.equals(other.unknownFields)) return false;
       return true;
@@ -474,10 +422,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();
@@ -488,94 +434,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
@@ -585,32 +524,27 @@ 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() @@ -618,15 +552,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -642,9 +577,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 @@ -663,8 +598,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_; @@ -679,41 +613,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; @@ -721,8 +652,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()); } @@ -748,8 +678,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.billing.v1.PricingExpression.TierRate) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.billing.v1.PricingExpression.TierRate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -759,10 +688,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
@@ -770,7 +697,6 @@ public Builder mergeFrom(
        * 
* * double start_usage_amount = 1; - * * @return The startUsageAmount. */ @java.lang.Override @@ -778,8 +704,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
@@ -787,19 +711,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
@@ -807,11 +728,10 @@ public Builder setStartUsageAmount(double value) {
        * 
* * double start_usage_amount = 1; - * * @return This builder for chaining. */ public Builder clearStartUsageAmount() { - + startUsageAmount_ = 0D; onChanged(); return this; @@ -819,33 +739,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() { @@ -856,8 +769,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.
@@ -879,8 +790,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.
@@ -888,7 +797,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();
@@ -899,8 +809,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.
@@ -912,7 +820,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;
           }
@@ -924,8 +832,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.
@@ -945,8 +851,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.
@@ -955,13 +859,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.
@@ -973,12 +875,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.
@@ -987,20 +888,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) {
@@ -1013,12 +912,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();
     }
@@ -1027,16 +926,16 @@ 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 {
-            return new TierRate(input, extensionRegistry);
-          }
-        };
+    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 {
+        return new TierRate(input, extensionRegistry);
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1051,20 +950,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 @@ -1073,30 +970,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 { @@ -1107,15 +1004,12 @@ public com.google.protobuf.ByteString getUsageUnitBytes() { 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 @@ -1124,30 +1018,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 { @@ -1158,15 +1052,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 @@ -1175,30 +1066,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 { @@ -1209,15 +1100,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 @@ -1226,30 +1114,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 { @@ -1260,8 +1148,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.
@@ -1271,7 +1157,6 @@ public com.google.protobuf.ByteString getBaseUnitDescriptionBytes() {
    * 
* * double base_unit_conversion_factor = 7; - * * @return The baseUnitConversionFactor. */ @java.lang.Override @@ -1282,8 +1167,6 @@ public double getBaseUnitConversionFactor() { 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:
@@ -1296,7 +1179,6 @@ public double getBaseUnitConversionFactor() {
    * 
* * double display_quantity = 2; - * * @return The displayQuantity. */ @java.lang.Override @@ -1307,8 +1189,6 @@ public double getDisplayQuantity() { 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
@@ -1318,13 +1198,10 @@ public double getDisplayQuantity() {
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
   @java.lang.Override
-  public java.util.List
-      getTieredRatesList() {
+  public java.util.List getTieredRatesList() {
     return tieredRates_;
   }
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1334,13 +1211,11 @@ public double getDisplayQuantity() {
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getTieredRatesOrBuilderList() {
     return tieredRates_;
   }
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1354,8 +1229,6 @@ public int getTieredRatesCount() {
     return tieredRates_.size();
   }
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1369,8 +1242,6 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int
     return tieredRates_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1386,7 +1257,6 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1398,7 +1268,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_);
     }
@@ -1433,10 +1304,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_);
@@ -1448,7 +1321,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1458,23 +1332,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 (!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;
+        != java.lang.Double.doubleToLongBits(
+            other.getBaseUnitConversionFactor())) 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1495,15 +1375,11 @@ public int hashCode() {
     hash = (37 * hash) + BASE_UNIT_DESCRIPTION_FIELD_NUMBER;
     hash = (53 * hash) + getBaseUnitDescription().hashCode();
     hash = (37 * hash) + BASE_UNIT_CONVERSION_FACTOR_FIELD_NUMBER;
-    hash =
-        (53 * hash)
-            + com.google.protobuf.Internal.hashLong(
-                java.lang.Double.doubleToLongBits(getBaseUnitConversionFactor()));
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        java.lang.Double.doubleToLongBits(getBaseUnitConversionFactor()));
     hash = (37 * hash) + DISPLAY_QUANTITY_FIELD_NUMBER;
-    hash =
-        (53 * hash)
-            + com.google.protobuf.Internal.hashLong(
-                java.lang.Double.doubleToLongBits(getDisplayQuantity()));
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+        java.lang.Double.doubleToLongBits(getDisplayQuantity()));
     if (getTieredRatesCount() > 0) {
       hash = (37 * hash) + TIERED_RATES_FIELD_NUMBER;
       hash = (53 * hash) + getTieredRatesList().hashCode();
@@ -1513,104 +1389,97 @@ public int hashCode() {
     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`
@@ -1624,23 +1493,21 @@ 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()
@@ -1648,17 +1515,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getTieredRatesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1684,9 +1551,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.billing.v1.CloudCatalogProto
-          .internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
     }
 
     @java.lang.Override
@@ -1705,8 +1572,7 @@ 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_;
@@ -1731,39 +1597,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;
@@ -1812,10 +1677,9 @@ 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_);
           }
@@ -1849,26 +1713,23 @@ public Builder mergeFrom(
       }
       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; @@ -1877,22 +1738,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 { @@ -1900,64 +1760,57 @@ 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; @@ -1965,21 +1818,19 @@ public Builder setUsageUnitBytes(com.google.protobuf.ByteString value) { private java.lang.Object usageUnitDescription_ = ""; /** - * - * *
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; - * * @return The usageUnitDescription. */ public java.lang.String getUsageUnitDescription() { java.lang.Object ref = usageUnitDescription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usageUnitDescription_ = s; return s; @@ -1988,22 +1839,21 @@ public java.lang.String getUsageUnitDescription() { } } /** - * - * *
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; - * * @return The bytes for usageUnitDescription. */ - public com.google.protobuf.ByteString getUsageUnitDescriptionBytes() { + public com.google.protobuf.ByteString + getUsageUnitDescriptionBytes() { java.lang.Object ref = usageUnitDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); usageUnitDescription_ = b; return b; } else { @@ -2011,64 +1861,57 @@ public com.google.protobuf.ByteString getUsageUnitDescriptionBytes() { } } /** - * - * *
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; - * * @param value The usageUnitDescription to set. * @return This builder for chaining. */ - public Builder setUsageUnitDescription(java.lang.String value) { + public Builder setUsageUnitDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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) { + public Builder setUsageUnitDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + usageUnitDescription_ = value; onChanged(); return this; @@ -2076,21 +1919,19 @@ public Builder setUsageUnitDescriptionBytes(com.google.protobuf.ByteString value private java.lang.Object baseUnit_ = ""; /** - * - * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; - * * @return The baseUnit. */ public java.lang.String getBaseUnit() { java.lang.Object ref = baseUnit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseUnit_ = s; return s; @@ -2099,22 +1940,21 @@ public java.lang.String getBaseUnit() { } } /** - * - * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; - * * @return The bytes for baseUnit. */ - public com.google.protobuf.ByteString getBaseUnitBytes() { + public com.google.protobuf.ByteString + getBaseUnitBytes() { java.lang.Object ref = baseUnit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseUnit_ = b; return b; } else { @@ -2122,64 +1962,57 @@ public com.google.protobuf.ByteString getBaseUnitBytes() { } } /** - * - * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; - * * @param value The baseUnit to set. * @return This builder for chaining. */ - public Builder setBaseUnit(java.lang.String value) { + public Builder setBaseUnit( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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) { + public Builder setBaseUnitBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseUnit_ = value; onChanged(); return this; @@ -2187,21 +2020,19 @@ public Builder setBaseUnitBytes(com.google.protobuf.ByteString value) { private java.lang.Object baseUnitDescription_ = ""; /** - * - * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; - * * @return The baseUnitDescription. */ public java.lang.String getBaseUnitDescription() { java.lang.Object ref = baseUnitDescription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseUnitDescription_ = s; return s; @@ -2210,22 +2041,21 @@ public java.lang.String getBaseUnitDescription() { } } /** - * - * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; - * * @return The bytes for baseUnitDescription. */ - public com.google.protobuf.ByteString getBaseUnitDescriptionBytes() { + public com.google.protobuf.ByteString + getBaseUnitDescriptionBytes() { java.lang.Object ref = baseUnitDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); baseUnitDescription_ = b; return b; } else { @@ -2233,73 +2063,64 @@ public com.google.protobuf.ByteString getBaseUnitDescriptionBytes() { } } /** - * - * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; - * * @param value The baseUnitDescription to set. * @return This builder for chaining. */ - public Builder setBaseUnitDescription(java.lang.String value) { + public Builder setBaseUnitDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + 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".
      * 
* * string base_unit_description = 6; - * * @param value The bytes for baseUnitDescription to set. * @return This builder for chaining. */ - public Builder setBaseUnitDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setBaseUnitDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseUnitDescription_ = value; onChanged(); return this; } - private double baseUnitConversionFactor_; + private double baseUnitConversionFactor_ ; /** - * - * *
      * Conversion factor for converting from price per usage_unit to price per
      * base_unit, and start_usage_amount to start_usage_amount in base_unit.
@@ -2309,7 +2130,6 @@ public Builder setBaseUnitDescriptionBytes(com.google.protobuf.ByteString value)
      * 
* * double base_unit_conversion_factor = 7; - * * @return The baseUnitConversionFactor. */ @java.lang.Override @@ -2317,8 +2137,6 @@ public double getBaseUnitConversionFactor() { return baseUnitConversionFactor_; } /** - * - * *
      * Conversion factor for converting from price per usage_unit to price per
      * base_unit, and start_usage_amount to start_usage_amount in base_unit.
@@ -2328,19 +2146,16 @@ public double getBaseUnitConversionFactor() {
      * 
* * 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.
@@ -2350,20 +2165,17 @@ public Builder setBaseUnitConversionFactor(double value) {
      * 
* * double base_unit_conversion_factor = 7; - * * @return This builder for chaining. */ public Builder clearBaseUnitConversionFactor() { - + baseUnitConversionFactor_ = 0D; onChanged(); return this; } - private double displayQuantity_; + private double displayQuantity_ ; /** - * - * *
      * The recommended quantity of units for displaying pricing info. When
      * displaying pricing info it is recommended to display:
@@ -2376,7 +2188,6 @@ public Builder clearBaseUnitConversionFactor() {
      * 
* * double display_quantity = 2; - * * @return The displayQuantity. */ @java.lang.Override @@ -2384,8 +2195,6 @@ public double getDisplayQuantity() { return displayQuantity_; } /** - * - * *
      * The recommended quantity of units for displaying pricing info. When
      * displaying pricing info it is recommended to display:
@@ -2398,19 +2207,16 @@ public double getDisplayQuantity() {
      * 
* * double display_quantity = 2; - * * @param value The displayQuantity to set. * @return This builder for chaining. */ public Builder setDisplayQuantity(double value) { - + displayQuantity_ = value; onChanged(); return this; } /** - * - * *
      * The recommended quantity of units for displaying pricing info. When
      * displaying pricing info it is recommended to display:
@@ -2423,37 +2229,28 @@ public Builder setDisplayQuantity(double value) {
      * 
* * double display_quantity = 2; - * * @return This builder for chaining. */ public Builder clearDisplayQuantity() { - + displayQuantity_ = 0D; onChanged(); return this; } private java.util.List tieredRates_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureTieredRatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - tieredRates_ = - new java.util.ArrayList( - tieredRates_); + tieredRates_ = new java.util.ArrayList(tieredRates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.PricingExpression.TierRate, - com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, - com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder> - tieredRatesBuilder_; + com.google.cloud.billing.v1.PricingExpression.TierRate, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder> tieredRatesBuilder_; /** - * - * *
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2462,8 +2259,7 @@ private void ensureTieredRatesIsMutable() {
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public java.util.List
-        getTieredRatesList() {
+    public java.util.List getTieredRatesList() {
       if (tieredRatesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(tieredRates_);
       } else {
@@ -2471,8 +2267,6 @@ private void ensureTieredRatesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2489,8 +2283,6 @@ public int getTieredRatesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2507,8 +2299,6 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int
       }
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2532,8 +2322,6 @@ public Builder setTieredRates(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2554,8 +2342,6 @@ public Builder setTieredRates(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2578,8 +2364,6 @@ public Builder addTieredRates(com.google.cloud.billing.v1.PricingExpression.Tier
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2603,8 +2387,6 @@ public Builder addTieredRates(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2625,8 +2407,6 @@ public Builder addTieredRates(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2647,8 +2427,6 @@ public Builder addTieredRates(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2658,11 +2436,11 @@ public Builder addTieredRates(
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
     public Builder addAllTieredRates(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (tieredRatesBuilder_ == null) {
         ensureTieredRatesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tieredRates_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, tieredRates_);
         onChanged();
       } else {
         tieredRatesBuilder_.addAllMessages(values);
@@ -2670,8 +2448,6 @@ public Builder addAllTieredRates(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2691,8 +2467,6 @@ public Builder clearTieredRates() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2712,8 +2486,6 @@ public Builder removeTieredRates(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2727,8 +2499,6 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder getTieredR
       return getTieredRatesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2740,14 +2510,11 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder getTieredR
     public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTieredRatesOrBuilder(
         int index) {
       if (tieredRatesBuilder_ == null) {
-        return tieredRates_.get(index);
-      } else {
+        return tieredRates_.get(index);  } else {
         return tieredRatesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2756,8 +2523,8 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public java.util.List
-        getTieredRatesOrBuilderList() {
+    public java.util.List 
+         getTieredRatesOrBuilderList() {
       if (tieredRatesBuilder_ != null) {
         return tieredRatesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2765,8 +2532,6 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
       }
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2776,12 +2541,10 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
     public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredRatesBuilder() {
-      return getTieredRatesFieldBuilder()
-          .addBuilder(com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
+      return getTieredRatesFieldBuilder().addBuilder(
+          com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2792,13 +2555,10 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredR
      */
     public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredRatesBuilder(
         int index) {
-      return getTieredRatesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
+      return getTieredRatesFieldBuilder().addBuilder(
+          index, com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2807,30 +2567,27 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredR
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public java.util.List
-        getTieredRatesBuilderList() {
+    public java.util.List 
+         getTieredRatesBuilderList() {
       return getTieredRatesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.billing.v1.PricingExpression.TierRate,
-            com.google.cloud.billing.v1.PricingExpression.TierRate.Builder,
-            com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder>
+        com.google.cloud.billing.v1.PricingExpression.TierRate, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder> 
         getTieredRatesFieldBuilder() {
       if (tieredRatesBuilder_ == null) {
-        tieredRatesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.billing.v1.PricingExpression.TierRate,
-                com.google.cloud.billing.v1.PricingExpression.TierRate.Builder,
-                com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder>(
-                tieredRates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        tieredRatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.billing.v1.PricingExpression.TierRate, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder>(
+                tieredRates_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         tieredRates_ = null;
       }
       return tieredRatesBuilder_;
     }
-
     @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);
     }
 
@@ -2840,12 +2597,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();
   }
@@ -2854,16 +2611,16 @@ 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 {
-          return new PricingExpression(input, extensionRegistry);
-        }
-      };
+  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 {
+      return new PricingExpression(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2878,4 +2635,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.v1.PricingExpression getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java
similarity index 82%
rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java
index 847a1caf..978834ae 100644
--- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java
@@ -1,139 +1,101 @@
-/*
- * 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 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,14 +105,11 @@ 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:
@@ -163,14 +122,11 @@ public interface PricingExpressionOrBuilder
    * 
* * double display_quantity = 2; - * * @return The displayQuantity. */ double getDisplayQuantity(); /** - * - * *
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -179,10 +135,9 @@ public interface PricingExpressionOrBuilder
    *
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
-  java.util.List getTieredRatesList();
+  java.util.List 
+      getTieredRatesList();
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -193,8 +148,6 @@ public interface PricingExpressionOrBuilder
    */
   com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int index);
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -205,8 +158,6 @@ public interface PricingExpressionOrBuilder
    */
   int getTieredRatesCount();
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -215,11 +166,9 @@ public interface PricingExpressionOrBuilder
    *
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
-  java.util.List
+  java.util.List 
       getTieredRatesOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java
similarity index 75%
rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java
rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java
index 434e4d3b..c7f5de4f 100644
--- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java
+++ b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java
@@ -1,57 +1,40 @@
-/*
- * 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; } - private PricingInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,72 +53,63 @@ private PricingInfo( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (effectiveTime_ != null) { - subBuilder = effectiveTime_.toBuilder(); - } - effectiveTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(effectiveTime_); - effectiveTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (effectiveTime_ != null) { + subBuilder = effectiveTime_.toBuilder(); + } + effectiveTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(effectiveTime_); + effectiveTime_ = subBuilder.buildPartial(); } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - summary_ = s; - break; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + summary_ = s; + break; + } + case 26: { + com.google.cloud.billing.v1.PricingExpression.Builder subBuilder = null; + if (pricingExpression_ != null) { + subBuilder = pricingExpression_.toBuilder(); } - case 26: - { - com.google.cloud.billing.v1.PricingExpression.Builder subBuilder = null; - if (pricingExpression_ != null) { - subBuilder = pricingExpression_.toBuilder(); - } - pricingExpression_ = - input.readMessage( - com.google.cloud.billing.v1.PricingExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pricingExpression_); - pricingExpression_ = subBuilder.buildPartial(); - } - - break; + pricingExpression_ = input.readMessage(com.google.cloud.billing.v1.PricingExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pricingExpression_); + pricingExpression_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.billing.v1.AggregationInfo.Builder subBuilder = null; - if (aggregationInfo_ != null) { - subBuilder = aggregationInfo_.toBuilder(); - } - aggregationInfo_ = - input.readMessage( - com.google.cloud.billing.v1.AggregationInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(aggregationInfo_); - aggregationInfo_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 34: { + com.google.cloud.billing.v1.AggregationInfo.Builder subBuilder = null; + if (aggregationInfo_ != null) { + subBuilder = aggregationInfo_.toBuilder(); } - case 41: - { - currencyConversionRate_ = input.readDouble(); - break; + aggregationInfo_ = input.readMessage(com.google.cloud.billing.v1.AggregationInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(aggregationInfo_); + aggregationInfo_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 41: { + + currencyConversionRate_ = input.readDouble(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -143,33 +117,29 @@ private PricingInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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
@@ -180,7 +150,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 @@ -188,8 +157,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
@@ -200,18 +167,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
@@ -231,15 +193,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 @@ -248,30 +207,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 { @@ -282,14 +241,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 @@ -297,25 +253,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.
    * 
@@ -330,15 +279,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 @@ -346,26 +292,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.
@@ -381,8 +320,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
@@ -392,7 +329,6 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
    * 
* * double currency_conversion_rate = 5; - * * @return The currencyConversionRate. */ @java.lang.Override @@ -401,7 +337,6 @@ public double getCurrencyConversionRate() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -413,7 +348,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()); } @@ -439,19 +375,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -461,7 +401,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); @@ -470,19 +410,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -509,136 +454,125 @@ 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) + unknownFields.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() @@ -646,15 +580,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -684,9 +619,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 @@ -705,8 +640,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 { @@ -732,39 +666,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; @@ -820,13 +753,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
@@ -837,15 +765,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
@@ -856,21 +781,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
@@ -896,8 +816,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
@@ -909,7 +827,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();
@@ -920,8 +839,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
@@ -937,9 +854,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;
         }
@@ -951,8 +866,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
@@ -976,8 +889,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
@@ -990,13 +901,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
@@ -1012,14 +921,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
@@ -1032,17 +938,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_;
@@ -1050,21 +953,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; @@ -1073,22 +974,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 { @@ -1096,64 +996,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; @@ -1161,47 +1054,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.
      * 
@@ -1222,8 +1102,6 @@ public Builder setPricingExpression(com.google.cloud.billing.v1.PricingExpressio return this; } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1242,8 +1120,6 @@ public Builder setPricingExpression( return this; } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1254,9 +1130,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; } @@ -1268,8 +1142,6 @@ public Builder mergePricingExpression(com.google.cloud.billing.v1.PricingExpress return this; } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1288,8 +1160,6 @@ public Builder clearPricingExpression() { return this; } /** - * - * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1297,13 +1167,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.
      * 
@@ -1314,14 +1182,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.
      * 
@@ -1329,17 +1194,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_; @@ -1347,49 +1209,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.
@@ -1411,8 +1260,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.
@@ -1432,8 +1279,6 @@ public Builder setAggregationInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1445,9 +1290,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;
         }
@@ -1459,8 +1302,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.
@@ -1480,8 +1321,6 @@ public Builder clearAggregationInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1490,13 +1329,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.
@@ -1508,14 +1345,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.
@@ -1524,26 +1358,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
@@ -1553,7 +1382,6 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
      * 
* * double currency_conversion_rate = 5; - * * @return The currencyConversionRate. */ @java.lang.Override @@ -1561,8 +1389,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
@@ -1572,19 +1398,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
@@ -1594,18 +1417,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); } @@ -1615,12 +1437,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(); } @@ -1629,16 +1451,16 @@ 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 { - return new PricingInfo(input, extensionRegistry); - } - }; + 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 { + return new PricingInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1653,4 +1475,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.PricingInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java similarity index 84% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java index a4155ac2..c7ac5c8a 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java +++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java similarity index 75% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java index 2098162b..6f9642ef 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java +++ b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.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_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
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.billing.v1.ProjectBillingInfo}
  */
-public final class ProjectBillingInfo extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ProjectBillingInfo extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ProjectBillingInfo)
     ProjectBillingInfoOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ProjectBillingInfo.newBuilder() to construct.
   private ProjectBillingInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ProjectBillingInfo() {
     name_ = "";
     projectId_ = "";
@@ -47,15 +29,16 @@ 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;
   }
-
   private ProjectBillingInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,39 +57,36 @@ private ProjectBillingInfo(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              projectId_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            projectId_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              billingAccountName_ = s;
-              break;
-            }
-          case 32:
-            {
-              billingEnabled_ = input.readBool();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            billingAccountName_ = s;
+            break;
+          }
+          case 32: {
+
+            billingEnabled_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -114,33 +94,29 @@ private ProjectBillingInfo(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  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
@@ -149,7 +125,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -158,15 +133,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
@@ -175,15 +149,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 { @@ -194,8 +169,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
@@ -203,7 +176,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string project_id = 2; - * * @return The projectId. */ @java.lang.Override @@ -212,15 +184,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
@@ -228,15 +199,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 { @@ -247,15 +219,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 @@ -264,30 +233,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 { @@ -298,8 +267,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
@@ -308,7 +275,6 @@ public com.google.protobuf.ByteString getBillingAccountNameBytes() {
    * 
* * bool billing_enabled = 4; - * * @return The billingEnabled. */ @java.lang.Override @@ -317,7 +283,6 @@ public boolean getBillingEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -329,7 +294,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_); } @@ -361,7 +327,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -371,18 +338,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -401,110 +371,104 @@ 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) + unknownFields.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
@@ -513,23 +477,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.billing.v1.ProjectBillingInfo}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ProjectBillingInfo)
       com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.billing.v1.CloudBillingProto
-          .internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.v1.CloudBillingProto
-          .internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable
+      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.v1.ProjectBillingInfo.class,
-              com.google.cloud.billing.v1.ProjectBillingInfo.Builder.class);
+              com.google.cloud.billing.v1.ProjectBillingInfo.class, com.google.cloud.billing.v1.ProjectBillingInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.v1.ProjectBillingInfo.newBuilder()
@@ -537,15 +499,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -561,9 +524,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
@@ -582,8 +545,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_;
@@ -596,39 +558,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;
@@ -683,8 +644,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
@@ -693,13 +652,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; @@ -708,8 +667,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
@@ -718,14 +675,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 { @@ -733,8 +691,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
@@ -743,22 +699,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
@@ -767,18 +721,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
@@ -787,16 +738,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; @@ -804,8 +755,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
@@ -813,13 +762,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; @@ -828,8 +777,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
@@ -837,14 +784,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 { @@ -852,8 +800,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
@@ -861,22 +807,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
@@ -884,18 +828,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
@@ -903,16 +844,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; @@ -920,21 +861,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; @@ -943,22 +882,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 { @@ -966,73 +904,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
@@ -1041,7 +970,6 @@ public Builder setBillingAccountNameBytes(com.google.protobuf.ByteString value)
      * 
* * bool billing_enabled = 4; - * * @return The billingEnabled. */ @java.lang.Override @@ -1049,8 +977,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
@@ -1059,19 +985,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
@@ -1080,18 +1003,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); } @@ -1101,12 +1023,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(); } @@ -1115,16 +1037,16 @@ 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 { - return new ProjectBillingInfo(input, extensionRegistry); - } - }; + 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 { + return new ProjectBillingInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,4 +1061,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ProjectBillingInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java similarity index 75% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java index 6252c53b..7a3b14e6 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java +++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java similarity index 71% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java index 40c33071..120574df 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java +++ b/owl-bot-staging/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,15 +28,16 @@ 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; } - private Service( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private Service( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - serviceId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + serviceId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - businessEntityName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + businessEntityName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,40 +94,35 @@ private Service( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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 @@ -157,30 +131,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 { @@ -191,15 +165,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 @@ -208,30 +179,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 { @@ -242,14 +213,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 @@ -258,29 +226,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 { @@ -291,15 +259,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 @@ -308,30 +273,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 { @@ -340,7 +305,6 @@ public com.google.protobuf.ByteString getBusinessEntityNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -352,7 +316,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_); } @@ -394,17 +359,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -429,126 +398,118 @@ 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() @@ -556,15 +517,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -580,9 +542,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 @@ -614,39 +576,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; @@ -702,21 +663,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; @@ -725,22 +684,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 { @@ -748,64 +706,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; @@ -813,21 +764,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; @@ -836,22 +785,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 { @@ -859,64 +807,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; @@ -924,20 +865,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; @@ -946,21 +885,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 { @@ -968,61 +906,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; @@ -1030,21 +961,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; @@ -1053,22 +982,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 { @@ -1076,71 +1004,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); } @@ -1150,12 +1071,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(); } @@ -1164,16 +1085,16 @@ 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 { - return new Service(input, extensionRegistry); - } - }; + 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 { + return new Service(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1188,4 +1109,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.Service getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java similarity index 100% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java similarity index 66% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java index d81c0664..88ca18ce 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java +++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java similarity index 75% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java index 5ef0ee97..1d067271 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java +++ b/owl-bot-staging/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,15 +30,16 @@ 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; } - private Sku( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,78 +59,68 @@ private Sku( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - skuId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + skuId_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; + description_ = s; + break; + } + case 34: { + com.google.cloud.billing.v1.Category.Builder subBuilder = null; + if (category_ != null) { + subBuilder = category_.toBuilder(); } - case 34: - { - com.google.cloud.billing.v1.Category.Builder subBuilder = null; - if (category_ != null) { - subBuilder = category_.toBuilder(); - } - category_ = - input.readMessage( - com.google.cloud.billing.v1.Category.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(category_); - category_ = subBuilder.buildPartial(); - } - - break; + category_ = input.readMessage(com.google.cloud.billing.v1.Category.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(category_); + category_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - serviceRegions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - serviceRegions_.add(s); - break; + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + serviceRegions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 50: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - pricingInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - pricingInfo_.add( - input.readMessage( - com.google.cloud.billing.v1.PricingInfo.parser(), extensionRegistry)); - break; + serviceRegions_.add(s); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + pricingInfo_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + pricingInfo_.add( + input.readMessage(com.google.cloud.billing.v1.PricingInfo.parser(), extensionRegistry)); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - serviceProviderName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + serviceProviderName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -155,7 +128,8 @@ private Sku( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { serviceRegions_ = serviceRegions_.getUnmodifiableView(); @@ -167,17 +141,15 @@ private Sku( makeExtensionsImmutable(); } } - - 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); } @@ -185,15 +157,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 @@ -202,30 +171,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 { @@ -236,15 +205,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 @@ -253,30 +219,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 { @@ -287,15 +253,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 @@ -304,30 +267,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 { @@ -338,14 +301,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 @@ -353,25 +313,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.
    * 
@@ -386,8 +339,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"
@@ -395,15 +346,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"
@@ -411,15 +360,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"
@@ -427,7 +373,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. */ @@ -435,8 +380,6 @@ public java.lang.String getServiceRegions(int index) { return serviceRegions_.get(index); } /** - * - * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -444,19 +387,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.
    * 
@@ -468,8 +409,6 @@ public java.util.List getPricingInfoLis return pricingInfo_; } /** - * - * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -477,13 +416,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.
    * 
@@ -495,8 +432,6 @@ public int getPricingInfoCount() { return pricingInfo_.size(); } /** - * - * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -508,8 +443,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.
    * 
@@ -517,22 +450,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 @@ -541,30 +472,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 { @@ -573,7 +504,6 @@ public com.google.protobuf.ByteString getServiceProviderNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -585,7 +515,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_); } @@ -626,7 +557,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; @@ -637,7 +569,8 @@ 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_); @@ -650,23 +583,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.Sku)) { return super.equals(obj); } com.google.cloud.billing.v1.Sku other = (com.google.cloud.billing.v1.Sku) obj; - if (!getName().equals(other.getName())) return false; - if (!getSkuId().equals(other.getSkuId())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getSkuId() + .equals(other.getSkuId())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasCategory() != other.hasCategory()) return false; if (hasCategory()) { - if (!getCategory().equals(other.getCategory())) return false; - } - if (!getServiceRegionsList().equals(other.getServiceRegionsList())) return false; - if (!getPricingInfoList().equals(other.getPricingInfoList())) return false; - if (!getServiceProviderName().equals(other.getServiceProviderName())) return false; + if (!getCategory() + .equals(other.getCategory())) return false; + } + if (!getServiceRegionsList() + .equals(other.getServiceRegionsList())) return false; + if (!getPricingInfoList() + .equals(other.getPricingInfoList())) return false; + if (!getServiceProviderName() + .equals(other.getServiceProviderName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -703,123 +643,116 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.Sku parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.Sku parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.Sku parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.billing.v1.Sku parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.billing.v1.Sku parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.Sku parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.Sku parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.billing.v1.Sku parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.Sku parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.Sku parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.Sku parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.Sku parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.Sku parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.billing.v1.Sku parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.billing.v1.Sku prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Encapsulates a single SKU in Google Cloud Platform
    * 
* * Protobuf type {@code google.cloud.billing.v1.Sku} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.Sku) com.google.cloud.billing.v1.SkuOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Sku_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.billing.v1.Sku.class, com.google.cloud.billing.v1.Sku.Builder.class); } @@ -829,17 +762,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPricingInfoFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -869,9 +802,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto - .internal_static_google_cloud_billing_v1_Sku_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_descriptor; } @java.lang.Override @@ -923,39 +856,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; @@ -1007,10 +939,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_); } @@ -1048,26 +979,23 @@ public Builder mergeFrom( } 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; @@ -1076,22 +1004,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 { @@ -1099,64 +1026,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; @@ -1164,21 +1084,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; @@ -1187,22 +1105,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 { @@ -1210,64 +1127,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; @@ -1275,21 +1185,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; @@ -1298,22 +1206,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 { @@ -1321,64 +1228,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; @@ -1386,47 +1286,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.
      * 
@@ -1447,15 +1334,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(); @@ -1466,8 +1352,6 @@ public Builder setCategory(com.google.cloud.billing.v1.Category.Builder builderF return this; } /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1478,9 +1362,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; } @@ -1492,8 +1374,6 @@ public Builder mergeCategory(com.google.cloud.billing.v1.Category value) { return this; } /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1512,8 +1392,6 @@ public Builder clearCategory() { return this; } /** - * - * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1521,13 +1399,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.
      * 
@@ -1538,14 +1414,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.
      * 
@@ -1553,34 +1426,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"
@@ -1588,15 +1454,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"
@@ -1604,15 +1468,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"
@@ -1620,7 +1481,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. */ @@ -1628,8 +1488,6 @@ public java.lang.String getServiceRegions(int index) { return serviceRegions_.get(index); } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1637,16 +1495,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"
@@ -1654,23 +1510,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"
@@ -1678,22 +1532,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"
@@ -1701,19 +1553,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"
@@ -1721,7 +1572,6 @@ public Builder addAllServiceRegions(java.lang.Iterable values)
      * 
* * repeated string service_regions = 5; - * * @return This builder for chaining. */ public Builder clearServiceRegions() { @@ -1731,8 +1581,6 @@ public Builder clearServiceRegions() { return this; } /** - * - * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1740,15 +1588,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(); @@ -1756,25 +1604,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.
      * 
@@ -1789,8 +1630,6 @@ public java.util.List getPricingInfoLis } } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1805,8 +1644,6 @@ public int getPricingInfoCount() { } } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1821,15 +1658,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(); @@ -1843,8 +1679,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.
      * 
@@ -1863,8 +1697,6 @@ public Builder setPricingInfo( return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1885,15 +1717,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(); @@ -1907,15 +1738,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()); @@ -1926,8 +1756,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.
      * 
@@ -1946,8 +1774,6 @@ public Builder addPricingInfo( return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1958,7 +1784,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); @@ -1966,8 +1793,6 @@ public Builder addAllPricingInfo( return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1985,8 +1810,6 @@ public Builder clearPricingInfo() { return this; } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -2004,44 +1827,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 { @@ -2049,8 +1867,6 @@ public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( } } /** - * - * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -2058,48 +1874,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_; @@ -2107,21 +1917,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; @@ -2130,22 +1938,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 { @@ -2153,71 +1960,64 @@ 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; } - @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); } @@ -2227,12 +2027,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(); } @@ -2241,16 +2041,16 @@ 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 { - return new Sku(input, extensionRegistry); - } - }; + 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 { + return new Sku(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2265,4 +2065,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.Sku getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java similarity index 79% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java index 9b282cd8..59e850cc 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java +++ b/owl-bot-staging/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,43 @@ 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(); } diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java similarity index 65% rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java index 4d577316..c1a2e72a 100644 --- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java @@ -1,57 +1,40 @@ -/* - * 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; } - private UpdateBillingAccountRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,51 +53,45 @@ private UpdateBillingAccountRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.cloud.billing.v1.BillingAccount.Builder subBuilder = null; + if (account_ != null) { + subBuilder = account_.toBuilder(); } - case 18: - { - com.google.cloud.billing.v1.BillingAccount.Builder subBuilder = null; - if (account_ != null) { - subBuilder = account_.toBuilder(); - } - account_ = - input.readMessage( - com.google.cloud.billing.v1.BillingAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(account_); - account_ = subBuilder.buildPartial(); - } - - break; + account_ = input.readMessage(com.google.cloud.billing.v1.BillingAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(account_); + account_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -122,41 +99,34 @@ private UpdateBillingAccountRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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 @@ -165,31 +135,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 { @@ -200,16 +168,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 @@ -217,34 +180,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() { @@ -254,15 +206,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 @@ -270,15 +219,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 @@ -286,8 +232,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.
@@ -301,7 +245,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -313,7 +256,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_);
     }
@@ -336,10 +280,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -349,22 +295,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -393,127 +341,117 @@ 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() @@ -521,15 +459,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -551,9 +490,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 @@ -572,8 +511,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_; @@ -593,39 +531,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; @@ -633,8 +570,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(); @@ -664,8 +600,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.billing.v1.UpdateBillingAccountRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.billing.v1.UpdateBillingAccountRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -677,22 +612,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; @@ -701,23 +632,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 { @@ -725,67 +653,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; @@ -793,58 +708,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) { @@ -860,17 +756,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(); @@ -881,23 +774,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; } @@ -909,15 +796,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) { @@ -931,64 +814,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_; @@ -996,49 +863,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.
@@ -1060,8 +914,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -1069,7 +921,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();
@@ -1080,8 +933,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.
@@ -1093,7 +944,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;
         }
@@ -1105,8 +956,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -1126,8 +975,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -1136,13 +983,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.
@@ -1154,14 +999,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.
@@ -1170,24 +1012,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);
     }
 
@@ -1197,12 +1036,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();
   }
@@ -1211,16 +1050,16 @@ 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 {
-          return new UpdateBillingAccountRequest(input, extensionRegistry);
-        }
-      };
+  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 {
+      return new UpdateBillingAccountRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1235,4 +1074,6 @@ public com.google.protobuf.Parser getParserForType(
   public com.google.cloud.billing.v1.UpdateBillingAccountRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
similarity index 58%
rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
index 0300e04a..fe5c9936 100644
--- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
+++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
similarity index 71%
rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
index 08e373be..ac5716fb 100644
--- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
@@ -1,58 +1,40 @@
-/*
- * 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; } - private UpdateProjectBillingInfoRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,36 +53,32 @@ private UpdateProjectBillingInfoRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.cloud.billing.v1.ProjectBillingInfo.Builder subBuilder = null; + if (projectBillingInfo_ != null) { + subBuilder = projectBillingInfo_.toBuilder(); } - case 18: - { - com.google.cloud.billing.v1.ProjectBillingInfo.Builder subBuilder = null; - if (projectBillingInfo_ != null) { - subBuilder = projectBillingInfo_.toBuilder(); - } - projectBillingInfo_ = - input.readMessage( - com.google.cloud.billing.v1.ProjectBillingInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(projectBillingInfo_); - projectBillingInfo_ = subBuilder.buildPartial(); - } - - break; + projectBillingInfo_ = input.readMessage(com.google.cloud.billing.v1.ProjectBillingInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(projectBillingInfo_); + projectBillingInfo_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,40 +86,35 @@ private UpdateProjectBillingInfoRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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 @@ -150,30 +123,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 { @@ -184,15 +157,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 @@ -200,26 +170,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`.
@@ -233,7 +196,6 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -245,7 +207,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_);
     }
@@ -265,7 +228,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -275,18 +239,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -311,127 +276,117 @@ 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() @@ -439,15 +394,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -463,9 +419,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 @@ -484,8 +440,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_; @@ -500,39 +455,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; @@ -540,8 +494,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(); @@ -568,8 +521,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -581,21 +533,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; @@ -604,22 +554,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 { @@ -627,64 +576,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; @@ -692,49 +634,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`.
@@ -756,8 +685,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`.
@@ -777,8 +704,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`.
@@ -790,9 +715,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;
         }
@@ -804,8 +727,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`.
@@ -825,8 +746,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`.
@@ -835,13 +754,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`.
@@ -849,19 +766,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`.
@@ -870,24 +783,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);
     }
 
@@ -897,12 +807,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();
   }
@@ -911,16 +821,16 @@ 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 {
-          return new UpdateProjectBillingInfoRequest(input, extensionRegistry);
-        }
-      };
+  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 {
+      return new UpdateProjectBillingInfoRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -935,4 +845,6 @@ public com.google.protobuf.Parser getParserForT
   public com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
similarity index 72%
rename from proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
index bda32cfd..92a9bb82 100644
--- a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
+++ b/owl-bot-staging/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/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto
similarity index 100%
rename from proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto
rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto
diff --git a/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto
similarity index 100%
rename from proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto
rename to owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider.java
new file mode 100644
index 00000000..0b9e17dd
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider.java
@@ -0,0 +1,41 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_create_setcredentialsprovider_sync]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.CloudBillingSettings;
+import com.google.cloud.billing.v1.myCredentials;
+
+public class SyncCreateSetCredentialsProvider {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider();
+  }
+
+  public static void syncCreateSetCredentialsProvider() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    CloudBillingSettings cloudBillingSettings =
+        CloudBillingSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    CloudBillingClient cloudBillingClient = CloudBillingClient.create(cloudBillingSettings);
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_create_setcredentialsprovider_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider1.java
new file mode 100644
index 00000000..91ce03d5
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider1.java
@@ -0,0 +1,40 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_create_setcredentialsprovider1_sync]
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.CloudBillingSettings;
+
+public class SyncCreateSetCredentialsProvider1 {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider1();
+  }
+
+  public static void syncCreateSetCredentialsProvider1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    CloudBillingSettings cloudBillingSettings =
+        CloudBillingSettings.newBuilder()
+            .setTransportChannelProvider(
+                CloudBillingSettings.defaultHttpJsonTransportProviderBuilder().build())
+            .build();
+    CloudBillingClient cloudBillingClient = CloudBillingClient.create(cloudBillingSettings);
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_create_setcredentialsprovider1_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetEndpoint.java
new file mode 100644
index 00000000..6fb2ad34
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetEndpoint.java
@@ -0,0 +1,38 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_create_setendpoint_sync]
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.CloudBillingSettings;
+import com.google.cloud.billing.v1.myEndpoint;
+
+public class SyncCreateSetEndpoint {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetEndpoint();
+  }
+
+  public static void syncCreateSetEndpoint() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    CloudBillingSettings cloudBillingSettings =
+        CloudBillingSettings.newBuilder().setEndpoint(myEndpoint).build();
+    CloudBillingClient cloudBillingClient = CloudBillingClient.create(cloudBillingSettings);
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_create_setendpoint_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/AsyncCreateBillingAccount.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/AsyncCreateBillingAccount.java
new file mode 100644
index 00000000..d2a11bb6
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/AsyncCreateBillingAccount.java
@@ -0,0 +1,46 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_createbillingaccount_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.billing.v1.BillingAccount;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.CreateBillingAccountRequest;
+
+public class AsyncCreateBillingAccount {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateBillingAccount();
+  }
+
+  public static void asyncCreateBillingAccount() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      CreateBillingAccountRequest request =
+          CreateBillingAccountRequest.newBuilder()
+              .setBillingAccount(BillingAccount.newBuilder().build())
+              .build();
+      ApiFuture future =
+          cloudBillingClient.createBillingAccountCallable().futureCall(request);
+      // Do something.
+      BillingAccount response = future.get();
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_createbillingaccount_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccount.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccount.java
new file mode 100644
index 00000000..809869c3
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccount.java
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_createbillingaccount_sync]
+import com.google.cloud.billing.v1.BillingAccount;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.CreateBillingAccountRequest;
+
+public class SyncCreateBillingAccount {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateBillingAccount();
+  }
+
+  public static void syncCreateBillingAccount() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      CreateBillingAccountRequest request =
+          CreateBillingAccountRequest.newBuilder()
+              .setBillingAccount(BillingAccount.newBuilder().build())
+              .build();
+      BillingAccount response = cloudBillingClient.createBillingAccount(request);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_createbillingaccount_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccountBillingaccount.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccountBillingaccount.java
new file mode 100644
index 00000000..6e2234e1
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccountBillingaccount.java
@@ -0,0 +1,38 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_createbillingaccount_billingaccount_sync]
+import com.google.cloud.billing.v1.BillingAccount;
+import com.google.cloud.billing.v1.CloudBillingClient;
+
+public class SyncCreateBillingAccountBillingaccount {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateBillingAccountBillingaccount();
+  }
+
+  public static void syncCreateBillingAccountBillingaccount() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      BillingAccount billingAccount = BillingAccount.newBuilder().build();
+      BillingAccount response = cloudBillingClient.createBillingAccount(billingAccount);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_createbillingaccount_billingaccount_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/AsyncGetBillingAccount.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/AsyncGetBillingAccount.java
new file mode 100644
index 00000000..af572be6
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/AsyncGetBillingAccount.java
@@ -0,0 +1,47 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_getbillingaccount_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.billing.v1.BillingAccount;
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.GetBillingAccountRequest;
+
+public class AsyncGetBillingAccount {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetBillingAccount();
+  }
+
+  public static void asyncGetBillingAccount() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      GetBillingAccountRequest request =
+          GetBillingAccountRequest.newBuilder()
+              .setName(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+              .build();
+      ApiFuture future =
+          cloudBillingClient.getBillingAccountCallable().futureCall(request);
+      // Do something.
+      BillingAccount response = future.get();
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_getbillingaccount_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccount.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccount.java
new file mode 100644
index 00000000..c340d818
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccount.java
@@ -0,0 +1,43 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_getbillingaccount_sync]
+import com.google.cloud.billing.v1.BillingAccount;
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.GetBillingAccountRequest;
+
+public class SyncGetBillingAccount {
+
+  public static void main(String[] args) throws Exception {
+    syncGetBillingAccount();
+  }
+
+  public static void syncGetBillingAccount() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      GetBillingAccountRequest request =
+          GetBillingAccountRequest.newBuilder()
+              .setName(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+              .build();
+      BillingAccount response = cloudBillingClient.getBillingAccount(request);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_getbillingaccount_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountBillingaccountname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountBillingaccountname.java
new file mode 100644
index 00000000..c2455843
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountBillingaccountname.java
@@ -0,0 +1,39 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_getbillingaccount_billingaccountname_sync]
+import com.google.cloud.billing.v1.BillingAccount;
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+
+public class SyncGetBillingAccountBillingaccountname {
+
+  public static void main(String[] args) throws Exception {
+    syncGetBillingAccountBillingaccountname();
+  }
+
+  public static void syncGetBillingAccountBillingaccountname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      BillingAccountName name = BillingAccountName.of("[BILLING_ACCOUNT]");
+      BillingAccount response = cloudBillingClient.getBillingAccount(name);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_getbillingaccount_billingaccountname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountString.java
new file mode 100644
index 00000000..2ad8ab2b
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountString.java
@@ -0,0 +1,39 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_getbillingaccount_string_sync]
+import com.google.cloud.billing.v1.BillingAccount;
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+
+public class SyncGetBillingAccountString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetBillingAccountString();
+  }
+
+  public static void syncGetBillingAccountString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      String name = BillingAccountName.of("[BILLING_ACCOUNT]").toString();
+      BillingAccount response = cloudBillingClient.getBillingAccount(name);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_getbillingaccount_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/AsyncGetIamPolicy.java
new file mode 100644
index 00000000..2cec2add
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/AsyncGetIamPolicy.java
@@ -0,0 +1,48 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_getiampolicy_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+
+public class AsyncGetIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetIamPolicy();
+  }
+
+  public static void asyncGetIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      ApiFuture future = cloudBillingClient.getIamPolicyCallable().futureCall(request);
+      // Do something.
+      Policy response = future.get();
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_getiampolicy_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicy.java
new file mode 100644
index 00000000..de2070c6
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicy.java
@@ -0,0 +1,45 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_getiampolicy_sync]
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.iam.v1.GetIamPolicyRequest;
+import com.google.iam.v1.GetPolicyOptions;
+import com.google.iam.v1.Policy;
+
+public class SyncGetIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    syncGetIamPolicy();
+  }
+
+  public static void syncGetIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      GetIamPolicyRequest request =
+          GetIamPolicyRequest.newBuilder()
+              .setResource(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+              .setOptions(GetPolicyOptions.newBuilder().build())
+              .build();
+      Policy response = cloudBillingClient.getIamPolicy(request);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_getiampolicy_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyResourcename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyResourcename.java
new file mode 100644
index 00000000..755725a7
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyResourcename.java
@@ -0,0 +1,40 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_getiampolicy_resourcename_sync]
+import com.google.api.resourcenames.ResourceName;
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.iam.v1.Policy;
+
+public class SyncGetIamPolicyResourcename {
+
+  public static void main(String[] args) throws Exception {
+    syncGetIamPolicyResourcename();
+  }
+
+  public static void syncGetIamPolicyResourcename() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      ResourceName resource = BillingAccountName.of("[BILLING_ACCOUNT]");
+      Policy response = cloudBillingClient.getIamPolicy(resource);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_getiampolicy_resourcename_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyString.java
new file mode 100644
index 00000000..d0b45f5c
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyString.java
@@ -0,0 +1,39 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_getiampolicy_string_sync]
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.iam.v1.Policy;
+
+public class SyncGetIamPolicyString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetIamPolicyString();
+  }
+
+  public static void syncGetIamPolicyString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      String resource = BillingAccountName.of("[BILLING_ACCOUNT]").toString();
+      Policy response = cloudBillingClient.getIamPolicy(resource);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_getiampolicy_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/AsyncGetProjectBillingInfo.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/AsyncGetProjectBillingInfo.java
new file mode 100644
index 00000000..f3b052a3
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/AsyncGetProjectBillingInfo.java
@@ -0,0 +1,44 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_getprojectbillinginfo_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.GetProjectBillingInfoRequest;
+import com.google.cloud.billing.v1.ProjectBillingInfo;
+
+public class AsyncGetProjectBillingInfo {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetProjectBillingInfo();
+  }
+
+  public static void asyncGetProjectBillingInfo() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      GetProjectBillingInfoRequest request =
+          GetProjectBillingInfoRequest.newBuilder().setName("name3373707").build();
+      ApiFuture future =
+          cloudBillingClient.getProjectBillingInfoCallable().futureCall(request);
+      // Do something.
+      ProjectBillingInfo response = future.get();
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_getprojectbillinginfo_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfo.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfo.java
new file mode 100644
index 00000000..f2a0d7d0
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfo.java
@@ -0,0 +1,40 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_getprojectbillinginfo_sync]
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.GetProjectBillingInfoRequest;
+import com.google.cloud.billing.v1.ProjectBillingInfo;
+
+public class SyncGetProjectBillingInfo {
+
+  public static void main(String[] args) throws Exception {
+    syncGetProjectBillingInfo();
+  }
+
+  public static void syncGetProjectBillingInfo() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      GetProjectBillingInfoRequest request =
+          GetProjectBillingInfoRequest.newBuilder().setName("name3373707").build();
+      ProjectBillingInfo response = cloudBillingClient.getProjectBillingInfo(request);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_getprojectbillinginfo_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfoString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfoString.java
new file mode 100644
index 00000000..10abc0d3
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfoString.java
@@ -0,0 +1,38 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_getprojectbillinginfo_string_sync]
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.ProjectBillingInfo;
+
+public class SyncGetProjectBillingInfoString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetProjectBillingInfoString();
+  }
+
+  public static void syncGetProjectBillingInfoString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      String name = "name3373707";
+      ProjectBillingInfo response = cloudBillingClient.getProjectBillingInfo(name);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_getprojectbillinginfo_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccounts.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccounts.java
new file mode 100644
index 00000000..9e0c74e9
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccounts.java
@@ -0,0 +1,50 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_listbillingaccounts_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.billing.v1.BillingAccount;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.ListBillingAccountsRequest;
+
+public class AsyncListBillingAccounts {
+
+  public static void main(String[] args) throws Exception {
+    asyncListBillingAccounts();
+  }
+
+  public static void asyncListBillingAccounts() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      ListBillingAccountsRequest request =
+          ListBillingAccountsRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .setFilter("filter-1274492040")
+              .build();
+      ApiFuture future =
+          cloudBillingClient.listBillingAccountsPagedCallable().futureCall(request);
+      // Do something.
+      for (BillingAccount element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_listbillingaccounts_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccountsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccountsPaged.java
new file mode 100644
index 00000000..e32c1a8a
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccountsPaged.java
@@ -0,0 +1,58 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_listbillingaccounts_paged_async]
+import com.google.cloud.billing.v1.BillingAccount;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.ListBillingAccountsRequest;
+import com.google.cloud.billing.v1.ListBillingAccountsResponse;
+import com.google.common.base.Strings;
+
+public class AsyncListBillingAccountsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListBillingAccountsPaged();
+  }
+
+  public static void asyncListBillingAccountsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      ListBillingAccountsRequest request =
+          ListBillingAccountsRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .setFilter("filter-1274492040")
+              .build();
+      while (true) {
+        ListBillingAccountsResponse response =
+            cloudBillingClient.listBillingAccountsCallable().call(request);
+        for (BillingAccount element : response.getBillingAccountsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_listbillingaccounts_paged_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccounts.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccounts.java
new file mode 100644
index 00000000..02b6a6e0
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccounts.java
@@ -0,0 +1,46 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_listbillingaccounts_sync]
+import com.google.cloud.billing.v1.BillingAccount;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.ListBillingAccountsRequest;
+
+public class SyncListBillingAccounts {
+
+  public static void main(String[] args) throws Exception {
+    syncListBillingAccounts();
+  }
+
+  public static void syncListBillingAccounts() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      ListBillingAccountsRequest request =
+          ListBillingAccountsRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .setFilter("filter-1274492040")
+              .build();
+      for (BillingAccount element : cloudBillingClient.listBillingAccounts(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_listbillingaccounts_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccountsNoargs.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccountsNoargs.java
new file mode 100644
index 00000000..ae1e91d3
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccountsNoargs.java
@@ -0,0 +1,39 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_listbillingaccounts_noargs_sync]
+import com.google.cloud.billing.v1.BillingAccount;
+import com.google.cloud.billing.v1.CloudBillingClient;
+
+public class SyncListBillingAccountsNoargs {
+
+  public static void main(String[] args) throws Exception {
+    syncListBillingAccountsNoargs();
+  }
+
+  public static void syncListBillingAccountsNoargs() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      for (BillingAccount element : cloudBillingClient.listBillingAccounts().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_listbillingaccounts_noargs_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfo.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfo.java
new file mode 100644
index 00000000..ef970e85
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfo.java
@@ -0,0 +1,51 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_listprojectbillinginfo_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.ListProjectBillingInfoRequest;
+import com.google.cloud.billing.v1.ProjectBillingInfo;
+
+public class AsyncListProjectBillingInfo {
+
+  public static void main(String[] args) throws Exception {
+    asyncListProjectBillingInfo();
+  }
+
+  public static void asyncListProjectBillingInfo() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      ListProjectBillingInfoRequest request =
+          ListProjectBillingInfoRequest.newBuilder()
+              .setName(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future =
+          cloudBillingClient.listProjectBillingInfoPagedCallable().futureCall(request);
+      // Do something.
+      for (ProjectBillingInfo element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_listprojectbillinginfo_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java
new file mode 100644
index 00000000..2b49388e
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java
@@ -0,0 +1,59 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_listprojectbillinginfo_paged_async]
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.ListProjectBillingInfoRequest;
+import com.google.cloud.billing.v1.ListProjectBillingInfoResponse;
+import com.google.cloud.billing.v1.ProjectBillingInfo;
+import com.google.common.base.Strings;
+
+public class AsyncListProjectBillingInfoPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListProjectBillingInfoPaged();
+  }
+
+  public static void asyncListProjectBillingInfoPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      ListProjectBillingInfoRequest request =
+          ListProjectBillingInfoRequest.newBuilder()
+              .setName(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        ListProjectBillingInfoResponse response =
+            cloudBillingClient.listProjectBillingInfoCallable().call(request);
+        for (ProjectBillingInfo element : response.getProjectBillingInfoList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_listprojectbillinginfo_paged_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfo.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfo.java
new file mode 100644
index 00000000..e976f8f2
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfo.java
@@ -0,0 +1,48 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_listprojectbillinginfo_sync]
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.ListProjectBillingInfoRequest;
+import com.google.cloud.billing.v1.ProjectBillingInfo;
+
+public class SyncListProjectBillingInfo {
+
+  public static void main(String[] args) throws Exception {
+    syncListProjectBillingInfo();
+  }
+
+  public static void syncListProjectBillingInfo() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      ListProjectBillingInfoRequest request =
+          ListProjectBillingInfoRequest.newBuilder()
+              .setName(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (ProjectBillingInfo element :
+          cloudBillingClient.listProjectBillingInfo(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_listprojectbillinginfo_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java
new file mode 100644
index 00000000..40a59519
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_listprojectbillinginfo_billingaccountname_sync]
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.ProjectBillingInfo;
+
+public class SyncListProjectBillingInfoBillingaccountname {
+
+  public static void main(String[] args) throws Exception {
+    syncListProjectBillingInfoBillingaccountname();
+  }
+
+  public static void syncListProjectBillingInfoBillingaccountname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      BillingAccountName name = BillingAccountName.of("[BILLING_ACCOUNT]");
+      for (ProjectBillingInfo element :
+          cloudBillingClient.listProjectBillingInfo(name).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_listprojectbillinginfo_billingaccountname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoString.java
new file mode 100644
index 00000000..18723263
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoString.java
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_listprojectbillinginfo_string_sync]
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.ProjectBillingInfo;
+
+public class SyncListProjectBillingInfoString {
+
+  public static void main(String[] args) throws Exception {
+    syncListProjectBillingInfoString();
+  }
+
+  public static void syncListProjectBillingInfoString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      String name = BillingAccountName.of("[BILLING_ACCOUNT]").toString();
+      for (ProjectBillingInfo element :
+          cloudBillingClient.listProjectBillingInfo(name).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_listprojectbillinginfo_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/AsyncSetIamPolicy.java
new file mode 100644
index 00000000..6e2cb5f4
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/AsyncSetIamPolicy.java
@@ -0,0 +1,49 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_setiampolicy_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncSetIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    asyncSetIamPolicy();
+  }
+
+  public static void asyncSetIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future = cloudBillingClient.setIamPolicyCallable().futureCall(request);
+      // Do something.
+      Policy response = future.get();
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_setiampolicy_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicy.java
new file mode 100644
index 00000000..6aab84a5
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicy.java
@@ -0,0 +1,46 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_setiampolicy_sync]
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.iam.v1.Policy;
+import com.google.iam.v1.SetIamPolicyRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncSetIamPolicy {
+
+  public static void main(String[] args) throws Exception {
+    syncSetIamPolicy();
+  }
+
+  public static void syncSetIamPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      SetIamPolicyRequest request =
+          SetIamPolicyRequest.newBuilder()
+              .setResource(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+              .setPolicy(Policy.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      Policy response = cloudBillingClient.setIamPolicy(request);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_setiampolicy_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
new file mode 100644
index 00000000..9cca970a
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
@@ -0,0 +1,41 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_setiampolicy_resourcenamepolicy_sync]
+import com.google.api.resourcenames.ResourceName;
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.iam.v1.Policy;
+
+public class SyncSetIamPolicyResourcenamePolicy {
+
+  public static void main(String[] args) throws Exception {
+    syncSetIamPolicyResourcenamePolicy();
+  }
+
+  public static void syncSetIamPolicyResourcenamePolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      ResourceName resource = BillingAccountName.of("[BILLING_ACCOUNT]");
+      Policy policy = Policy.newBuilder().build();
+      Policy response = cloudBillingClient.setIamPolicy(resource, policy);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_setiampolicy_resourcenamepolicy_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
new file mode 100644
index 00000000..2146a4b5
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
@@ -0,0 +1,40 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_setiampolicy_stringpolicy_sync]
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.iam.v1.Policy;
+
+public class SyncSetIamPolicyStringPolicy {
+
+  public static void main(String[] args) throws Exception {
+    syncSetIamPolicyStringPolicy();
+  }
+
+  public static void syncSetIamPolicyStringPolicy() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      String resource = BillingAccountName.of("[BILLING_ACCOUNT]").toString();
+      Policy policy = Policy.newBuilder().build();
+      Policy response = cloudBillingClient.setIamPolicy(resource, policy);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_setiampolicy_stringpolicy_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/AsyncTestIamPermissions.java
new file mode 100644
index 00000000..55d80c9f
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/AsyncTestIamPermissions.java
@@ -0,0 +1,49 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_testiampermissions_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
+import java.util.ArrayList;
+
+public class AsyncTestIamPermissions {
+
+  public static void main(String[] args) throws Exception {
+    asyncTestIamPermissions();
+  }
+
+  public static void asyncTestIamPermissions() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      ApiFuture future =
+          cloudBillingClient.testIamPermissionsCallable().futureCall(request);
+      // Do something.
+      TestIamPermissionsResponse response = future.get();
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_testiampermissions_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissions.java
new file mode 100644
index 00000000..e62adb83
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissions.java
@@ -0,0 +1,45 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_testiampermissions_sync]
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.iam.v1.TestIamPermissionsRequest;
+import com.google.iam.v1.TestIamPermissionsResponse;
+import java.util.ArrayList;
+
+public class SyncTestIamPermissions {
+
+  public static void main(String[] args) throws Exception {
+    syncTestIamPermissions();
+  }
+
+  public static void syncTestIamPermissions() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      TestIamPermissionsRequest request =
+          TestIamPermissionsRequest.newBuilder()
+              .setResource(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+              .addAllPermissions(new ArrayList())
+              .build();
+      TestIamPermissionsResponse response = cloudBillingClient.testIamPermissions(request);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_testiampermissions_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
new file mode 100644
index 00000000..de67d971
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
@@ -0,0 +1,44 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_testiampermissions_resourcenameliststring_sync]
+import com.google.api.resourcenames.ResourceName;
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.iam.v1.TestIamPermissionsResponse;
+import java.util.ArrayList;
+import java.util.List;
+
+public class SyncTestIamPermissionsResourcenameListstring {
+
+  public static void main(String[] args) throws Exception {
+    syncTestIamPermissionsResourcenameListstring();
+  }
+
+  public static void syncTestIamPermissionsResourcenameListstring() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      ResourceName resource = BillingAccountName.of("[BILLING_ACCOUNT]");
+      List permissions = new ArrayList<>();
+      TestIamPermissionsResponse response =
+          cloudBillingClient.testIamPermissions(resource, permissions);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_testiampermissions_resourcenameliststring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
new file mode 100644
index 00000000..b632396c
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
@@ -0,0 +1,43 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_testiampermissions_stringliststring_sync]
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.iam.v1.TestIamPermissionsResponse;
+import java.util.ArrayList;
+import java.util.List;
+
+public class SyncTestIamPermissionsStringListstring {
+
+  public static void main(String[] args) throws Exception {
+    syncTestIamPermissionsStringListstring();
+  }
+
+  public static void syncTestIamPermissionsStringListstring() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      String resource = BillingAccountName.of("[BILLING_ACCOUNT]").toString();
+      List permissions = new ArrayList<>();
+      TestIamPermissionsResponse response =
+          cloudBillingClient.testIamPermissions(resource, permissions);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_testiampermissions_stringliststring_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/AsyncUpdateBillingAccount.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/AsyncUpdateBillingAccount.java
new file mode 100644
index 00000000..d8c693d3
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/AsyncUpdateBillingAccount.java
@@ -0,0 +1,50 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_updatebillingaccount_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.billing.v1.BillingAccount;
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.UpdateBillingAccountRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateBillingAccount {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateBillingAccount();
+  }
+
+  public static void asyncUpdateBillingAccount() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      UpdateBillingAccountRequest request =
+          UpdateBillingAccountRequest.newBuilder()
+              .setName(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+              .setAccount(BillingAccount.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future =
+          cloudBillingClient.updateBillingAccountCallable().futureCall(request);
+      // Do something.
+      BillingAccount response = future.get();
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_updatebillingaccount_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccount.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccount.java
new file mode 100644
index 00000000..bc824e77
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccount.java
@@ -0,0 +1,46 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_updatebillingaccount_sync]
+import com.google.cloud.billing.v1.BillingAccount;
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.UpdateBillingAccountRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateBillingAccount {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateBillingAccount();
+  }
+
+  public static void syncUpdateBillingAccount() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      UpdateBillingAccountRequest request =
+          UpdateBillingAccountRequest.newBuilder()
+              .setName(BillingAccountName.of("[BILLING_ACCOUNT]").toString())
+              .setAccount(BillingAccount.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      BillingAccount response = cloudBillingClient.updateBillingAccount(request);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_updatebillingaccount_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java
new file mode 100644
index 00000000..b8df871b
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java
@@ -0,0 +1,40 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_updatebillingaccount_billingaccountnamebillingaccount_sync]
+import com.google.cloud.billing.v1.BillingAccount;
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+
+public class SyncUpdateBillingAccountBillingaccountnameBillingaccount {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateBillingAccountBillingaccountnameBillingaccount();
+  }
+
+  public static void syncUpdateBillingAccountBillingaccountnameBillingaccount() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      BillingAccountName name = BillingAccountName.of("[BILLING_ACCOUNT]");
+      BillingAccount account = BillingAccount.newBuilder().build();
+      BillingAccount response = cloudBillingClient.updateBillingAccount(name, account);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_updatebillingaccount_billingaccountnamebillingaccount_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java
new file mode 100644
index 00000000..ef7241f3
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java
@@ -0,0 +1,40 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_updatebillingaccount_stringbillingaccount_sync]
+import com.google.cloud.billing.v1.BillingAccount;
+import com.google.cloud.billing.v1.BillingAccountName;
+import com.google.cloud.billing.v1.CloudBillingClient;
+
+public class SyncUpdateBillingAccountStringBillingaccount {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateBillingAccountStringBillingaccount();
+  }
+
+  public static void syncUpdateBillingAccountStringBillingaccount() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      String name = BillingAccountName.of("[BILLING_ACCOUNT]").toString();
+      BillingAccount account = BillingAccount.newBuilder().build();
+      BillingAccount response = cloudBillingClient.updateBillingAccount(name, account);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_updatebillingaccount_stringbillingaccount_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java
new file mode 100644
index 00000000..e8955a7c
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java
@@ -0,0 +1,47 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_updateprojectbillinginfo_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.ProjectBillingInfo;
+import com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest;
+
+public class AsyncUpdateProjectBillingInfo {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateProjectBillingInfo();
+  }
+
+  public static void asyncUpdateProjectBillingInfo() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      UpdateProjectBillingInfoRequest request =
+          UpdateProjectBillingInfoRequest.newBuilder()
+              .setName("name3373707")
+              .setProjectBillingInfo(ProjectBillingInfo.newBuilder().build())
+              .build();
+      ApiFuture future =
+          cloudBillingClient.updateProjectBillingInfoCallable().futureCall(request);
+      // Do something.
+      ProjectBillingInfo response = future.get();
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_updateprojectbillinginfo_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java
new file mode 100644
index 00000000..0f5a1cac
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java
@@ -0,0 +1,43 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_updateprojectbillinginfo_sync]
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.ProjectBillingInfo;
+import com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest;
+
+public class SyncUpdateProjectBillingInfo {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateProjectBillingInfo();
+  }
+
+  public static void syncUpdateProjectBillingInfo() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      UpdateProjectBillingInfoRequest request =
+          UpdateProjectBillingInfoRequest.newBuilder()
+              .setName("name3373707")
+              .setProjectBillingInfo(ProjectBillingInfo.newBuilder().build())
+              .build();
+      ProjectBillingInfo response = cloudBillingClient.updateProjectBillingInfo(request);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_updateprojectbillinginfo_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java
new file mode 100644
index 00000000..d46b664c
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java
@@ -0,0 +1,40 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingclient_updateprojectbillinginfo_stringprojectbillinginfo_sync]
+import com.google.cloud.billing.v1.CloudBillingClient;
+import com.google.cloud.billing.v1.ProjectBillingInfo;
+
+public class SyncUpdateProjectBillingInfoStringProjectbillinginfo {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateProjectBillingInfoStringProjectbillinginfo();
+  }
+
+  public static void syncUpdateProjectBillingInfoStringProjectbillinginfo() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudBillingClient cloudBillingClient = CloudBillingClient.create()) {
+      String name = "name3373707";
+      ProjectBillingInfo projectBillingInfo = ProjectBillingInfo.newBuilder().build();
+      ProjectBillingInfo response =
+          cloudBillingClient.updateProjectBillingInfo(name, projectBillingInfo);
+    }
+  }
+}
+// [END billing_v1_generated_cloudbillingclient_updateprojectbillinginfo_stringprojectbillinginfo_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java
new file mode 100644
index 00000000..5ddb80f3
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java
@@ -0,0 +1,45 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudbillingsettings_getbillingaccount_sync]
+import com.google.cloud.billing.v1.CloudBillingSettings;
+import java.time.Duration;
+
+public class SyncGetBillingAccount {
+
+  public static void main(String[] args) throws Exception {
+    syncGetBillingAccount();
+  }
+
+  public static void syncGetBillingAccount() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    CloudBillingSettings.Builder cloudBillingSettingsBuilder = CloudBillingSettings.newBuilder();
+    cloudBillingSettingsBuilder
+        .getBillingAccountSettings()
+        .setRetrySettings(
+            cloudBillingSettingsBuilder
+                .getBillingAccountSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    CloudBillingSettings cloudBillingSettings = cloudBillingSettingsBuilder.build();
+  }
+}
+// [END billing_v1_generated_cloudbillingsettings_getbillingaccount_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider.java
new file mode 100644
index 00000000..1ea7e9b7
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider.java
@@ -0,0 +1,41 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudcatalogclient_create_setcredentialsprovider_sync]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.cloud.billing.v1.CloudCatalogClient;
+import com.google.cloud.billing.v1.CloudCatalogSettings;
+import com.google.cloud.billing.v1.myCredentials;
+
+public class SyncCreateSetCredentialsProvider {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider();
+  }
+
+  public static void syncCreateSetCredentialsProvider() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    CloudCatalogSettings cloudCatalogSettings =
+        CloudCatalogSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create(cloudCatalogSettings);
+  }
+}
+// [END billing_v1_generated_cloudcatalogclient_create_setcredentialsprovider_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider1.java
new file mode 100644
index 00000000..41b4ab8e
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider1.java
@@ -0,0 +1,40 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudcatalogclient_create_setcredentialsprovider1_sync]
+import com.google.cloud.billing.v1.CloudCatalogClient;
+import com.google.cloud.billing.v1.CloudCatalogSettings;
+
+public class SyncCreateSetCredentialsProvider1 {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider1();
+  }
+
+  public static void syncCreateSetCredentialsProvider1() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    CloudCatalogSettings cloudCatalogSettings =
+        CloudCatalogSettings.newBuilder()
+            .setTransportChannelProvider(
+                CloudCatalogSettings.defaultHttpJsonTransportProviderBuilder().build())
+            .build();
+    CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create(cloudCatalogSettings);
+  }
+}
+// [END billing_v1_generated_cloudcatalogclient_create_setcredentialsprovider1_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetEndpoint.java
new file mode 100644
index 00000000..509630bc
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetEndpoint.java
@@ -0,0 +1,38 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudcatalogclient_create_setendpoint_sync]
+import com.google.cloud.billing.v1.CloudCatalogClient;
+import com.google.cloud.billing.v1.CloudCatalogSettings;
+import com.google.cloud.billing.v1.myEndpoint;
+
+public class SyncCreateSetEndpoint {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetEndpoint();
+  }
+
+  public static void syncCreateSetEndpoint() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    CloudCatalogSettings cloudCatalogSettings =
+        CloudCatalogSettings.newBuilder().setEndpoint(myEndpoint).build();
+    CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create(cloudCatalogSettings);
+  }
+}
+// [END billing_v1_generated_cloudcatalogclient_create_setendpoint_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServices.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServices.java
new file mode 100644
index 00000000..01002514
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServices.java
@@ -0,0 +1,49 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudcatalogclient_listservices_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.billing.v1.CloudCatalogClient;
+import com.google.cloud.billing.v1.ListServicesRequest;
+import com.google.cloud.billing.v1.Service;
+
+public class AsyncListServices {
+
+  public static void main(String[] args) throws Exception {
+    asyncListServices();
+  }
+
+  public static void asyncListServices() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create()) {
+      ListServicesRequest request =
+          ListServicesRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future =
+          cloudCatalogClient.listServicesPagedCallable().futureCall(request);
+      // Do something.
+      for (Service element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudcatalogclient_listservices_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServicesPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServicesPaged.java
new file mode 100644
index 00000000..cff8ea78
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServicesPaged.java
@@ -0,0 +1,56 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudcatalogclient_listservices_paged_async]
+import com.google.cloud.billing.v1.CloudCatalogClient;
+import com.google.cloud.billing.v1.ListServicesRequest;
+import com.google.cloud.billing.v1.ListServicesResponse;
+import com.google.cloud.billing.v1.Service;
+import com.google.common.base.Strings;
+
+public class AsyncListServicesPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListServicesPaged();
+  }
+
+  public static void asyncListServicesPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create()) {
+      ListServicesRequest request =
+          ListServicesRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        ListServicesResponse response = cloudCatalogClient.listServicesCallable().call(request);
+        for (Service element : response.getServicesList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudcatalogclient_listservices_paged_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServices.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServices.java
new file mode 100644
index 00000000..2e011ead
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServices.java
@@ -0,0 +1,45 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudcatalogclient_listservices_sync]
+import com.google.cloud.billing.v1.CloudCatalogClient;
+import com.google.cloud.billing.v1.ListServicesRequest;
+import com.google.cloud.billing.v1.Service;
+
+public class SyncListServices {
+
+  public static void main(String[] args) throws Exception {
+    syncListServices();
+  }
+
+  public static void syncListServices() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create()) {
+      ListServicesRequest request =
+          ListServicesRequest.newBuilder()
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (Service element : cloudCatalogClient.listServices(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudcatalogclient_listservices_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServicesNoargs.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServicesNoargs.java
new file mode 100644
index 00000000..51705975
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServicesNoargs.java
@@ -0,0 +1,39 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudcatalogclient_listservices_noargs_sync]
+import com.google.cloud.billing.v1.CloudCatalogClient;
+import com.google.cloud.billing.v1.Service;
+
+public class SyncListServicesNoargs {
+
+  public static void main(String[] args) throws Exception {
+    syncListServicesNoargs();
+  }
+
+  public static void syncListServicesNoargs() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create()) {
+      for (Service element : cloudCatalogClient.listServices().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudcatalogclient_listservices_noargs_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkus.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkus.java
new file mode 100644
index 00000000..295ee8ed
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkus.java
@@ -0,0 +1,54 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudcatalogclient_listskus_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.billing.v1.CloudCatalogClient;
+import com.google.cloud.billing.v1.ListSkusRequest;
+import com.google.cloud.billing.v1.ServiceName;
+import com.google.cloud.billing.v1.Sku;
+import com.google.protobuf.Timestamp;
+
+public class AsyncListSkus {
+
+  public static void main(String[] args) throws Exception {
+    asyncListSkus();
+  }
+
+  public static void asyncListSkus() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create()) {
+      ListSkusRequest request =
+          ListSkusRequest.newBuilder()
+              .setParent(ServiceName.of("[SERVICE]").toString())
+              .setStartTime(Timestamp.newBuilder().build())
+              .setEndTime(Timestamp.newBuilder().build())
+              .setCurrencyCode("currencyCode1004773790")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future = cloudCatalogClient.listSkusPagedCallable().futureCall(request);
+      // Do something.
+      for (Sku element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudcatalogclient_listskus_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkusPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkusPaged.java
new file mode 100644
index 00000000..1c3c2212
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkusPaged.java
@@ -0,0 +1,62 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudcatalogclient_listskus_paged_async]
+import com.google.cloud.billing.v1.CloudCatalogClient;
+import com.google.cloud.billing.v1.ListSkusRequest;
+import com.google.cloud.billing.v1.ListSkusResponse;
+import com.google.cloud.billing.v1.ServiceName;
+import com.google.cloud.billing.v1.Sku;
+import com.google.common.base.Strings;
+import com.google.protobuf.Timestamp;
+
+public class AsyncListSkusPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListSkusPaged();
+  }
+
+  public static void asyncListSkusPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create()) {
+      ListSkusRequest request =
+          ListSkusRequest.newBuilder()
+              .setParent(ServiceName.of("[SERVICE]").toString())
+              .setStartTime(Timestamp.newBuilder().build())
+              .setEndTime(Timestamp.newBuilder().build())
+              .setCurrencyCode("currencyCode1004773790")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        ListSkusResponse response = cloudCatalogClient.listSkusCallable().call(request);
+        for (Sku element : response.getSkusList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudcatalogclient_listskus_paged_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkus.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkus.java
new file mode 100644
index 00000000..34df60c8
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkus.java
@@ -0,0 +1,51 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudcatalogclient_listskus_sync]
+import com.google.cloud.billing.v1.CloudCatalogClient;
+import com.google.cloud.billing.v1.ListSkusRequest;
+import com.google.cloud.billing.v1.ServiceName;
+import com.google.cloud.billing.v1.Sku;
+import com.google.protobuf.Timestamp;
+
+public class SyncListSkus {
+
+  public static void main(String[] args) throws Exception {
+    syncListSkus();
+  }
+
+  public static void syncListSkus() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create()) {
+      ListSkusRequest request =
+          ListSkusRequest.newBuilder()
+              .setParent(ServiceName.of("[SERVICE]").toString())
+              .setStartTime(Timestamp.newBuilder().build())
+              .setEndTime(Timestamp.newBuilder().build())
+              .setCurrencyCode("currencyCode1004773790")
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (Sku element : cloudCatalogClient.listSkus(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudcatalogclient_listskus_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusServicename.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusServicename.java
new file mode 100644
index 00000000..715f38b6
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusServicename.java
@@ -0,0 +1,41 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudcatalogclient_listskus_servicename_sync]
+import com.google.cloud.billing.v1.CloudCatalogClient;
+import com.google.cloud.billing.v1.ServiceName;
+import com.google.cloud.billing.v1.Sku;
+
+public class SyncListSkusServicename {
+
+  public static void main(String[] args) throws Exception {
+    syncListSkusServicename();
+  }
+
+  public static void syncListSkusServicename() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create()) {
+      ServiceName parent = ServiceName.of("[SERVICE]");
+      for (Sku element : cloudCatalogClient.listSkus(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudcatalogclient_listskus_servicename_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusString.java
new file mode 100644
index 00000000..386319f9
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusString.java
@@ -0,0 +1,41 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudcatalogclient_listskus_string_sync]
+import com.google.cloud.billing.v1.CloudCatalogClient;
+import com.google.cloud.billing.v1.ServiceName;
+import com.google.cloud.billing.v1.Sku;
+
+public class SyncListSkusString {
+
+  public static void main(String[] args) throws Exception {
+    syncListSkusString();
+  }
+
+  public static void syncListSkusString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (CloudCatalogClient cloudCatalogClient = CloudCatalogClient.create()) {
+      String parent = ServiceName.of("[SERVICE]").toString();
+      for (Sku element : cloudCatalogClient.listSkus(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END billing_v1_generated_cloudcatalogclient_listskus_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java
new file mode 100644
index 00000000..19d30147
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java
@@ -0,0 +1,45 @@
+/*
+ * 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.
+ * 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.samples;
+
+// [START billing_v1_generated_cloudcatalogsettings_listservices_sync]
+import com.google.cloud.billing.v1.CloudCatalogSettings;
+import java.time.Duration;
+
+public class SyncListServices {
+
+  public static void main(String[] args) throws Exception {
+    syncListServices();
+  }
+
+  public static void syncListServices() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    CloudCatalogSettings.Builder cloudCatalogSettingsBuilder = CloudCatalogSettings.newBuilder();
+    cloudCatalogSettingsBuilder
+        .listServicesSettings()
+        .setRetrySettings(
+            cloudCatalogSettingsBuilder
+                .listServicesSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    CloudCatalogSettings cloudCatalogSettings = cloudCatalogSettingsBuilder.build();
+  }
+}
+// [END billing_v1_generated_cloudcatalogsettings_listservices_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java
new file mode 100644
index 00000000..33e52bda
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java
@@ -0,0 +1,46 @@
+/*
+ * 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.
+ * 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.stub.samples;
+
+// [START billing_v1_generated_cloudbillingstubsettings_getbillingaccount_sync]
+import com.google.cloud.billing.v1.stub.CloudBillingStubSettings;
+import java.time.Duration;
+
+public class SyncGetBillingAccount {
+
+  public static void main(String[] args) throws Exception {
+    syncGetBillingAccount();
+  }
+
+  public static void syncGetBillingAccount() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    CloudBillingStubSettings.Builder cloudBillingSettingsBuilder =
+        CloudBillingStubSettings.newBuilder();
+    cloudBillingSettingsBuilder
+        .getBillingAccountSettings()
+        .setRetrySettings(
+            cloudBillingSettingsBuilder
+                .getBillingAccountSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    CloudBillingStubSettings cloudBillingSettings = cloudBillingSettingsBuilder.build();
+  }
+}
+// [END billing_v1_generated_cloudbillingstubsettings_getbillingaccount_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java
new file mode 100644
index 00000000..5f68fb07
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java
@@ -0,0 +1,46 @@
+/*
+ * 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.
+ * 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.stub.samples;
+
+// [START billing_v1_generated_cloudcatalogstubsettings_listservices_sync]
+import com.google.cloud.billing.v1.stub.CloudCatalogStubSettings;
+import java.time.Duration;
+
+public class SyncListServices {
+
+  public static void main(String[] args) throws Exception {
+    syncListServices();
+  }
+
+  public static void syncListServices() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    CloudCatalogStubSettings.Builder cloudCatalogSettingsBuilder =
+        CloudCatalogStubSettings.newBuilder();
+    cloudCatalogSettingsBuilder
+        .listServicesSettings()
+        .setRetrySettings(
+            cloudCatalogSettingsBuilder
+                .listServicesSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    CloudCatalogStubSettings cloudCatalogSettings = cloudCatalogSettingsBuilder.build();
+  }
+}
+// [END billing_v1_generated_cloudcatalogstubsettings_listservices_sync]
diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java
deleted file mode 100644
index c75795b9..00000000
--- a/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java
deleted file mode 100644
index cfc74942..00000000
--- a/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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java
deleted file mode 100644
index c363f300..00000000
--- a/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(); -} From 65696685da59095c763ceeb181df17a9d4c00271 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:56:21 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../cloud/billing/v1/CloudBillingClient.java | 48 +- .../billing/v1/CloudBillingSettings.java | 16 +- .../cloud/billing/v1/CloudCatalogClient.java | 16 +- .../billing/v1/CloudCatalogSettings.java | 7 +- .../cloud/billing/v1/gapic_metadata.json | 0 .../google/cloud/billing/v1/package-info.java | 0 .../billing/v1/stub/CloudBillingStub.java | 0 .../v1/stub/CloudBillingStubSettings.java | 36 +- .../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 | 1119 +++++++++++------ .../cloud/billing/v1/CloudCatalogGrpc.java | 483 +++++++ .../cloud/billing/v1/CloudCatalogGrpc.java | 399 ------ .../cloud/billing/v1/CloudBillingProto.java | 270 ---- .../cloud/billing/v1/CloudCatalogProto.java | 249 ---- .../v1/GetBillingAccountRequestOrBuilder.java | 31 - .../cloud/billing/v1/AggregationInfo.java | 555 ++++---- .../billing/v1/AggregationInfoOrBuilder.java | 31 +- .../cloud/billing/v1/BillingAccount.java | 498 ++++---- .../cloud/billing/v1/BillingAccountName.java | 0 .../billing/v1/BillingAccountOrBuilder.java | 48 +- .../com/google/cloud/billing/v1/Category.java | 531 ++++---- .../cloud/billing/v1/CategoryOrBuilder.java | 54 +- .../cloud/billing/v1/CloudBillingProto.java | 295 +++++ .../cloud/billing/v1/CloudCatalogProto.java | 292 +++++ .../v1/CreateBillingAccountRequest.java | 386 +++--- .../CreateBillingAccountRequestOrBuilder.java | 38 +- .../billing/v1/GetBillingAccountRequest.java | 339 ++--- .../v1/GetBillingAccountRequestOrBuilder.java | 56 + .../v1/GetProjectBillingInfoRequest.java | 314 +++-- ...GetProjectBillingInfoRequestOrBuilder.java | 27 +- .../v1/ListBillingAccountsRequest.java | 427 ++++--- .../ListBillingAccountsRequestOrBuilder.java | 39 +- .../v1/ListBillingAccountsResponse.java | 453 ++++--- .../ListBillingAccountsResponseOrBuilder.java | 45 +- .../v1/ListProjectBillingInfoRequest.java | 455 ++++--- ...istProjectBillingInfoRequestOrBuilder.java | 47 +- .../v1/ListProjectBillingInfoResponse.java | 452 ++++--- ...stProjectBillingInfoResponseOrBuilder.java | 45 +- .../cloud/billing/v1/ListServicesRequest.java | 338 ++--- .../v1/ListServicesRequestOrBuilder.java | 30 +- .../billing/v1/ListServicesResponse.java | 456 ++++--- .../v1/ListServicesResponseOrBuilder.java | 46 +- .../cloud/billing/v1/ListSkusRequest.java | 699 ++++++---- .../billing/v1/ListSkusRequestOrBuilder.java | 72 +- .../cloud/billing/v1/ListSkusResponse.java | 454 ++++--- .../billing/v1/ListSkusResponseOrBuilder.java | 46 +- .../cloud/billing/v1/PricingExpression.java | 1117 +++++++++------- .../v1/PricingExpressionOrBuilder.java | 75 +- .../google/cloud/billing/v1/PricingInfo.java | 636 ++++++---- .../billing/v1/PricingInfoOrBuilder.java | 54 +- .../cloud/billing/v1/ProjectBillingInfo.java | 498 ++++---- .../v1/ProjectBillingInfoOrBuilder.java | 48 +- .../com/google/cloud/billing/v1/Service.java | 531 ++++---- .../google/cloud/billing/v1/ServiceName.java | 0 .../cloud/billing/v1/ServiceOrBuilder.java | 54 +- .../java/com/google/cloud/billing/v1/Sku.java | 890 ++++++++----- .../google/cloud/billing/v1/SkuOrBuilder.java | 98 +- .../v1/UpdateBillingAccountRequest.java | 585 +++++---- .../UpdateBillingAccountRequestOrBuilder.java | 63 +- .../v1/UpdateProjectBillingInfoRequest.java | 418 +++--- ...ateProjectBillingInfoRequestOrBuilder.java | 35 +- .../cloud/billing/v1/cloud_billing.proto | 0 .../cloud/billing/v1/cloud_catalog.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateBillingAccount.java | 0 .../SyncCreateBillingAccount.java | 0 ...yncCreateBillingAccountBillingaccount.java | 0 .../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 | 6 +- ...ateBillingAccountStringBillingaccount.java | 0 .../AsyncUpdateProjectBillingInfo.java | 0 .../SyncUpdateProjectBillingInfo.java | 0 ...ctBillingInfoStringProjectbillinginfo.java | 6 +- .../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 .../listskus/AsyncListSkus.java | 0 .../listskus/AsyncListSkusPaged.java | 0 .../listskus/SyncListSkus.java | 0 .../listskus/SyncListSkusServicename.java | 0 .../listskus/SyncListSkusString.java | 0 .../listservices/SyncListServices.java | 0 .../SyncGetBillingAccount.java | 0 .../listservices/SyncListServices.java | 0 137 files changed, 9405 insertions(+), 5959 deletions(-) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java (97%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java (96%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java (97%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java (96%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java (96%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java (99%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java (99%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java (100%) rename {owl-bot-staging/v1/google-cloud-billing => google-cloud-billing}/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java (100%) rename {owl-bot-staging/v1/grpc-google-cloud-billing-v1 => grpc-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java (54%) create mode 100644 grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/BillingAccount.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/Category.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java (69%) create mode 100644 proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java create mode 100644 proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java (65%) create mode 100644 proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/PricingExpression.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java (82%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/PricingInfo.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java (84%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/Service.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ServiceName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/Sku.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/proto/google/cloud/billing/v1/cloud_billing.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-billing-v1 => proto-google-cloud-billing-v1}/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/AsyncCreateBillingAccount.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccount.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccountBillingaccount.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/AsyncGetBillingAccount.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccount.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountBillingaccountname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/AsyncGetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyResourcename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/AsyncGetProjectBillingInfo.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfo.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfoString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccounts.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccountsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccounts.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccountsNoargs.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfo.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfo.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/AsyncSetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyStringPolicy.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/AsyncTestIamPermissions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissions.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsStringListstring.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/AsyncUpdateBillingAccount.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccount.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServices.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServicesPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServices.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServicesNoargs.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkus.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkusPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkus.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusServicename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java (100%) diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java index 3a9fee5d..6ffa5640 100644 --- a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java +++ b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java @@ -61,13 +61,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -889,7 +889,7 @@ public final ProjectBillingInfo getProjectBillingInfo(GetProjectBillingInfoReque * the name of an * *
    - *
  • open* billing account. + *
  • open* billing account. *
* *

Sample code: @@ -950,7 +950,7 @@ public final ProjectBillingInfo updateProjectBillingInfo( * the name of an * *

    - *
  • open* billing account. + *
  • open* billing account. *
* *

Sample code: @@ -1005,7 +1005,7 @@ public final ProjectBillingInfo updateProjectBillingInfo( * the name of an * *

    - *
  • open* billing account. + *
  • open* billing account. *
* *

Sample code: @@ -1428,8 +1428,11 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListBillingAccountsPagedResponse extends AbstractPagedListResponse< - ListBillingAccountsRequest, ListBillingAccountsResponse, BillingAccount, - ListBillingAccountsPage, ListBillingAccountsFixedSizeCollection> { + ListBillingAccountsRequest, + ListBillingAccountsResponse, + BillingAccount, + ListBillingAccountsPage, + ListBillingAccountsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -1450,7 +1453,9 @@ private ListBillingAccountsPagedResponse(ListBillingAccountsPage page) { public static class ListBillingAccountsPage extends AbstractPage< - ListBillingAccountsRequest, ListBillingAccountsResponse, BillingAccount, + ListBillingAccountsRequest, + ListBillingAccountsResponse, + BillingAccount, ListBillingAccountsPage> { private ListBillingAccountsPage( @@ -1483,8 +1488,11 @@ public ApiFuture createPageAsync( public static class ListBillingAccountsFixedSizeCollection extends AbstractFixedSizeCollection< - ListBillingAccountsRequest, ListBillingAccountsResponse, BillingAccount, - ListBillingAccountsPage, ListBillingAccountsFixedSizeCollection> { + ListBillingAccountsRequest, + ListBillingAccountsResponse, + BillingAccount, + ListBillingAccountsPage, + ListBillingAccountsFixedSizeCollection> { private ListBillingAccountsFixedSizeCollection( List pages, int collectionSize) { @@ -1504,8 +1512,11 @@ protected ListBillingAccountsFixedSizeCollection createCollection( public static class ListProjectBillingInfoPagedResponse extends AbstractPagedListResponse< - ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ProjectBillingInfo, - ListProjectBillingInfoPage, ListProjectBillingInfoFixedSizeCollection> { + ListProjectBillingInfoRequest, + ListProjectBillingInfoResponse, + ProjectBillingInfo, + ListProjectBillingInfoPage, + ListProjectBillingInfoFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -1527,7 +1538,9 @@ private ListProjectBillingInfoPagedResponse(ListProjectBillingInfoPage page) { public static class ListProjectBillingInfoPage extends AbstractPage< - ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ProjectBillingInfo, + ListProjectBillingInfoRequest, + ListProjectBillingInfoResponse, + ProjectBillingInfo, ListProjectBillingInfoPage> { private ListProjectBillingInfoPage( @@ -1563,8 +1576,11 @@ public ApiFuture createPageAsync( public static class ListProjectBillingInfoFixedSizeCollection extends AbstractFixedSizeCollection< - ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, ProjectBillingInfo, - ListProjectBillingInfoPage, ListProjectBillingInfoFixedSizeCollection> { + ListProjectBillingInfoRequest, + ListProjectBillingInfoResponse, + ProjectBillingInfo, + ListProjectBillingInfoPage, + ListProjectBillingInfoFixedSizeCollection> { private ListProjectBillingInfoFixedSizeCollection( List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java similarity index 96% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java index 05d69c8c..a7a396c5 100644 --- a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java +++ b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.billing.v1.stub.CloudBillingStubSettings; @@ -49,9 +48,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -104,7 +103,8 @@ public UnaryCallSettings getBillingAcc /** Returns the object with the settings used for calls to listProjectBillingInfo. */ public PagedCallSettings< - ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, + ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse> listProjectBillingInfoSettings() { return ((CloudBillingStubSettings) getStubSettings()).listProjectBillingInfoSettings(); @@ -261,7 +261,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listBillingAccounts. */ public PagedCallSettings.Builder< - ListBillingAccountsRequest, ListBillingAccountsResponse, + ListBillingAccountsRequest, + ListBillingAccountsResponse, ListBillingAccountsPagedResponse> listBillingAccountsSettings() { return getStubSettingsBuilder().listBillingAccountsSettings(); @@ -281,7 +282,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listProjectBillingInfo. */ public PagedCallSettings.Builder< - ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, + ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse> listProjectBillingInfoSettings() { return getStubSettingsBuilder().listProjectBillingInfoSettings(); diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java index 225283b0..4b55ed5a 100644 --- a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java +++ b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java @@ -57,13 +57,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -462,7 +462,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListServicesPagedResponse extends AbstractPagedListResponse< - ListServicesRequest, ListServicesResponse, Service, ListServicesPage, + ListServicesRequest, + ListServicesResponse, + Service, + ListServicesPage, ListServicesFixedSizeCollection> { public static ApiFuture createAsync( @@ -511,7 +514,10 @@ public ApiFuture createPageAsync( public static class ListServicesFixedSizeCollection extends AbstractFixedSizeCollection< - ListServicesRequest, ListServicesResponse, Service, ListServicesPage, + ListServicesRequest, + ListServicesResponse, + Service, + ListServicesPage, ListServicesFixedSizeCollection> { private ListServicesFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java similarity index 96% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java index a278c4c8..3c1a4954 100644 --- a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java +++ b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.billing.v1.stub.CloudCatalogStubSettings; @@ -44,9 +43,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStub.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java similarity index 96% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java index 2db92c7a..44907506 100644 --- a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java +++ b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudBillingStubSettings.java @@ -76,9 +76,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -119,7 +119,8 @@ public class CloudBillingStubSettings extends StubSettings createBillingAccountSettings; private final PagedCallSettings< - ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, + ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse> listProjectBillingInfoSettings; private final UnaryCallSettings @@ -218,7 +219,8 @@ public Iterable extractResources( ListBillingAccountsRequest, ListBillingAccountsResponse, ListBillingAccountsPagedResponse> LIST_BILLING_ACCOUNTS_PAGE_STR_FACT = new PagedListResponseFactory< - ListBillingAccountsRequest, ListBillingAccountsResponse, + ListBillingAccountsRequest, + ListBillingAccountsResponse, ListBillingAccountsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -235,11 +237,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, + ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse> LIST_PROJECT_BILLING_INFO_PAGE_STR_FACT = new PagedListResponseFactory< - ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, + ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -249,7 +253,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, + ListProjectBillingInfoResponse, ProjectBillingInfo> pageContext = PageContext.create( @@ -284,7 +289,8 @@ public UnaryCallSettings getBillingAcc /** Returns the object with the settings used for calls to listProjectBillingInfo. */ public PagedCallSettings< - ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, + ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse> listProjectBillingInfoSettings() { return listProjectBillingInfoSettings; @@ -442,7 +448,8 @@ public static class Builder extends StubSettings.Builder getBillingAccountSettings; private final PagedCallSettings.Builder< - ListBillingAccountsRequest, ListBillingAccountsResponse, + ListBillingAccountsRequest, + ListBillingAccountsResponse, ListBillingAccountsPagedResponse> listBillingAccountsSettings; private final UnaryCallSettings.Builder @@ -450,7 +457,8 @@ public static class Builder extends StubSettings.Builder createBillingAccountSettings; private final PagedCallSettings.Builder< - ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, + ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse> listProjectBillingInfoSettings; private final UnaryCallSettings.Builder @@ -670,7 +678,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listBillingAccounts. */ public PagedCallSettings.Builder< - ListBillingAccountsRequest, ListBillingAccountsResponse, + ListBillingAccountsRequest, + ListBillingAccountsResponse, ListBillingAccountsPagedResponse> listBillingAccountsSettings() { return listBillingAccountsSettings; @@ -690,7 +699,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listProjectBillingInfo. */ public PagedCallSettings.Builder< - ListProjectBillingInfoRequest, ListProjectBillingInfoResponse, + ListProjectBillingInfoRequest, + ListProjectBillingInfoResponse, ListProjectBillingInfoPagedResponse> listProjectBillingInfoSettings() { return listProjectBillingInfoSettings; diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStub.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java index e7641300..6e950afd 100644 --- a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java +++ b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/CloudCatalogStubSettings.java @@ -66,9 +66,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (cloudbilling.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java index 2a089fd7..fdd74671 100644 --- a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java +++ b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudBillingStub.java @@ -46,7 +46,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java index e0354f5b..92a88f5c 100644 --- a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java +++ b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/GrpcCloudCatalogStub.java @@ -34,7 +34,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudBillingStub.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java b/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java rename to google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/HttpJsonCloudCatalogStub.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java b/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java rename to google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java b/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java rename to google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java b/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java rename to google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java b/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java rename to google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudCatalogClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java b/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java rename to google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBilling.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java b/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java rename to google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudBillingImpl.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java b/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java rename to google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalog.java diff --git a/owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java b/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java rename to google-cloud-billing/src/test/java/com/google/cloud/billing/v1/MockCloudCatalogImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java b/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java similarity index 54% rename from owl-bot-staging/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java rename to grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java index 0431f998..fe09ea60 100644 --- a/owl-bot-staging/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java +++ b/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingGrpc.java @@ -1,8 +1,25 @@ +/* + * 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.
  * 
@@ -18,392 +35,550 @@ 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 getGetBillingAccountMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.GetBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount> + getGetBillingAccountMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetBillingAccount", requestType = com.google.cloud.billing.v1.GetBillingAccountRequest.class, responseType = com.google.cloud.billing.v1.BillingAccount.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBillingAccountMethod() { - io.grpc.MethodDescriptor getGetBillingAccountMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.GetBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount> + getGetBillingAccountMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.GetBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount> + getGetBillingAccountMethod; if ((getGetBillingAccountMethod = CloudBillingGrpc.getGetBillingAccountMethod) == null) { synchronized (CloudBillingGrpc.class) { if ((getGetBillingAccountMethod = CloudBillingGrpc.getGetBillingAccountMethod) == null) { - CloudBillingGrpc.getGetBillingAccountMethod = getGetBillingAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBillingAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.GetBillingAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.BillingAccount.getDefaultInstance())) - .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("GetBillingAccount")) - .build(); + CloudBillingGrpc.getGetBillingAccountMethod = + getGetBillingAccountMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBillingAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.GetBillingAccountRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.BillingAccount.getDefaultInstance())) + .setSchemaDescriptor( + new CloudBillingMethodDescriptorSupplier("GetBillingAccount")) + .build(); } } } return getGetBillingAccountMethod; } - private static volatile io.grpc.MethodDescriptor getListBillingAccountsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.ListBillingAccountsRequest, + com.google.cloud.billing.v1.ListBillingAccountsResponse> + getListBillingAccountsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListBillingAccounts", requestType = com.google.cloud.billing.v1.ListBillingAccountsRequest.class, responseType = com.google.cloud.billing.v1.ListBillingAccountsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListBillingAccountsMethod() { - io.grpc.MethodDescriptor getListBillingAccountsMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.ListBillingAccountsRequest, + com.google.cloud.billing.v1.ListBillingAccountsResponse> + getListBillingAccountsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.ListBillingAccountsRequest, + com.google.cloud.billing.v1.ListBillingAccountsResponse> + getListBillingAccountsMethod; if ((getListBillingAccountsMethod = CloudBillingGrpc.getListBillingAccountsMethod) == null) { synchronized (CloudBillingGrpc.class) { - if ((getListBillingAccountsMethod = CloudBillingGrpc.getListBillingAccountsMethod) == null) { - CloudBillingGrpc.getListBillingAccountsMethod = getListBillingAccountsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBillingAccounts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ListBillingAccountsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ListBillingAccountsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("ListBillingAccounts")) - .build(); + if ((getListBillingAccountsMethod = CloudBillingGrpc.getListBillingAccountsMethod) + == null) { + CloudBillingGrpc.getListBillingAccountsMethod = + getListBillingAccountsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListBillingAccounts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ListBillingAccountsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ListBillingAccountsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudBillingMethodDescriptorSupplier("ListBillingAccounts")) + .build(); } } } return getListBillingAccountsMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateBillingAccountMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.UpdateBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount> + getUpdateBillingAccountMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateBillingAccount", requestType = com.google.cloud.billing.v1.UpdateBillingAccountRequest.class, responseType = com.google.cloud.billing.v1.BillingAccount.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateBillingAccountMethod() { - io.grpc.MethodDescriptor getUpdateBillingAccountMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.UpdateBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount> + getUpdateBillingAccountMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.UpdateBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount> + getUpdateBillingAccountMethod; if ((getUpdateBillingAccountMethod = CloudBillingGrpc.getUpdateBillingAccountMethod) == null) { synchronized (CloudBillingGrpc.class) { - if ((getUpdateBillingAccountMethod = CloudBillingGrpc.getUpdateBillingAccountMethod) == null) { - CloudBillingGrpc.getUpdateBillingAccountMethod = getUpdateBillingAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBillingAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.UpdateBillingAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.BillingAccount.getDefaultInstance())) - .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("UpdateBillingAccount")) - .build(); + if ((getUpdateBillingAccountMethod = CloudBillingGrpc.getUpdateBillingAccountMethod) + == null) { + CloudBillingGrpc.getUpdateBillingAccountMethod = + getUpdateBillingAccountMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateBillingAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.UpdateBillingAccountRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.BillingAccount.getDefaultInstance())) + .setSchemaDescriptor( + new CloudBillingMethodDescriptorSupplier("UpdateBillingAccount")) + .build(); } } } return getUpdateBillingAccountMethod; } - private static volatile io.grpc.MethodDescriptor getCreateBillingAccountMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.CreateBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount> + getCreateBillingAccountMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateBillingAccount", requestType = com.google.cloud.billing.v1.CreateBillingAccountRequest.class, responseType = com.google.cloud.billing.v1.BillingAccount.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateBillingAccountMethod() { - io.grpc.MethodDescriptor getCreateBillingAccountMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.CreateBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount> + getCreateBillingAccountMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.CreateBillingAccountRequest, + com.google.cloud.billing.v1.BillingAccount> + getCreateBillingAccountMethod; if ((getCreateBillingAccountMethod = CloudBillingGrpc.getCreateBillingAccountMethod) == null) { synchronized (CloudBillingGrpc.class) { - if ((getCreateBillingAccountMethod = CloudBillingGrpc.getCreateBillingAccountMethod) == null) { - CloudBillingGrpc.getCreateBillingAccountMethod = getCreateBillingAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBillingAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.CreateBillingAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.BillingAccount.getDefaultInstance())) - .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("CreateBillingAccount")) - .build(); + if ((getCreateBillingAccountMethod = CloudBillingGrpc.getCreateBillingAccountMethod) + == null) { + CloudBillingGrpc.getCreateBillingAccountMethod = + getCreateBillingAccountMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateBillingAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.CreateBillingAccountRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.BillingAccount.getDefaultInstance())) + .setSchemaDescriptor( + new CloudBillingMethodDescriptorSupplier("CreateBillingAccount")) + .build(); } } } return getCreateBillingAccountMethod; } - private static volatile io.grpc.MethodDescriptor getListProjectBillingInfoMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.ListProjectBillingInfoRequest, + com.google.cloud.billing.v1.ListProjectBillingInfoResponse> + getListProjectBillingInfoMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListProjectBillingInfo", requestType = com.google.cloud.billing.v1.ListProjectBillingInfoRequest.class, responseType = com.google.cloud.billing.v1.ListProjectBillingInfoResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListProjectBillingInfoMethod() { - io.grpc.MethodDescriptor getListProjectBillingInfoMethod; - if ((getListProjectBillingInfoMethod = CloudBillingGrpc.getListProjectBillingInfoMethod) == null) { + public static io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.ListProjectBillingInfoRequest, + com.google.cloud.billing.v1.ListProjectBillingInfoResponse> + getListProjectBillingInfoMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.ListProjectBillingInfoRequest, + com.google.cloud.billing.v1.ListProjectBillingInfoResponse> + getListProjectBillingInfoMethod; + if ((getListProjectBillingInfoMethod = CloudBillingGrpc.getListProjectBillingInfoMethod) + == null) { synchronized (CloudBillingGrpc.class) { - if ((getListProjectBillingInfoMethod = CloudBillingGrpc.getListProjectBillingInfoMethod) == null) { - CloudBillingGrpc.getListProjectBillingInfoMethod = getListProjectBillingInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProjectBillingInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ListProjectBillingInfoRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ListProjectBillingInfoResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("ListProjectBillingInfo")) - .build(); + if ((getListProjectBillingInfoMethod = CloudBillingGrpc.getListProjectBillingInfoMethod) + == null) { + CloudBillingGrpc.getListProjectBillingInfoMethod = + getListProjectBillingInfoMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListProjectBillingInfo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ListProjectBillingInfoRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ListProjectBillingInfoResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudBillingMethodDescriptorSupplier("ListProjectBillingInfo")) + .build(); } } } return getListProjectBillingInfoMethod; } - private static volatile io.grpc.MethodDescriptor getGetProjectBillingInfoMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.GetProjectBillingInfoRequest, + com.google.cloud.billing.v1.ProjectBillingInfo> + getGetProjectBillingInfoMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetProjectBillingInfo", requestType = com.google.cloud.billing.v1.GetProjectBillingInfoRequest.class, responseType = com.google.cloud.billing.v1.ProjectBillingInfo.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetProjectBillingInfoMethod() { - io.grpc.MethodDescriptor getGetProjectBillingInfoMethod; - if ((getGetProjectBillingInfoMethod = CloudBillingGrpc.getGetProjectBillingInfoMethod) == null) { + public static io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.GetProjectBillingInfoRequest, + com.google.cloud.billing.v1.ProjectBillingInfo> + getGetProjectBillingInfoMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.GetProjectBillingInfoRequest, + com.google.cloud.billing.v1.ProjectBillingInfo> + getGetProjectBillingInfoMethod; + if ((getGetProjectBillingInfoMethod = CloudBillingGrpc.getGetProjectBillingInfoMethod) + == null) { synchronized (CloudBillingGrpc.class) { - if ((getGetProjectBillingInfoMethod = CloudBillingGrpc.getGetProjectBillingInfoMethod) == null) { - CloudBillingGrpc.getGetProjectBillingInfoMethod = getGetProjectBillingInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProjectBillingInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.GetProjectBillingInfoRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance())) - .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("GetProjectBillingInfo")) - .build(); + if ((getGetProjectBillingInfoMethod = CloudBillingGrpc.getGetProjectBillingInfoMethod) + == null) { + CloudBillingGrpc.getGetProjectBillingInfoMethod = + getGetProjectBillingInfoMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetProjectBillingInfo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.GetProjectBillingInfoRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance())) + .setSchemaDescriptor( + new CloudBillingMethodDescriptorSupplier("GetProjectBillingInfo")) + .build(); } } } return getGetProjectBillingInfoMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateProjectBillingInfoMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest, + com.google.cloud.billing.v1.ProjectBillingInfo> + getUpdateProjectBillingInfoMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateProjectBillingInfo", requestType = com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.class, responseType = com.google.cloud.billing.v1.ProjectBillingInfo.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateProjectBillingInfoMethod() { - io.grpc.MethodDescriptor getUpdateProjectBillingInfoMethod; - if ((getUpdateProjectBillingInfoMethod = CloudBillingGrpc.getUpdateProjectBillingInfoMethod) == null) { + public static io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest, + com.google.cloud.billing.v1.ProjectBillingInfo> + getUpdateProjectBillingInfoMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest, + com.google.cloud.billing.v1.ProjectBillingInfo> + getUpdateProjectBillingInfoMethod; + if ((getUpdateProjectBillingInfoMethod = CloudBillingGrpc.getUpdateProjectBillingInfoMethod) + == null) { synchronized (CloudBillingGrpc.class) { - if ((getUpdateProjectBillingInfoMethod = CloudBillingGrpc.getUpdateProjectBillingInfoMethod) == null) { - CloudBillingGrpc.getUpdateProjectBillingInfoMethod = getUpdateProjectBillingInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProjectBillingInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance())) - .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("UpdateProjectBillingInfo")) - .build(); + if ((getUpdateProjectBillingInfoMethod = CloudBillingGrpc.getUpdateProjectBillingInfoMethod) + == null) { + CloudBillingGrpc.getUpdateProjectBillingInfoMethod = + getUpdateProjectBillingInfoMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateProjectBillingInfo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance())) + .setSchemaDescriptor( + new CloudBillingMethodDescriptorSupplier("UpdateProjectBillingInfo")) + .build(); } } } return getUpdateProjectBillingInfoMethod; } - private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", requestType = com.google.iam.v1.GetIamPolicyRequest.class, responseType = com.google.iam.v1.Policy.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { - io.grpc.MethodDescriptor getGetIamPolicyMethod; + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; if ((getGetIamPolicyMethod = CloudBillingGrpc.getGetIamPolicyMethod) == null) { synchronized (CloudBillingGrpc.class) { if ((getGetIamPolicyMethod = CloudBillingGrpc.getGetIamPolicyMethod) == null) { - CloudBillingGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("GetIamPolicy")) - .build(); + CloudBillingGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("GetIamPolicy")) + .build(); } } } return getGetIamPolicyMethod; } - private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", requestType = com.google.iam.v1.SetIamPolicyRequest.class, responseType = com.google.iam.v1.Policy.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { - io.grpc.MethodDescriptor getSetIamPolicyMethod; + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; if ((getSetIamPolicyMethod = CloudBillingGrpc.getSetIamPolicyMethod) == null) { synchronized (CloudBillingGrpc.class) { if ((getSetIamPolicyMethod = CloudBillingGrpc.getSetIamPolicyMethod) == null) { - CloudBillingGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("SetIamPolicy")) - .build(); + CloudBillingGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("SetIamPolicy")) + .build(); } } } return getSetIamPolicyMethod; } - private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", requestType = com.google.iam.v1.TestIamPermissionsRequest.class, responseType = com.google.iam.v1.TestIamPermissionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor getTestIamPermissionsMethod; + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; if ((getTestIamPermissionsMethod = CloudBillingGrpc.getTestIamPermissionsMethod) == null) { synchronized (CloudBillingGrpc.class) { if ((getTestIamPermissionsMethod = CloudBillingGrpc.getTestIamPermissionsMethod) == null) { - CloudBillingGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudBillingMethodDescriptorSupplier("TestIamPermissions")) - .build(); + CloudBillingGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new CloudBillingMethodDescriptorSupplier("TestIamPermissions")) + .build(); } } } return getTestIamPermissionsMethod; } - /** - * 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.
    * 
*/ - public static abstract class CloudBillingImplBase implements io.grpc.BindableService { + public abstract static 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`.
@@ -413,12 +588,16 @@ public void listBillingAccounts(com.google.cloud.billing.v1.ListBillingAccountsR
      * of the billing account.
      * 
*/ - public void updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccountRequest request, + public void updateBillingAccount( + com.google.cloud.billing.v1.UpdateBillingAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBillingAccountMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBillingAccountMethod(), responseObserver); } /** + * + * *
      * Creates a billing account.
      * This method can only be used to create
@@ -432,12 +611,16 @@ public void updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccoun
      * 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
@@ -445,12 +628,17 @@ public void createBillingAccount(com.google.cloud.billing.v1.CreateBillingAccoun
      * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
      * 
*/ - public void listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillingInfoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - 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
@@ -458,12 +646,17 @@ public void listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillin
      * ).
      * 
*/ - 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
@@ -494,12 +687,17 @@ public void getProjectBillingInfo(com.google.cloud.billing.v1.GetProjectBillingI
      * *open* billing account.
      * 
*/ - public void updateProjectBillingInfo(com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - 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
@@ -507,12 +705,16 @@ public void updateProjectBillingInfo(com.google.cloud.billing.v1.UpdateProjectBi
      * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
      * 
*/ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); } /** + * + * *
      * Sets the access control policy for a billing account. Replaces any existing
      * policy.
@@ -521,143 +723,163 @@ public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
      * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
      * 
*/ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.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.
    * 
*/ - 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`.
@@ -667,13 +889,18 @@ public void listBillingAccounts(com.google.cloud.billing.v1.ListBillingAccountsR
      * of the billing account.
      * 
*/ - public void updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccountRequest request, + public void updateBillingAccount( + com.google.cloud.billing.v1.UpdateBillingAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBillingAccountMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateBillingAccountMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates a billing account.
      * This method can only be used to create
@@ -687,13 +914,18 @@ public void updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccoun
      * 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
@@ -701,13 +933,19 @@ public void createBillingAccount(com.google.cloud.billing.v1.CreateBillingAccoun
      * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
      * 
*/ - public void listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillingInfoRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listProjectBillingInfo( + com.google.cloud.billing.v1.ListProjectBillingInfoRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProjectBillingInfoMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListProjectBillingInfoMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets the billing information for a project. The current authenticated user
      * must have [permission to view the
@@ -715,13 +953,19 @@ public void listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillin
      * ).
      * 
*/ - 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
@@ -752,13 +996,19 @@ public void getProjectBillingInfo(com.google.cloud.billing.v1.GetProjectBillingI
      * *open* billing account.
      * 
*/ - public void updateProjectBillingInfo(com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void updateProjectBillingInfo( + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProjectBillingInfoMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateProjectBillingInfoMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets the access control policy for a billing account.
      * The caller must have the `billing.accounts.getIamPolicy` permission on the
@@ -766,13 +1016,18 @@ public void updateProjectBillingInfo(com.google.cloud.billing.v1.UpdateProjectBi
      * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
      * 
*/ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Sets the access control policy for a billing account. Replaces any existing
      * policy.
@@ -781,34 +1036,45 @@ public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
      * [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
      * 
*/ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Tests the access control policy for a billing account. This method takes
      * the resource and a set of permissions as input and returns the subset of
      * the input permissions that the caller is allowed for that resource.
      * 
*/ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Retrieves GCP 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); } @@ -819,30 +1085,38 @@ protected CloudBillingBlockingStub build( } /** + * + * *
      * Gets information about a billing account. The current authenticated user
      * must be a [viewer of the billing
      * account](https://cloud.google.com/billing/docs/how-to/billing-access).
      * 
*/ - public com.google.cloud.billing.v1.BillingAccount getBillingAccount(com.google.cloud.billing.v1.GetBillingAccountRequest request) { + public com.google.cloud.billing.v1.BillingAccount getBillingAccount( + com.google.cloud.billing.v1.GetBillingAccountRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBillingAccountMethod(), getCallOptions(), request); } /** + * + * *
      * Lists the billing accounts that the current authenticated user has
      * permission to
      * [view](https://cloud.google.com/billing/docs/how-to/billing-access).
      * 
*/ - public com.google.cloud.billing.v1.ListBillingAccountsResponse listBillingAccounts(com.google.cloud.billing.v1.ListBillingAccountsRequest request) { + public com.google.cloud.billing.v1.ListBillingAccountsResponse listBillingAccounts( + com.google.cloud.billing.v1.ListBillingAccountsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBillingAccountsMethod(), getCallOptions(), request); } /** + * + * *
      * Updates a billing account's fields.
      * Currently the only field that can be edited is `display_name`.
@@ -852,12 +1126,15 @@ public com.google.cloud.billing.v1.ListBillingAccountsResponse listBillingAccoun
      * of the billing account.
      * 
*/ - public com.google.cloud.billing.v1.BillingAccount updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccountRequest request) { + public com.google.cloud.billing.v1.BillingAccount updateBillingAccount( + com.google.cloud.billing.v1.UpdateBillingAccountRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBillingAccountMethod(), getCallOptions(), request); } /** + * + * *
      * Creates a billing account.
      * This method can only be used to create
@@ -871,12 +1148,15 @@ public com.google.cloud.billing.v1.BillingAccount updateBillingAccount(com.googl
      * 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
@@ -884,12 +1164,15 @@ public com.google.cloud.billing.v1.BillingAccount createBillingAccount(com.googl
      * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
      * 
*/ - public com.google.cloud.billing.v1.ListProjectBillingInfoResponse listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) { + public com.google.cloud.billing.v1.ListProjectBillingInfoResponse listProjectBillingInfo( + com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListProjectBillingInfoMethod(), getCallOptions(), request); } /** + * + * *
      * Gets the billing information for a project. The current authenticated user
      * must have [permission to view the
@@ -897,12 +1180,15 @@ public com.google.cloud.billing.v1.ListProjectBillingInfoResponse listProjectBil
      * ).
      * 
*/ - 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
@@ -933,12 +1219,15 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(com.
      * *open* billing account.
      * 
*/ - public com.google.cloud.billing.v1.ProjectBillingInfo updateProjectBillingInfo(com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request) { + public com.google.cloud.billing.v1.ProjectBillingInfo updateProjectBillingInfo( + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateProjectBillingInfoMethod(), getCallOptions(), request); } /** + * + * *
      * Gets the access control policy for a billing account.
      * The caller must have the `billing.accounts.getIamPolicy` permission on the
@@ -952,6 +1241,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
     }
 
     /**
+     *
+     *
      * 
      * Sets the access control policy for a billing account. Replaces any existing
      * policy.
@@ -966,26 +1257,31 @@ 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.
    * 
*/ - 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); } @@ -996,32 +1292,40 @@ protected CloudBillingFutureStub build( } /** + * + * *
      * Gets information about a billing account. The current authenticated user
      * must be a [viewer of the billing
      * account](https://cloud.google.com/billing/docs/how-to/billing-access).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getBillingAccount( - com.google.cloud.billing.v1.GetBillingAccountRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.billing.v1.BillingAccount> + getBillingAccount(com.google.cloud.billing.v1.GetBillingAccountRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBillingAccountMethod(), getCallOptions()), request); } /** + * + * *
      * Lists the billing accounts that the current authenticated user has
      * permission to
      * [view](https://cloud.google.com/billing/docs/how-to/billing-access).
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listBillingAccounts( - com.google.cloud.billing.v1.ListBillingAccountsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.billing.v1.ListBillingAccountsResponse> + listBillingAccounts(com.google.cloud.billing.v1.ListBillingAccountsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBillingAccountsMethod(), getCallOptions()), request); } /** + * + * *
      * Updates a billing account's fields.
      * Currently the only field that can be edited is `display_name`.
@@ -1031,13 +1335,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateBillingAccount(
-        com.google.cloud.billing.v1.UpdateBillingAccountRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.v1.BillingAccount>
+        updateBillingAccount(com.google.cloud.billing.v1.UpdateBillingAccountRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateBillingAccountMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Creates a billing account.
      * This method can only be used to create
@@ -1051,13 +1358,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture createBillingAccount(
-        com.google.cloud.billing.v1.CreateBillingAccountRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.v1.BillingAccount>
+        createBillingAccount(com.google.cloud.billing.v1.CreateBillingAccountRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getCreateBillingAccountMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Lists the projects associated with a billing account. The current
      * authenticated user must have the `billing.resourceAssociations.list` IAM
@@ -1065,13 +1375,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listProjectBillingInfo(
-        com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.v1.ListProjectBillingInfoResponse>
+        listProjectBillingInfo(com.google.cloud.billing.v1.ListProjectBillingInfoRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListProjectBillingInfoMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Gets the billing information for a project. The current authenticated user
      * must have [permission to view the
@@ -1079,13 +1392,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture getProjectBillingInfo(
-        com.google.cloud.billing.v1.GetProjectBillingInfoRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.v1.ProjectBillingInfo>
+        getProjectBillingInfo(com.google.cloud.billing.v1.GetProjectBillingInfoRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getGetProjectBillingInfoMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Sets or updates the billing account associated with a project. You specify
      * the new billing account by setting the `billing_account_name` in the
@@ -1116,13 +1432,17 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateProjectBillingInfo(
-        com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.billing.v1.ProjectBillingInfo>
+        updateProjectBillingInfo(
+            com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateProjectBillingInfoMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Gets the access control policy for a billing account.
      * The caller must have the `billing.accounts.getIamPolicy` permission on the
@@ -1130,13 +1450,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture getIamPolicy(
-        com.google.iam.v1.GetIamPolicyRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Sets the access control policy for a billing account. Replaces any existing
      * policy.
@@ -1145,21 +1467,24 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture setIamPolicy(
-        com.google.iam.v1.SetIamPolicyRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Tests the access control policy for a billing account. This method takes
      * the resource and a set of permissions as input and returns the subset of
      * the input permissions that the caller is allowed for that resource.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } @@ -1176,11 +1501,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final CloudBillingImplBase serviceImpl; private final int methodId; @@ -1194,44 +1519,63 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_GET_BILLING_ACCOUNT: - serviceImpl.getBillingAccount((com.google.cloud.billing.v1.GetBillingAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.getBillingAccount( + (com.google.cloud.billing.v1.GetBillingAccountRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_LIST_BILLING_ACCOUNTS: - serviceImpl.listBillingAccounts((com.google.cloud.billing.v1.ListBillingAccountsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listBillingAccounts( + (com.google.cloud.billing.v1.ListBillingAccountsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_UPDATE_BILLING_ACCOUNT: - serviceImpl.updateBillingAccount((com.google.cloud.billing.v1.UpdateBillingAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.updateBillingAccount( + (com.google.cloud.billing.v1.UpdateBillingAccountRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_CREATE_BILLING_ACCOUNT: - serviceImpl.createBillingAccount((com.google.cloud.billing.v1.CreateBillingAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.createBillingAccount( + (com.google.cloud.billing.v1.CreateBillingAccountRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_LIST_PROJECT_BILLING_INFO: - serviceImpl.listProjectBillingInfo((com.google.cloud.billing.v1.ListProjectBillingInfoRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listProjectBillingInfo( + (com.google.cloud.billing.v1.ListProjectBillingInfoRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.billing.v1.ListProjectBillingInfoResponse>) + responseObserver); break; case METHODID_GET_PROJECT_BILLING_INFO: - serviceImpl.getProjectBillingInfo((com.google.cloud.billing.v1.GetProjectBillingInfoRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.getProjectBillingInfo( + (com.google.cloud.billing.v1.GetProjectBillingInfoRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_UPDATE_PROJECT_BILLING_INFO: - serviceImpl.updateProjectBillingInfo((com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.updateProjectBillingInfo( + (com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.testIamPermissions( + (com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; default: throw new AssertionError(); @@ -1249,8 +1593,9 @@ public io.grpc.stub.StreamObserver invoke( } } - private static abstract class CloudBillingBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class CloudBillingBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { CloudBillingBaseDescriptorSupplier() {} @java.lang.Override @@ -1292,19 +1637,21 @@ 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/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java b/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java new file mode 100644 index 00000000..989b5170 --- /dev/null +++ b/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java @@ -0,0 +1,483 @@ +/* + * 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/owl-bot-staging/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java deleted file mode 100644 index dd2e8d5d..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogGrpc.java +++ /dev/null @@ -1,399 +0,0 @@ -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/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java deleted file mode 100644 index b551d747..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java +++ /dev/null @@ -1,270 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/v1/cloud_billing.proto - -package com.google.cloud.billing.v1; - -public final class CloudBillingProto { - private CloudBillingProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_BillingAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_GetBillingAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_GetBillingAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_ListBillingAccountsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_ListBillingAccountsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_CreateBillingAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_UpdateBillingAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_ListProjectBillingInfoRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_ListProjectBillingInfoResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_GetProjectBillingInfoRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_UpdateProjectBillingInfoRequest_fieldAccessorTable; - - 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/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java deleted file mode 100644 index 10791b00..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java +++ /dev/null @@ -1,249 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/v1/cloud_catalog.proto - -package com.google.cloud.billing.v1; - -public final class CloudCatalogProto { - private CloudCatalogProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_Service_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_Service_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_Sku_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_Category_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_Category_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_PricingInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_PricingInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_PricingExpression_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_PricingExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_PricingExpression_TierRate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_PricingExpression_TierRate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_AggregationInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_billing_v1_AggregationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_billing_v1_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/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java deleted file mode 100644 index 27f6965d..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/billing/v1/cloud_billing.proto - -package com.google.cloud.billing.v1; - -public interface GetBillingAccountRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.GetBillingAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the billing account to retrieve. For example,
-   * `billingAccounts/012345-567890-ABCDEF`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the billing account to retrieve. For example,
-   * `billingAccounts/012345-567890-ABCDEF`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java index 96c08d0a..62063a25 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfo.java @@ -1,24 +1,42 @@ +/* + * 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; @@ -26,16 +44,15 @@ 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; } + private AggregationInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private AggregationInfo( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - aggregationLevel_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - aggregationInterval_ = rawValue; - break; - } - case 24: { + aggregationLevel_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); - aggregationCount_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + aggregationInterval_ = rawValue; + break; + } + case 24: + { + aggregationCount_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,27 +104,31 @@ private AggregationInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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
@@ -114,37 +137,23 @@ private AggregationInfo(
    *
    * 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(
@@ -169,39 +178,42 @@ public static AggregationLevel valueOf(int value) {
      */
     public static AggregationLevel forNumber(int value) {
       switch (value) {
-        case 0: return AGGREGATION_LEVEL_UNSPECIFIED;
-        case 1: return ACCOUNT;
-        case 2: return PROJECT;
-        default: return null;
+        case 0:
+          return AGGREGATION_LEVEL_UNSPECIFIED;
+        case 1:
+          return ACCOUNT;
+        case 2:
+          return PROJECT;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        AggregationLevel> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public AggregationLevel findValueByNumber(int number) {
-              return AggregationLevel.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public AggregationLevel findValueByNumber(int number) {
+                return AggregationLevel.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.billing.v1.AggregationInfo.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -210,8 +222,7 @@ public AggregationLevel findValueByNumber(int number) {
     public static AggregationLevel valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -229,6 +240,8 @@ private AggregationLevel(int value) {
   }
 
   /**
+   *
+   *
    * 
    * The interval at which usage is aggregated to compute cost.
    * Example: "MONTHLY" aggregation interval indicates that usage for tiered
@@ -237,37 +250,23 @@ private AggregationLevel(int value) {
    *
    * Protobuf enum {@code google.cloud.billing.v1.AggregationInfo.AggregationInterval}
    */
-  public enum AggregationInterval
-      implements com.google.protobuf.ProtocolMessageEnum {
-    /**
-     * AGGREGATION_INTERVAL_UNSPECIFIED = 0;
-     */
+  public enum AggregationInterval implements com.google.protobuf.ProtocolMessageEnum {
+    /** AGGREGATION_INTERVAL_UNSPECIFIED = 0; */
     AGGREGATION_INTERVAL_UNSPECIFIED(0),
-    /**
-     * DAILY = 1;
-     */
+    /** DAILY = 1; */
     DAILY(1),
-    /**
-     * MONTHLY = 2;
-     */
+    /** MONTHLY = 2; */
     MONTHLY(2),
     UNRECOGNIZED(-1),
     ;
 
-    /**
-     * AGGREGATION_INTERVAL_UNSPECIFIED = 0;
-     */
+    /** AGGREGATION_INTERVAL_UNSPECIFIED = 0; */
     public static final int AGGREGATION_INTERVAL_UNSPECIFIED_VALUE = 0;
-    /**
-     * DAILY = 1;
-     */
+    /** DAILY = 1; */
     public static final int DAILY_VALUE = 1;
-    /**
-     * MONTHLY = 2;
-     */
+    /** MONTHLY = 2; */
     public static final int MONTHLY_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -292,10 +291,14 @@ public static AggregationInterval valueOf(int value) {
      */
     public static AggregationInterval forNumber(int value) {
       switch (value) {
-        case 0: return AGGREGATION_INTERVAL_UNSPECIFIED;
-        case 1: return DAILY;
-        case 2: return MONTHLY;
-        default: return null;
+        case 0:
+          return AGGREGATION_INTERVAL_UNSPECIFIED;
+        case 1:
+          return DAILY;
+        case 2:
+          return MONTHLY;
+        default:
+          return null;
       }
     }
 
@@ -303,28 +306,28 @@ public static AggregationInterval forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        AggregationInterval> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public AggregationInterval findValueByNumber(int number) {
-              return AggregationInterval.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public AggregationInterval findValueByNumber(int number) {
+                return AggregationInterval.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.billing.v1.AggregationInfo.getDescriptor().getEnumTypes().get(1);
     }
 
@@ -333,8 +336,7 @@ public AggregationInterval findValueByNumber(int number) {
     public static AggregationInterval valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -355,43 +357,62 @@ 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,
@@ -399,6 +420,7 @@ private AggregationInterval(int value) {
    * 
* * int32 aggregation_count = 3; + * * @return The aggregationCount. */ @java.lang.Override @@ -407,6 +429,7 @@ public int getAggregationCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -418,12 +441,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (aggregationLevel_ != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.AGGREGATION_LEVEL_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (aggregationLevel_ + != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel + .AGGREGATION_LEVEL_UNSPECIFIED + .getNumber()) { output.writeEnum(1, aggregationLevel_); } - if (aggregationInterval_ != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.AGGREGATION_INTERVAL_UNSPECIFIED.getNumber()) { + if (aggregationInterval_ + != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval + .AGGREGATION_INTERVAL_UNSPECIFIED + .getNumber()) { output.writeEnum(2, aggregationInterval_); } if (aggregationCount_ != 0) { @@ -438,17 +466,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (aggregationLevel_ != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel.AGGREGATION_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, aggregationLevel_); - } - if (aggregationInterval_ != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval.AGGREGATION_INTERVAL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, aggregationInterval_); + if (aggregationLevel_ + != com.google.cloud.billing.v1.AggregationInfo.AggregationLevel + .AGGREGATION_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, aggregationLevel_); + } + if (aggregationInterval_ + != com.google.cloud.billing.v1.AggregationInfo.AggregationInterval + .AGGREGATION_INTERVAL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, aggregationInterval_); } if (aggregationCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, aggregationCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, aggregationCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -458,17 +489,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -491,118 +522,127 @@ 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() @@ -610,16 +650,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -633,9 +672,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 @@ -654,7 +693,8 @@ public com.google.cloud.billing.v1.AggregationInfo build() { @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo buildPartial() { - com.google.cloud.billing.v1.AggregationInfo result = new com.google.cloud.billing.v1.AggregationInfo(this); + com.google.cloud.billing.v1.AggregationInfo result = + new com.google.cloud.billing.v1.AggregationInfo(this); result.aggregationLevel_ = aggregationLevel_; result.aggregationInterval_ = aggregationInterval_; result.aggregationCount_ = aggregationCount_; @@ -666,38 +706,39 @@ 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; @@ -747,52 +788,62 @@ 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; @@ -800,60 +851,79 @@ 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,
@@ -861,6 +931,7 @@ public Builder clearAggregationInterval() {
      * 
* * int32 aggregation_count = 3; + * * @return The aggregationCount. */ @java.lang.Override @@ -868,6 +939,8 @@ public int getAggregationCount() { return aggregationCount_; } /** + * + * *
      * The number of intervals to aggregate over.
      * Example: If aggregation_level is "DAILY" and aggregation_count is 14,
@@ -875,16 +948,19 @@ 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,
@@ -892,17 +968,18 @@ 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); } @@ -912,12 +989,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(); } @@ -926,16 +1003,16 @@ 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 { - return new AggregationInfo(input, extensionRegistry); - } - }; + 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 { + return new AggregationInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,6 +1027,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.AggregationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java index 229a5451..e0237fc7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/AggregationInfoOrBuilder.java @@ -1,35 +1,59 @@ +/* + * 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,
@@ -37,6 +61,7 @@ public interface AggregationInfoOrBuilder extends
    * 
* * int32 aggregation_count = 3; + * * @return The aggregationCount. */ int getAggregationCount(); diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java index 263340c9..ee1c13f9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccount.java @@ -1,9 +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.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.billing.v1.BillingAccount}
  */
-public final class BillingAccount extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BillingAccount extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.BillingAccount)
     BillingAccountOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BillingAccount.newBuilder() to construct.
   private BillingAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BillingAccount() {
     name_ = "";
     displayName_ = "";
@@ -28,16 +46,15 @@ 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;
   }
+
   private BillingAccount(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,36 +73,39 @@ private BillingAccount(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 16: {
-
-            open_ = input.readBool();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 16:
+            {
+              open_ = input.readBool();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              displayName_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            masterBillingAccount_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              masterBillingAccount_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,29 +113,33 @@ private BillingAccount(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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
    * `billingAccounts/{billing_account_id}`. For example,
@@ -124,6 +148,7 @@ private BillingAccount(
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -132,14 +157,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the billing account. The resource name has the form
    * `billingAccounts/{billing_account_id}`. For example,
@@ -148,16 +174,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.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 { @@ -168,6 +193,8 @@ public java.lang.String getName() { 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
@@ -175,6 +202,7 @@ public java.lang.String getName() {
    * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The open. */ @java.lang.Override @@ -185,12 +213,15 @@ 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.
    * 
* * string display_name = 3; + * * @return The displayName. */ @java.lang.Override @@ -199,30 +230,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.
    * 
* * 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 { @@ -233,6 +264,8 @@ public java.lang.String getDisplayName() { 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
@@ -242,6 +275,7 @@ public java.lang.String getDisplayName() {
    * 
* * string master_billing_account = 4; + * * @return The masterBillingAccount. */ @java.lang.Override @@ -250,14 +284,15 @@ public java.lang.String getMasterBillingAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); masterBillingAccount_ = s; return s; } } /** + * + * *
    * If this account is a
    * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -267,16 +302,15 @@ public java.lang.String getMasterBillingAccount() {
    * 
* * string master_billing_account = 4; + * * @return The bytes for masterBillingAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getMasterBillingAccountBytes() { + public com.google.protobuf.ByteString getMasterBillingAccountBytes() { java.lang.Object ref = masterBillingAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); masterBillingAccount_ = b; return b; } else { @@ -285,6 +319,7 @@ public java.lang.String getMasterBillingAccount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -296,8 +331,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -323,8 +357,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (open_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, open_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, open_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); @@ -340,21 +373,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -369,8 +399,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + OPEN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOpen()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOpen()); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + MASTER_BILLING_ACCOUNT_FIELD_NUMBER; @@ -380,97 +409,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.BillingAccount parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.BillingAccount parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.billing.v1.BillingAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.billing.v1.BillingAccount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.BillingAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.BillingAccount parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.BillingAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A billing account in [GCP Console](https://console.cloud.google.com/).
    * You can assign a billing account to one or more projects.
@@ -478,21 +514,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.v1.BillingAccount}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.BillingAccount)
       com.google.cloud.billing.v1.BillingAccountOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.v1.CloudBillingProto
+          .internal_static_google_cloud_billing_v1_BillingAccount_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable
+      return com.google.cloud.billing.v1.CloudBillingProto
+          .internal_static_google_cloud_billing_v1_BillingAccount_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.v1.BillingAccount.class, com.google.cloud.billing.v1.BillingAccount.Builder.class);
+              com.google.cloud.billing.v1.BillingAccount.class,
+              com.google.cloud.billing.v1.BillingAccount.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.v1.BillingAccount.newBuilder()
@@ -500,16 +538,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -525,9 +562,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
@@ -546,7 +583,8 @@ public com.google.cloud.billing.v1.BillingAccount build() {
 
     @java.lang.Override
     public com.google.cloud.billing.v1.BillingAccount buildPartial() {
-      com.google.cloud.billing.v1.BillingAccount result = new com.google.cloud.billing.v1.BillingAccount(this);
+      com.google.cloud.billing.v1.BillingAccount result =
+          new com.google.cloud.billing.v1.BillingAccount(this);
       result.name_ = name_;
       result.open_ = open_;
       result.displayName_ = displayName_;
@@ -559,38 +597,39 @@ 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;
@@ -645,6 +684,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the billing account. The resource name has the form
      * `billingAccounts/{billing_account_id}`. For example,
@@ -653,13 +694,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.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; @@ -668,6 +709,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the billing account. The resource name has the form
      * `billingAccounts/{billing_account_id}`. For example,
@@ -676,15 +719,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.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 { @@ -692,6 +734,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the billing account. The resource name has the form
      * `billingAccounts/{billing_account_id}`. For example,
@@ -700,20 +744,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.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
      * `billingAccounts/{billing_account_id}`. For example,
@@ -722,15 +768,18 @@ public Builder setName(
      * 
* * string name = 1 [(.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
      * `billingAccounts/{billing_account_id}`. For example,
@@ -739,23 +788,25 @@ public Builder clearName() {
      * 
* * string name = 1 [(.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
@@ -763,6 +814,7 @@ public Builder setNameBytes(
      * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The open. */ @java.lang.Override @@ -770,6 +822,8 @@ public boolean getOpen() { return open_; } /** + * + * *
      * Output only. True if the billing account is open, and will therefore be charged for any
      * usage on associated projects. False if the billing account is closed, and
@@ -777,16 +831,19 @@ 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
@@ -794,10 +851,11 @@ 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; @@ -805,19 +863,21 @@ public Builder clearOpen() { private java.lang.Object displayName_ = ""; /** + * + * *
      * The display name given to the billing account, such as `My Billing
      * Account`. This name is displayed in the GCP 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; @@ -826,21 +886,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The display name given to the billing account, such as `My Billing
      * Account`. This name is displayed in the GCP 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 { @@ -848,57 +909,64 @@ 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.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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; @@ -906,6 +974,8 @@ public Builder setDisplayNameBytes( private java.lang.Object masterBillingAccount_ = ""; /** + * + * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -915,13 +985,13 @@ public Builder setDisplayNameBytes(
      * 
* * string master_billing_account = 4; + * * @return The masterBillingAccount. */ public java.lang.String getMasterBillingAccount() { java.lang.Object ref = masterBillingAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); masterBillingAccount_ = s; return s; @@ -930,6 +1000,8 @@ public java.lang.String getMasterBillingAccount() { } } /** + * + * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -939,15 +1011,14 @@ public java.lang.String getMasterBillingAccount() {
      * 
* * string master_billing_account = 4; + * * @return The bytes for masterBillingAccount. */ - public com.google.protobuf.ByteString - getMasterBillingAccountBytes() { + public com.google.protobuf.ByteString getMasterBillingAccountBytes() { java.lang.Object ref = masterBillingAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); masterBillingAccount_ = b; return b; } else { @@ -955,6 +1026,8 @@ public java.lang.String getMasterBillingAccount() { } } /** + * + * *
      * If this account is a
      * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -964,20 +1037,22 @@ public java.lang.String getMasterBillingAccount() {
      * 
* * string master_billing_account = 4; + * * @param value The masterBillingAccount to set. * @return This builder for chaining. */ - public Builder setMasterBillingAccount( - java.lang.String value) { + 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
@@ -987,15 +1062,18 @@ public Builder setMasterBillingAccount(
      * 
* * 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
@@ -1005,23 +1083,23 @@ public Builder clearMasterBillingAccount() {
      * 
* * string master_billing_account = 4; + * * @param value The bytes for masterBillingAccount to set. * @return This builder for chaining. */ - public Builder setMasterBillingAccountBytes( - com.google.protobuf.ByteString value) { + 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); } @@ -1031,12 +1109,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(); } @@ -1045,16 +1123,16 @@ 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 { - return new BillingAccount(input, extensionRegistry); - } - }; + 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 { + return new BillingAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1069,6 +1147,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.BillingAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java index d8761060..7783928f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/BillingAccountOrBuilder.java @@ -1,13 +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 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
    * `billingAccounts/{billing_account_id}`. For example,
@@ -16,10 +34,13 @@ public interface BillingAccountOrBuilder extends
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the billing account. The resource name has the form
    * `billingAccounts/{billing_account_id}`. For example,
@@ -28,12 +49,14 @@ public interface BillingAccountOrBuilder extends
    * 
* * string name = 1 [(.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
@@ -41,33 +64,41 @@ public interface BillingAccountOrBuilder extends
    * 
* * bool open = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The open. */ boolean getOpen(); /** + * + * *
    * The display name given to the billing account, such as `My Billing
    * Account`. This name is displayed in the GCP 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.
    * 
* * 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
@@ -77,10 +108,13 @@ public interface BillingAccountOrBuilder extends
    * 
* * string master_billing_account = 4; + * * @return The masterBillingAccount. */ java.lang.String getMasterBillingAccount(); /** + * + * *
    * If this account is a
    * [subaccount](https://cloud.google.com/billing/docs/concepts), then this
@@ -90,8 +124,8 @@ public interface BillingAccountOrBuilder extends
    * 
* * string master_billing_account = 4; + * * @return The bytes for masterBillingAccount. */ - com.google.protobuf.ByteString - getMasterBillingAccountBytes(); + com.google.protobuf.ByteString getMasterBillingAccountBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java index 45a63c40..025c36b5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Category.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -28,16 +46,15 @@ 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; } + private Category( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private Category( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - serviceDisplayName_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + serviceDisplayName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceFamily_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + resourceFamily_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceGroup_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + resourceGroup_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - usageType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + usageType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,34 +115,39 @@ private Category( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -130,29 +156,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 { @@ -163,12 +189,15 @@ public java.lang.String getServiceDisplayName() { 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 @@ -177,30 +206,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 { @@ -211,12 +240,15 @@ public java.lang.String getResourceFamily() { 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 @@ -225,30 +257,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 { @@ -259,12 +291,15 @@ public java.lang.String getResourceGroup() { 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 @@ -273,30 +308,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 { @@ -305,6 +340,7 @@ public java.lang.String getUsageType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,8 +352,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceDisplayName_); } @@ -359,21 +394,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.Category)) { return super.equals(obj); } com.google.cloud.billing.v1.Category other = (com.google.cloud.billing.v1.Category) obj; - if (!getServiceDisplayName() - .equals(other.getServiceDisplayName())) return false; - if (!getResourceFamily() - .equals(other.getResourceFamily())) return false; - if (!getResourceGroup() - .equals(other.getResourceGroup())) return false; - if (!getUsageType() - .equals(other.getUsageType())) return false; + if (!getServiceDisplayName().equals(other.getServiceDisplayName())) return false; + if (!getResourceFamily().equals(other.getResourceFamily())) return false; + if (!getResourceGroup().equals(other.getResourceGroup())) return false; + if (!getUsageType().equals(other.getUsageType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -398,118 +429,126 @@ 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() @@ -517,16 +556,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -542,9 +580,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 @@ -576,38 +614,39 @@ 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; @@ -663,18 +702,20 @@ 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; @@ -683,20 +724,21 @@ public java.lang.String getServiceDisplayName() { } } /** + * + * *
      * The display name of the service this SKU belongs to.
      * 
* * string service_display_name = 1; + * * @return The bytes for serviceDisplayName. */ - public com.google.protobuf.ByteString - getServiceDisplayNameBytes() { + public com.google.protobuf.ByteString getServiceDisplayNameBytes() { java.lang.Object ref = serviceDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceDisplayName_ = b; return b; } else { @@ -704,54 +746,61 @@ public java.lang.String getServiceDisplayName() { } } /** + * + * *
      * The display name of the service this SKU belongs to.
      * 
* * string service_display_name = 1; + * * @param value The serviceDisplayName to set. * @return This builder for chaining. */ - public Builder setServiceDisplayName( - java.lang.String value) { + 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; @@ -759,19 +808,21 @@ public Builder setServiceDisplayNameBytes( private java.lang.Object resourceFamily_ = ""; /** + * + * *
      * The type of product the SKU refers to.
      * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
      * 
* * string resource_family = 2; + * * @return The resourceFamily. */ public java.lang.String getResourceFamily() { java.lang.Object ref = resourceFamily_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceFamily_ = s; return s; @@ -780,21 +831,22 @@ public java.lang.String getResourceFamily() { } } /** + * + * *
      * The type of product the SKU refers to.
      * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
      * 
* * string resource_family = 2; + * * @return The bytes for resourceFamily. */ - public com.google.protobuf.ByteString - getResourceFamilyBytes() { + public com.google.protobuf.ByteString getResourceFamilyBytes() { java.lang.Object ref = resourceFamily_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceFamily_ = b; return b; } else { @@ -802,57 +854,64 @@ public java.lang.String getResourceFamily() { } } /** + * + * *
      * The type of product the SKU refers to.
      * Example: "Compute", "Storage", "Network", "ApplicationServices" etc.
      * 
* * string resource_family = 2; + * * @param value The resourceFamily to set. * @return This builder for chaining. */ - public Builder setResourceFamily( - java.lang.String value) { + 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; @@ -860,19 +919,21 @@ public Builder setResourceFamilyBytes( private java.lang.Object resourceGroup_ = ""; /** + * + * *
      * A group classification for related SKUs.
      * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
      * 
* * string resource_group = 3; + * * @return The resourceGroup. */ public java.lang.String getResourceGroup() { java.lang.Object ref = resourceGroup_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceGroup_ = s; return s; @@ -881,21 +942,22 @@ public java.lang.String getResourceGroup() { } } /** + * + * *
      * A group classification for related SKUs.
      * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
      * 
* * string resource_group = 3; + * * @return The bytes for resourceGroup. */ - public com.google.protobuf.ByteString - getResourceGroupBytes() { + public com.google.protobuf.ByteString getResourceGroupBytes() { java.lang.Object ref = resourceGroup_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceGroup_ = b; return b; } else { @@ -903,57 +965,64 @@ public java.lang.String getResourceGroup() { } } /** + * + * *
      * A group classification for related SKUs.
      * Example: "RAM", "GPU", "Prediction", "Ops", "GoogleEgress" etc.
      * 
* * string resource_group = 3; + * * @param value The resourceGroup to set. * @return This builder for chaining. */ - public Builder setResourceGroup( - java.lang.String value) { + 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; @@ -961,19 +1030,21 @@ public Builder setResourceGroupBytes( private java.lang.Object usageType_ = ""; /** + * + * *
      * Represents how the SKU is consumed.
      * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
      * 
* * string usage_type = 4; + * * @return The usageType. */ public java.lang.String getUsageType() { java.lang.Object ref = usageType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usageType_ = s; return s; @@ -982,21 +1053,22 @@ public java.lang.String getUsageType() { } } /** + * + * *
      * Represents how the SKU is consumed.
      * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
      * 
* * string usage_type = 4; + * * @return The bytes for usageType. */ - public com.google.protobuf.ByteString - getUsageTypeBytes() { + public com.google.protobuf.ByteString getUsageTypeBytes() { java.lang.Object ref = usageType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); usageType_ = b; return b; } else { @@ -1004,64 +1076,71 @@ public java.lang.String getUsageType() { } } /** + * + * *
      * Represents how the SKU is consumed.
      * Example: "OnDemand", "Preemptible", "Commit1Mo", "Commit1Yr" etc.
      * 
* * string usage_type = 4; + * * @param value The usageType to set. * @return This builder for chaining. */ - public Builder setUsageType( - java.lang.String value) { + 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); } @@ -1071,12 +1150,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(); } @@ -1085,16 +1164,16 @@ 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 { - return new Category(input, extensionRegistry); - } - }; + 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 { + return new Category(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1109,6 +1188,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.Category getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java index 0a422ab1..9d934f6b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CategoryOrBuilder.java @@ -1,95 +1,131 @@ +/* + * 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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java new file mode 100644 index 00000000..c75795b9 --- /dev/null +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudBillingProto.java @@ -0,0 +1,295 @@ +/* + * 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/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java new file mode 100644 index 00000000..cfc74942 --- /dev/null +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CloudCatalogProto.java @@ -0,0 +1,292 @@ +/* + * 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/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java index 1bf14d38..29686a14 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequest.java @@ -1,39 +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; /** + * + * *
  * 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; } + private CreateBillingAccountRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,29 @@ private CreateBillingAccountRequest( case 0: done = true; break; - case 10: { - com.google.cloud.billing.v1.BillingAccount.Builder subBuilder = null; - if (billingAccount_ != null) { - subBuilder = billingAccount_.toBuilder(); + case 10: + { + com.google.cloud.billing.v1.BillingAccount.Builder subBuilder = null; + if (billingAccount_ != null) { + subBuilder = billingAccount_.toBuilder(); + } + billingAccount_ = + input.readMessage( + com.google.cloud.billing.v1.BillingAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(billingAccount_); + billingAccount_ = subBuilder.buildPartial(); + } + + break; } - billingAccount_ = input.readMessage(com.google.cloud.billing.v1.BillingAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(billingAccount_); - billingAccount_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,29 +98,33 @@ private CreateBillingAccountRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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
@@ -109,7 +132,10 @@ private CreateBillingAccountRequest(
    * 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 @@ -117,6 +143,8 @@ public boolean hasBillingAccount() { return billingAccount_ != null; } /** + * + * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -124,14 +152,21 @@ public boolean hasBillingAccount() {
    * account.
    * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The billingAccount. */ @java.lang.Override public com.google.cloud.billing.v1.BillingAccount getBillingAccount() { - return billingAccount_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_; + return billingAccount_ == null + ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() + : billingAccount_; } /** + * + * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -139,7 +174,9 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccount() {
    * account.
    * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder() { @@ -147,6 +184,7 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBu } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +196,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (billingAccount_ != null) { output.writeMessage(1, getBillingAccount()); } @@ -173,8 +210,7 @@ public int getSerializedSize() { size = 0; if (billingAccount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBillingAccount()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBillingAccount()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -184,17 +220,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -217,117 +253,127 @@ 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() @@ -335,16 +381,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -358,9 +403,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 @@ -379,7 +424,8 @@ public com.google.cloud.billing.v1.CreateBillingAccountRequest build() { @java.lang.Override public com.google.cloud.billing.v1.CreateBillingAccountRequest buildPartial() { - com.google.cloud.billing.v1.CreateBillingAccountRequest result = new com.google.cloud.billing.v1.CreateBillingAccountRequest(this); + com.google.cloud.billing.v1.CreateBillingAccountRequest result = + new com.google.cloud.billing.v1.CreateBillingAccountRequest(this); if (billingAccountBuilder_ == null) { result.billingAccount_ = billingAccount_; } else { @@ -393,38 +439,39 @@ 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; @@ -432,7 +479,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.CreateBillingAccountRequest other) { - if (other == com.google.cloud.billing.v1.CreateBillingAccountRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.CreateBillingAccountRequest.getDefaultInstance()) + return this; if (other.hasBillingAccount()) { mergeBillingAccount(other.getBillingAccount()); } @@ -455,7 +503,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.v1.CreateBillingAccountRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.v1.CreateBillingAccountRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -467,8 +516,13 @@ 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
@@ -476,13 +530,18 @@ public Builder mergeFrom(
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the billingAccount field is set. */ public boolean hasBillingAccount() { return billingAccountBuilder_ != null || billingAccount_ != null; } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -490,17 +549,24 @@ public boolean hasBillingAccount() {
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The billingAccount. */ public com.google.cloud.billing.v1.BillingAccount getBillingAccount() { if (billingAccountBuilder_ == null) { - return billingAccount_ == null ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_; + return billingAccount_ == null + ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() + : billingAccount_; } else { return billingAccountBuilder_.getMessage(); } } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -508,7 +574,9 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccount() {
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBillingAccount(com.google.cloud.billing.v1.BillingAccount value) { if (billingAccountBuilder_ == null) { @@ -524,6 +592,8 @@ public Builder setBillingAccount(com.google.cloud.billing.v1.BillingAccount valu return this; } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -531,7 +601,9 @@ public Builder setBillingAccount(com.google.cloud.billing.v1.BillingAccount valu
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBillingAccount( com.google.cloud.billing.v1.BillingAccount.Builder builderForValue) { @@ -545,6 +617,8 @@ public Builder setBillingAccount( return this; } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -552,13 +626,17 @@ public Builder setBillingAccount(
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBillingAccount(com.google.cloud.billing.v1.BillingAccount value) { if (billingAccountBuilder_ == null) { if (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; } @@ -570,6 +648,8 @@ public Builder mergeBillingAccount(com.google.cloud.billing.v1.BillingAccount va return this; } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -577,7 +657,9 @@ public Builder mergeBillingAccount(com.google.cloud.billing.v1.BillingAccount va
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBillingAccount() { if (billingAccountBuilder_ == null) { @@ -591,6 +673,8 @@ public Builder clearBillingAccount() { return this; } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -598,14 +682,18 @@ public Builder clearBillingAccount() {
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountBuilder() { - + onChanged(); return getBillingAccountFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -613,17 +701,22 @@ public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountBuild
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder() { if (billingAccountBuilder_ != null) { return billingAccountBuilder_.getMessageOrBuilder(); } else { - return billingAccount_ == null ? - com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() : billingAccount_; + return billingAccount_ == null + ? com.google.cloud.billing.v1.BillingAccount.getDefaultInstance() + : billingAccount_; } } /** + * + * *
      * Required. The billing account resource to create.
      * Currently CreateBillingAccount only supports subaccount creation, so
@@ -631,24 +724,29 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBu
      * account.
      * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> + com.google.cloud.billing.v1.BillingAccount, + com.google.cloud.billing.v1.BillingAccount.Builder, + com.google.cloud.billing.v1.BillingAccountOrBuilder> getBillingAccountFieldBuilder() { if (billingAccountBuilder_ == null) { - billingAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder>( - getBillingAccount(), - getParentForChildren(), - isClean()); + billingAccountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.v1.BillingAccount, + com.google.cloud.billing.v1.BillingAccount.Builder, + com.google.cloud.billing.v1.BillingAccountOrBuilder>( + getBillingAccount(), getParentForChildren(), isClean()); billingAccount_ = null; } return billingAccountBuilder_; } + @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); } @@ -658,12 +756,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(); } @@ -672,16 +770,16 @@ 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 { - return new CreateBillingAccountRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateBillingAccountRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -696,6 +794,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.billing.v1.CreateBillingAccountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java index d7e23831..32ed78c3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/CreateBillingAccountRequestOrBuilder.java @@ -1,13 +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 CreateBillingAccountRequestOrBuilder extends +public interface CreateBillingAccountRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.CreateBillingAccountRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -15,11 +33,16 @@ public interface CreateBillingAccountRequestOrBuilder extends
    * account.
    * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the billingAccount field is set. */ boolean hasBillingAccount(); /** + * + * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -27,11 +50,16 @@ public interface CreateBillingAccountRequestOrBuilder extends
    * account.
    * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The billingAccount. */ com.google.cloud.billing.v1.BillingAccount getBillingAccount(); /** + * + * *
    * Required. The billing account resource to create.
    * Currently CreateBillingAccount only supports subaccount creation, so
@@ -39,7 +67,9 @@ public interface CreateBillingAccountRequestOrBuilder extends
    * account.
    * 
* - * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount billing_account = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java index 9cb9857a..618b11cd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequest.java @@ -1,40 +1,57 @@ +/* + * 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; } + private GetBillingAccountRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetBillingAccountRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetBillingAccountRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the billing account to retrieve. For example,
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,126 @@ 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() @@ -324,16 +360,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,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 @@ -364,7 +399,8 @@ public com.google.cloud.billing.v1.GetBillingAccountRequest build() { @java.lang.Override public com.google.cloud.billing.v1.GetBillingAccountRequest buildPartial() { - com.google.cloud.billing.v1.GetBillingAccountRequest result = new com.google.cloud.billing.v1.GetBillingAccountRequest(this); + com.google.cloud.billing.v1.GetBillingAccountRequest result = + new com.google.cloud.billing.v1.GetBillingAccountRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ 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; @@ -413,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.GetBillingAccountRequest other) { - if (other == com.google.cloud.billing.v1.GetBillingAccountRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.GetBillingAccountRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +475,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.v1.GetBillingAccountRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.v1.GetBillingAccountRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +488,23 @@ 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; @@ -470,21 +513,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the billing account to retrieve. For example,
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +538,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the billing account to retrieve. For example,
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + 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); } @@ -559,12 +618,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(); } @@ -573,16 +632,16 @@ 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 { - return new GetBillingAccountRequest(input, extensionRegistry); - } - }; + 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 { + return new GetBillingAccountRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +656,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.GetBillingAccountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java new file mode 100644 index 00000000..c363f300 --- /dev/null +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetBillingAccountRequestOrBuilder.java @@ -0,0 +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_billing.proto + +package com.google.cloud.billing.v1; + +public interface GetBillingAccountRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.GetBillingAccountRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the billing account to retrieve. For example,
+   * `billingAccounts/012345-567890-ABCDEF`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the billing account to retrieve. For example,
+   * `billingAccounts/012345-567890-ABCDEF`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java index a1092af2..8a989fec 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequest.java @@ -1,40 +1,57 @@ +/* + * 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; } + private GetProjectBillingInfoRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetProjectBillingInfoRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private GetProjectBillingInfoRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -110,30 +133,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 { @@ -142,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +201,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +229,127 @@ 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() @@ -324,16 +357,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_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 @@ -364,7 +396,8 @@ public com.google.cloud.billing.v1.GetProjectBillingInfoRequest build() { @java.lang.Override public com.google.cloud.billing.v1.GetProjectBillingInfoRequest buildPartial() { - com.google.cloud.billing.v1.GetProjectBillingInfoRequest result = new com.google.cloud.billing.v1.GetProjectBillingInfoRequest(this); + com.google.cloud.billing.v1.GetProjectBillingInfoRequest result = + new com.google.cloud.billing.v1.GetProjectBillingInfoRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +407,39 @@ 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; @@ -413,7 +447,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.GetProjectBillingInfoRequest other) { - if (other == com.google.cloud.billing.v1.GetProjectBillingInfoRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.GetProjectBillingInfoRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +472,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.v1.GetProjectBillingInfoRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.v1.GetProjectBillingInfoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +485,21 @@ 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; @@ -470,21 +508,22 @@ 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 { @@ -492,64 +531,71 @@ 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]; + * * @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); } @@ -559,12 +605,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(); } @@ -573,16 +619,16 @@ 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 { - return new GetProjectBillingInfoRequest(input, extensionRegistry); - } - }; + 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 { + return new GetProjectBillingInfoRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +643,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.billing.v1.GetProjectBillingInfoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java index 58539acd..bd1d3ba4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/GetProjectBillingInfoRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * 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/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java index ecc69fb1..94e813ff 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequest.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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; } + private ListBillingAccountsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListBillingAccountsRequest( case 0: done = true; break; - case 8: { - - pageSize_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: + { + pageSize_ = input.readInt32(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,40 @@ private ListBillingAccountsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -124,6 +148,8 @@ 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`
@@ -131,6 +157,7 @@ public int getPageSize() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -139,14 +166,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -154,16 +182,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -174,6 +201,8 @@ public java.lang.String getPageToken() { 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
@@ -184,6 +213,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 3; + * * @return The filter. */ @java.lang.Override @@ -192,14 +222,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Options for how to filter the returned billing accounts.
    * Currently this only supports filtering for
@@ -210,16 +241,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -228,6 +258,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -260,8 +290,7 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); @@ -277,19 +306,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -313,117 +340,127 @@ 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() @@ -431,16 +468,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -454,9 +490,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 @@ -475,7 +511,8 @@ public com.google.cloud.billing.v1.ListBillingAccountsRequest build() { @java.lang.Override public com.google.cloud.billing.v1.ListBillingAccountsRequest buildPartial() { - com.google.cloud.billing.v1.ListBillingAccountsRequest result = new com.google.cloud.billing.v1.ListBillingAccountsRequest(this); + com.google.cloud.billing.v1.ListBillingAccountsRequest result = + new com.google.cloud.billing.v1.ListBillingAccountsRequest(this); result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.filter_ = filter_; @@ -487,38 +524,39 @@ 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; @@ -526,7 +564,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListBillingAccountsRequest other) { - if (other == com.google.cloud.billing.v1.ListBillingAccountsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.ListBillingAccountsRequest.getDefaultInstance()) + return this; if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } @@ -557,7 +596,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.v1.ListBillingAccountsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.v1.ListBillingAccountsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -567,14 +607,17 @@ 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 @@ -582,32 +625,38 @@ 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; @@ -615,6 +664,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -622,13 +673,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; @@ -637,6 +688,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -644,15 +697,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -660,6 +712,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -667,20 +721,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + 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`
@@ -688,15 +744,18 @@ public Builder setPageToken(
      * 
* * 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`
@@ -704,16 +763,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; @@ -721,6 +780,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Options for how to filter the returned billing accounts.
      * Currently this only supports filtering for
@@ -731,13 +792,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 3; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -746,6 +807,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Options for how to filter the returned billing accounts.
      * Currently this only supports filtering for
@@ -756,15 +819,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -772,6 +834,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Options for how to filter the returned billing accounts.
      * Currently this only supports filtering for
@@ -782,20 +846,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + 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
@@ -806,15 +872,18 @@ public Builder setFilter(
      * 
* * 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
@@ -825,23 +894,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); } @@ -851,12 +920,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(); } @@ -865,16 +934,16 @@ 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 { - return new ListBillingAccountsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListBillingAccountsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -889,6 +958,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.billing.v1.ListBillingAccountsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java index ca0f6ddf..3905e078 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsRequestOrBuilder.java @@ -1,24 +1,45 @@ +/* + * 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`
@@ -26,10 +47,13 @@ public interface ListBillingAccountsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListBillingAccounts`
@@ -37,12 +61,14 @@ public interface ListBillingAccountsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Options for how to filter the returned billing accounts.
    * Currently this only supports filtering for
@@ -53,10 +79,13 @@ public interface ListBillingAccountsRequestOrBuilder extends
    * 
* * 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
@@ -67,8 +96,8 @@ public interface ListBillingAccountsRequestOrBuilder extends
    * 
* * string filter = 3; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java index a70d1a1c..626e84d7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponse.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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; } + private ListBillingAccountsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListBillingAccountsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - billingAccounts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + billingAccounts_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + billingAccounts_.add( + input.readMessage( + com.google.cloud.billing.v1.BillingAccount.parser(), extensionRegistry)); + break; } - billingAccounts_.add( - input.readMessage(com.google.cloud.billing.v1.BillingAccount.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListBillingAccountsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { billingAccounts_ = java.util.Collections.unmodifiableList(billingAccounts_); @@ -94,22 +114,27 @@ private ListBillingAccountsResponse( makeExtensionsImmutable(); } } - 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.
    * 
@@ -121,6 +146,8 @@ public java.util.List getBillingAcco return billingAccounts_; } /** + * + * *
    * A list of billing accounts.
    * 
@@ -128,11 +155,13 @@ public java.util.List getBillingAcco * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBillingAccountsOrBuilderList() { return billingAccounts_; } /** + * + * *
    * A list of billing accounts.
    * 
@@ -144,6 +173,8 @@ public int getBillingAccountsCount() { return billingAccounts_.size(); } /** + * + * *
    * A list of billing accounts.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccounts(int index) return billingAccounts_.get(index); } /** + * + * *
    * A list of billing accounts.
    * 
@@ -170,6 +203,8 @@ 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
@@ -177,6 +212,7 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -185,14 +221,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -200,16 +237,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -218,6 +254,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +266,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < billingAccounts_.size(); i++) { output.writeMessage(1, billingAccounts_.get(i)); } @@ -247,8 +283,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < billingAccounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, billingAccounts_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, billingAccounts_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -261,17 +296,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListBillingAccountsResponse)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListBillingAccountsResponse other = (com.google.cloud.billing.v1.ListBillingAccountsResponse) obj; + com.google.cloud.billing.v1.ListBillingAccountsResponse other = + (com.google.cloud.billing.v1.ListBillingAccountsResponse) obj; - if (!getBillingAccountsList() - .equals(other.getBillingAccountsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getBillingAccountsList().equals(other.getBillingAccountsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -295,117 +329,127 @@ 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() @@ -413,17 +457,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getBillingAccountsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -439,9 +483,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 @@ -460,7 +504,8 @@ 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)) { @@ -480,38 +525,39 @@ 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; @@ -519,7 +565,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListBillingAccountsResponse other) { - if (other == com.google.cloud.billing.v1.ListBillingAccountsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.ListBillingAccountsResponse.getDefaultInstance()) + return this; if (billingAccountsBuilder_ == null) { if (!other.billingAccounts_.isEmpty()) { if (billingAccounts_.isEmpty()) { @@ -538,9 +585,10 @@ public Builder mergeFrom(com.google.cloud.billing.v1.ListBillingAccountsResponse billingAccountsBuilder_ = null; billingAccounts_ = other.billingAccounts_; bitField0_ = (bitField0_ & ~0x00000001); - billingAccountsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBillingAccountsFieldBuilder() : null; + billingAccountsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBillingAccountsFieldBuilder() + : null; } else { billingAccountsBuilder_.addAllMessages(other.billingAccounts_); } @@ -569,7 +617,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.v1.ListBillingAccountsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.v1.ListBillingAccountsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -578,21 +627,29 @@ public Builder mergeFrom( } 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.
      * 
@@ -607,6 +664,8 @@ public java.util.List getBillingAcco } } /** + * + * *
      * A list of billing accounts.
      * 
@@ -621,6 +680,8 @@ public int getBillingAccountsCount() { } } /** + * + * *
      * A list of billing accounts.
      * 
@@ -635,14 +696,15 @@ public com.google.cloud.billing.v1.BillingAccount getBillingAccounts(int index) } } /** + * + * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public Builder setBillingAccounts( - int index, com.google.cloud.billing.v1.BillingAccount value) { + public Builder setBillingAccounts(int index, com.google.cloud.billing.v1.BillingAccount value) { if (billingAccountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -656,6 +718,8 @@ public Builder setBillingAccounts( return this; } /** + * + * *
      * A list of billing accounts.
      * 
@@ -674,6 +738,8 @@ public Builder setBillingAccounts( return this; } /** + * + * *
      * A list of billing accounts.
      * 
@@ -694,14 +760,15 @@ public Builder addBillingAccounts(com.google.cloud.billing.v1.BillingAccount val return this; } /** + * + * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public Builder addBillingAccounts( - int index, com.google.cloud.billing.v1.BillingAccount value) { + public Builder addBillingAccounts(int index, com.google.cloud.billing.v1.BillingAccount value) { if (billingAccountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,6 +782,8 @@ public Builder addBillingAccounts( return this; } /** + * + * *
      * A list of billing accounts.
      * 
@@ -733,6 +802,8 @@ public Builder addBillingAccounts( return this; } /** + * + * *
      * A list of billing accounts.
      * 
@@ -751,6 +822,8 @@ public Builder addBillingAccounts( return this; } /** + * + * *
      * A list of billing accounts.
      * 
@@ -761,8 +834,7 @@ public Builder addAllBillingAccounts( java.lang.Iterable values) { if (billingAccountsBuilder_ == null) { ensureBillingAccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, billingAccounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, billingAccounts_); onChanged(); } else { billingAccountsBuilder_.addAllMessages(values); @@ -770,6 +842,8 @@ public Builder addAllBillingAccounts( return this; } /** + * + * *
      * A list of billing accounts.
      * 
@@ -787,6 +861,8 @@ public Builder clearBillingAccounts() { return this; } /** + * + * *
      * A list of billing accounts.
      * 
@@ -804,17 +880,20 @@ public Builder removeBillingAccounts(int index) { return this; } /** + * + * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountsBuilder( - int index) { + public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountsBuilder(int index) { return getBillingAccountsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of billing accounts.
      * 
@@ -824,19 +903,22 @@ public com.google.cloud.billing.v1.BillingAccount.Builder getBillingAccountsBuil public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrBuilder( int index) { if (billingAccountsBuilder_ == null) { - return billingAccounts_.get(index); } else { + return billingAccounts_.get(index); + } else { return billingAccountsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public java.util.List - getBillingAccountsOrBuilderList() { + public java.util.List + getBillingAccountsOrBuilderList() { if (billingAccountsBuilder_ != null) { return billingAccountsBuilder_.getMessageOrBuilderList(); } else { @@ -844,6 +926,8 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB } } /** + * + * *
      * A list of billing accounts.
      * 
@@ -851,38 +935,47 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrB * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ public com.google.cloud.billing.v1.BillingAccount.Builder addBillingAccountsBuilder() { - return getBillingAccountsFieldBuilder().addBuilder( - com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()); + return getBillingAccountsFieldBuilder() + .addBuilder(com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()); } /** + * + * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public com.google.cloud.billing.v1.BillingAccount.Builder addBillingAccountsBuilder( - int index) { - return getBillingAccountsFieldBuilder().addBuilder( - index, com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()); + public com.google.cloud.billing.v1.BillingAccount.Builder addBillingAccountsBuilder(int index) { + return getBillingAccountsFieldBuilder() + .addBuilder(index, com.google.cloud.billing.v1.BillingAccount.getDefaultInstance()); } /** + * + * *
      * A list of billing accounts.
      * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - public java.util.List - getBillingAccountsBuilderList() { + public java.util.List + getBillingAccountsBuilderList() { return getBillingAccountsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> + com.google.cloud.billing.v1.BillingAccount, + com.google.cloud.billing.v1.BillingAccount.Builder, + com.google.cloud.billing.v1.BillingAccountOrBuilder> getBillingAccountsFieldBuilder() { if (billingAccountsBuilder_ == null) { - billingAccountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder>( + billingAccountsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.v1.BillingAccount, + com.google.cloud.billing.v1.BillingAccount.Builder, + com.google.cloud.billing.v1.BillingAccountOrBuilder>( billingAccounts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -894,6 +987,8 @@ public com.google.cloud.billing.v1.BillingAccount.Builder addBillingAccountsBuil private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -901,13 +996,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; @@ -916,6 +1011,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -923,15 +1020,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -939,6 +1035,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -946,20 +1044,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + 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
@@ -967,15 +1067,18 @@ public Builder setNextPageToken(
      * 
* * 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
@@ -983,23 +1086,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); } @@ -1009,12 +1112,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(); } @@ -1023,16 +1126,16 @@ 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 { - return new ListBillingAccountsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListBillingAccountsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1047,6 +1150,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.billing.v1.ListBillingAccountsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java index 6315edcd..7c1d331f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListBillingAccountsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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.
    * 
@@ -25,6 +44,8 @@ public interface ListBillingAccountsResponseOrBuilder extends */ com.google.cloud.billing.v1.BillingAccount getBillingAccounts(int index); /** + * + * *
    * A list of billing accounts.
    * 
@@ -33,25 +54,30 @@ public interface ListBillingAccountsResponseOrBuilder extends */ int getBillingAccountsCount(); /** + * + * *
    * A list of billing accounts.
    * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - java.util.List + java.util.List getBillingAccountsOrBuilderList(); /** + * + * *
    * A list of billing accounts.
    * 
* * repeated .google.cloud.billing.v1.BillingAccount billing_accounts = 1; */ - com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrBuilder( - int index); + com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrBuilder(int index); /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -59,10 +85,13 @@ com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListBillingAccounts` again with the `page_token` field set to this
@@ -70,8 +99,8 @@ com.google.cloud.billing.v1.BillingAccountOrBuilder getBillingAccountsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java index a135783b..98445293 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequest.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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; } + private ListProjectBillingInfoRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListProjectBillingInfoRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListProjectBillingInfoRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -122,30 +148,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the billing account 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 { @@ -156,12 +184,15 @@ public java.lang.String getName() { 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 @@ -172,6 +203,8 @@ 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`
@@ -179,6 +212,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -187,14 +221,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -202,16 +237,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -220,6 +254,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +266,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -255,8 +289,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -269,19 +302,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListProjectBillingInfoRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListProjectBillingInfoRequest other = (com.google.cloud.billing.v1.ListProjectBillingInfoRequest) obj; + com.google.cloud.billing.v1.ListProjectBillingInfoRequest other = + (com.google.cloud.billing.v1.ListProjectBillingInfoRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -305,117 +336,127 @@ 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() @@ -423,16 +464,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +486,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 @@ -467,7 +507,8 @@ public com.google.cloud.billing.v1.ListProjectBillingInfoRequest build() { @java.lang.Override public com.google.cloud.billing.v1.ListProjectBillingInfoRequest buildPartial() { - com.google.cloud.billing.v1.ListProjectBillingInfoRequest result = new com.google.cloud.billing.v1.ListProjectBillingInfoRequest(this); + com.google.cloud.billing.v1.ListProjectBillingInfoRequest result = + new com.google.cloud.billing.v1.ListProjectBillingInfoRequest(this); result.name_ = name_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -479,38 +520,39 @@ 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; @@ -518,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListProjectBillingInfoRequest other) { - if (other == com.google.cloud.billing.v1.ListProjectBillingInfoRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.ListProjectBillingInfoRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -549,7 +592,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.v1.ListProjectBillingInfoRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.v1.ListProjectBillingInfoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -561,19 +605,23 @@ 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; @@ -582,21 +630,24 @@ 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 { @@ -604,70 +655,86 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the billing account associated with the projects that
      * you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + 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 @@ -675,32 +742,38 @@ 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; @@ -708,6 +781,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -715,13 +790,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; @@ -730,6 +805,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -737,15 +814,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -753,6 +829,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -760,20 +838,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + 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`
@@ -781,15 +861,18 @@ public Builder setPageToken(
      * 
* * 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`
@@ -797,23 +880,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); } @@ -823,12 +906,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(); } @@ -837,16 +920,16 @@ 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 { - return new ListProjectBillingInfoRequest(input, extensionRegistry); - } - }; + 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 { + return new ListProjectBillingInfoRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -861,6 +944,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.billing.v1.ListProjectBillingInfoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java index 9ad17b43..f36541f0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoRequestOrBuilder.java @@ -1,46 +1,76 @@ +/* + * 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`
@@ -48,10 +78,13 @@ public interface ListProjectBillingInfoRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous `ListProjectBillingInfo`
@@ -59,8 +92,8 @@ public interface ListProjectBillingInfoRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java index a9775259..fa51e9b1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponse.java @@ -1,24 +1,43 @@ +/* + * 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_ = ""; @@ -26,16 +45,15 @@ 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; } + private ListProjectBillingInfoResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +73,32 @@ private ListProjectBillingInfoResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - projectBillingInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + projectBillingInfo_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + projectBillingInfo_.add( + input.readMessage( + com.google.cloud.billing.v1.ProjectBillingInfo.parser(), extensionRegistry)); + break; } - projectBillingInfo_.add( - input.readMessage(com.google.cloud.billing.v1.ProjectBillingInfo.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ private ListProjectBillingInfoResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { projectBillingInfo_ = java.util.Collections.unmodifiableList(projectBillingInfo_); @@ -94,22 +115,27 @@ private ListProjectBillingInfoResponse( makeExtensionsImmutable(); } } - 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.
@@ -118,10 +144,13 @@ private ListProjectBillingInfoResponse(
    * 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.
@@ -130,11 +159,13 @@ public java.util.List getProject
    * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getProjectBillingInfoOrBuilderList() {
     return projectBillingInfo_;
   }
   /**
+   *
+   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -147,6 +178,8 @@ public int getProjectBillingInfoCount() {
     return projectBillingInfo_.size();
   }
   /**
+   *
+   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -159,6 +192,8 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(int
     return projectBillingInfo_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -175,6 +210,8 @@ 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
@@ -182,6 +219,7 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -190,14 +228,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -205,16 +244,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -223,6 +261,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,8 +273,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < projectBillingInfo_.size(); i++) { output.writeMessage(1, projectBillingInfo_.get(i)); } @@ -252,8 +290,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_); @@ -266,17 +304,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListProjectBillingInfoResponse)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListProjectBillingInfoResponse other = (com.google.cloud.billing.v1.ListProjectBillingInfoResponse) obj; + com.google.cloud.billing.v1.ListProjectBillingInfoResponse other = + (com.google.cloud.billing.v1.ListProjectBillingInfoResponse) obj; - if (!getProjectBillingInfoList() - .equals(other.getProjectBillingInfoList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getProjectBillingInfoList().equals(other.getProjectBillingInfoList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -300,117 +337,127 @@ 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() @@ -418,17 +465,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getProjectBillingInfoFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +491,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 @@ -465,7 +512,8 @@ 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)) { @@ -485,38 +533,39 @@ 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; @@ -524,7 +573,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListProjectBillingInfoResponse other) { - if (other == com.google.cloud.billing.v1.ListProjectBillingInfoResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.ListProjectBillingInfoResponse.getDefaultInstance()) + return this; if (projectBillingInfoBuilder_ == null) { if (!other.projectBillingInfo_.isEmpty()) { if (projectBillingInfo_.isEmpty()) { @@ -543,9 +593,10 @@ public Builder mergeFrom(com.google.cloud.billing.v1.ListProjectBillingInfoRespo projectBillingInfoBuilder_ = null; projectBillingInfo_ = other.projectBillingInfo_; bitField0_ = (bitField0_ & ~0x00000001); - projectBillingInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProjectBillingInfoFieldBuilder() : null; + projectBillingInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProjectBillingInfoFieldBuilder() + : null; } else { projectBillingInfoBuilder_.addAllMessages(other.projectBillingInfo_); } @@ -574,7 +625,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.v1.ListProjectBillingInfoResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.v1.ListProjectBillingInfoResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -583,21 +635,30 @@ public Builder mergeFrom( } 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.
@@ -605,7 +666,8 @@ private void ensureProjectBillingInfoIsMutable() {
      *
      * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
      */
-    public java.util.List getProjectBillingInfoList() {
+    public java.util.List
+        getProjectBillingInfoList() {
       if (projectBillingInfoBuilder_ == null) {
         return java.util.Collections.unmodifiableList(projectBillingInfo_);
       } else {
@@ -613,6 +675,8 @@ public java.util.List getProject
       }
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -628,6 +692,8 @@ public int getProjectBillingInfoCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -643,6 +709,8 @@ public com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(int
       }
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -665,6 +733,8 @@ public Builder setProjectBillingInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -684,6 +754,8 @@ public Builder setProjectBillingInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -705,6 +777,8 @@ public Builder addProjectBillingInfo(com.google.cloud.billing.v1.ProjectBillingI
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -727,6 +801,8 @@ public Builder addProjectBillingInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -746,6 +822,8 @@ public Builder addProjectBillingInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -765,6 +843,8 @@ public Builder addProjectBillingInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -776,8 +856,7 @@ public Builder addAllProjectBillingInfo(
         java.lang.Iterable values) {
       if (projectBillingInfoBuilder_ == null) {
         ensureProjectBillingInfoIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, projectBillingInfo_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectBillingInfo_);
         onChanged();
       } else {
         projectBillingInfoBuilder_.addAllMessages(values);
@@ -785,6 +864,8 @@ public Builder addAllProjectBillingInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -803,6 +884,8 @@ public Builder clearProjectBillingInfo() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -821,6 +904,8 @@ public Builder removeProjectBillingInfo(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -833,6 +918,8 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder getProjectBillingI
       return getProjectBillingInfoFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -843,11 +930,14 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder getProjectBillingI
     public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder(
         int index) {
       if (projectBillingInfoBuilder_ == null) {
-        return projectBillingInfo_.get(index);  } else {
+        return projectBillingInfo_.get(index);
+      } else {
         return projectBillingInfoBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -855,8 +945,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 {
@@ -864,6 +954,8 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
       }
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -872,10 +964,12 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
      * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
      */
     public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingInfoBuilder() {
-      return getProjectBillingInfoFieldBuilder().addBuilder(
-          com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance());
+      return getProjectBillingInfoFieldBuilder()
+          .addBuilder(com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -885,10 +979,12 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingI
      */
     public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingInfoBuilder(
         int index) {
-      return getProjectBillingInfoFieldBuilder().addBuilder(
-          index, com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance());
+      return getProjectBillingInfoFieldBuilder()
+          .addBuilder(index, com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of `ProjectBillingInfo` resources representing the projects
      * associated with the billing account.
@@ -896,16 +992,22 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingI
      *
      * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
      */
-    public java.util.List 
-         getProjectBillingInfoBuilderList() {
+    public java.util.List
+        getProjectBillingInfoBuilderList() {
       return getProjectBillingInfoFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> 
+            com.google.cloud.billing.v1.ProjectBillingInfo,
+            com.google.cloud.billing.v1.ProjectBillingInfo.Builder,
+            com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>
         getProjectBillingInfoFieldBuilder() {
       if (projectBillingInfoBuilder_ == null) {
-        projectBillingInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>(
+        projectBillingInfoBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.billing.v1.ProjectBillingInfo,
+                com.google.cloud.billing.v1.ProjectBillingInfo.Builder,
+                com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>(
                 projectBillingInfo_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -917,6 +1019,8 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder addProjectBillingI
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -924,13 +1028,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; @@ -939,6 +1043,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -946,15 +1052,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -962,6 +1067,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -969,20 +1076,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + 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
@@ -990,15 +1099,18 @@ public Builder setNextPageToken(
      * 
* * 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
@@ -1006,23 +1118,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); } @@ -1032,12 +1144,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(); } @@ -1046,16 +1158,16 @@ 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 { - return new ListProjectBillingInfoResponse(input, extensionRegistry); - } - }; + 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 { + return new ListProjectBillingInfoResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1070,6 +1182,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.billing.v1.ListProjectBillingInfoResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java index 76816d2b..0fdf71d9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListProjectBillingInfoResponseOrBuilder.java @@ -1,13 +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 ListProjectBillingInfoResponseOrBuilder extends +public interface ListProjectBillingInfoResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListProjectBillingInfoResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -15,9 +33,10 @@ public interface ListProjectBillingInfoResponseOrBuilder extends
    *
    * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
    */
-  java.util.List 
-      getProjectBillingInfoList();
+  java.util.List getProjectBillingInfoList();
   /**
+   *
+   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -27,6 +46,8 @@ public interface ListProjectBillingInfoResponseOrBuilder extends
    */
   com.google.cloud.billing.v1.ProjectBillingInfo getProjectBillingInfo(int index);
   /**
+   *
+   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -36,6 +57,8 @@ public interface ListProjectBillingInfoResponseOrBuilder extends
    */
   int getProjectBillingInfoCount();
   /**
+   *
+   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -43,9 +66,11 @@ public interface ListProjectBillingInfoResponseOrBuilder extends
    *
    * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
    */
-  java.util.List 
+  java.util.List
       getProjectBillingInfoOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of `ProjectBillingInfo` resources representing the projects
    * associated with the billing account.
@@ -53,10 +78,11 @@ public interface ListProjectBillingInfoResponseOrBuilder extends
    *
    * repeated .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 1;
    */
-  com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder(
-      int index);
+  com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -64,10 +90,13 @@ com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrB
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListProjectBillingInfo` again with the `page_token` field set to this
@@ -75,8 +104,8 @@ com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrB
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java index 0c9cfd98..5fcef038 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequest.java @@ -1,40 +1,57 @@ +/* + * 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; } + private ListServicesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,24 +70,25 @@ private ListServicesRequest( case 0: done = true; break; - case 8: { - - pageSize_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: + { + pageSize_ = input.readInt32(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -78,34 +96,39 @@ private ListServicesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -116,6 +139,8 @@ 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`
@@ -123,6 +148,7 @@ public int getPageSize() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -131,14 +157,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListServices`
@@ -146,16 +173,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -164,6 +190,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -193,8 +219,7 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); @@ -207,17 +232,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -238,118 +262,127 @@ 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() @@ -357,16 +390,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_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 @@ -399,7 +431,8 @@ public com.google.cloud.billing.v1.ListServicesRequest build() { @java.lang.Override public com.google.cloud.billing.v1.ListServicesRequest buildPartial() { - com.google.cloud.billing.v1.ListServicesRequest result = new com.google.cloud.billing.v1.ListServicesRequest(this); + com.google.cloud.billing.v1.ListServicesRequest result = + new com.google.cloud.billing.v1.ListServicesRequest(this); result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; onBuilt(); @@ -410,38 +443,39 @@ 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; @@ -449,7 +483,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListServicesRequest other) { - if (other == com.google.cloud.billing.v1.ListServicesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.ListServicesRequest.getDefaultInstance()) + return this; if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } @@ -486,13 +521,16 @@ 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 @@ -500,30 +538,36 @@ 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; @@ -531,6 +575,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListServices`
@@ -538,13 +584,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; @@ -553,6 +599,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListServices`
@@ -560,15 +608,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -576,6 +623,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListServices`
@@ -583,20 +632,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + 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`
@@ -604,15 +655,18 @@ public Builder setPageToken(
      * 
* * 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`
@@ -620,23 +674,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); } @@ -646,12 +700,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(); } @@ -660,16 +714,16 @@ 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 { - return new ListServicesRequest(input, extensionRegistry); - } - }; + 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 { + return new ListServicesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -684,6 +738,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListServicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java index 02186174..66eb7274 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesRequestOrBuilder.java @@ -1,23 +1,44 @@ +/* + * 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`
@@ -25,10 +46,13 @@ public interface ListServicesRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListServices`
@@ -36,8 +60,8 @@ public interface ListServicesRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java index f8208942..00f6aa45 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponse.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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; } + private ListServicesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,31 @@ private ListServicesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - services_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + services_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + services_.add( + input.readMessage( + com.google.cloud.billing.v1.Service.parser(), extensionRegistry)); + break; } - services_.add( - input.readMessage(com.google.cloud.billing.v1.Service.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +104,7 @@ private ListServicesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { services_ = java.util.Collections.unmodifiableList(services_); @@ -94,22 +113,27 @@ private ListServicesResponse( makeExtensionsImmutable(); } } - 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.
    * 
@@ -121,6 +145,8 @@ public java.util.List getServicesList() { return services_; } /** + * + * *
    * A list of services.
    * 
@@ -128,11 +154,13 @@ public java.util.List getServicesList() { * repeated .google.cloud.billing.v1.Service services = 1; */ @java.lang.Override - public java.util.List + public java.util.List getServicesOrBuilderList() { return services_; } /** + * + * *
    * A list of services.
    * 
@@ -144,6 +172,8 @@ public int getServicesCount() { return services_.size(); } /** + * + * *
    * A list of services.
    * 
@@ -155,6 +185,8 @@ public com.google.cloud.billing.v1.Service getServices(int index) { return services_.get(index); } /** + * + * *
    * A list of services.
    * 
@@ -162,14 +194,15 @@ public com.google.cloud.billing.v1.Service getServices(int index) { * repeated .google.cloud.billing.v1.Service services = 1; */ @java.lang.Override - public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder( - int index) { + public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int index) { return services_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 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
@@ -177,6 +210,7 @@ public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -185,14 +219,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListServices` again with the `page_token` field set to this
@@ -200,16 +235,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -218,6 +252,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < services_.size(); i++) { output.writeMessage(1, services_.get(i)); } @@ -247,8 +281,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < services_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, services_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, services_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -261,17 +294,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListServicesResponse)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListServicesResponse other = (com.google.cloud.billing.v1.ListServicesResponse) obj; + com.google.cloud.billing.v1.ListServicesResponse other = + (com.google.cloud.billing.v1.ListServicesResponse) obj; - if (!getServicesList() - .equals(other.getServicesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getServicesList().equals(other.getServicesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,118 +326,127 @@ 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() @@ -413,17 +454,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getServicesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -439,9 +480,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 @@ -460,7 +501,8 @@ 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)) { @@ -480,38 +522,39 @@ 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; @@ -519,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.ListServicesResponse other) { - if (other == com.google.cloud.billing.v1.ListServicesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.ListServicesResponse.getDefaultInstance()) + return this; if (servicesBuilder_ == null) { if (!other.services_.isEmpty()) { if (services_.isEmpty()) { @@ -538,9 +582,10 @@ public Builder mergeFrom(com.google.cloud.billing.v1.ListServicesResponse other) servicesBuilder_ = null; services_ = other.services_; bitField0_ = (bitField0_ & ~0x00000001); - servicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServicesFieldBuilder() : null; + servicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getServicesFieldBuilder() + : null; } else { servicesBuilder_.addAllMessages(other.services_); } @@ -578,21 +623,28 @@ public Builder mergeFrom( } 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.
      * 
@@ -607,6 +659,8 @@ public java.util.List getServicesList() { } } /** + * + * *
      * A list of services.
      * 
@@ -621,6 +675,8 @@ public int getServicesCount() { } } /** + * + * *
      * A list of services.
      * 
@@ -635,14 +691,15 @@ public com.google.cloud.billing.v1.Service getServices(int index) { } } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public Builder setServices( - int index, com.google.cloud.billing.v1.Service value) { + public Builder setServices(int index, com.google.cloud.billing.v1.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -656,6 +713,8 @@ public Builder setServices( return this; } /** + * + * *
      * A list of services.
      * 
@@ -674,6 +733,8 @@ public Builder setServices( return this; } /** + * + * *
      * A list of services.
      * 
@@ -694,14 +755,15 @@ public Builder addServices(com.google.cloud.billing.v1.Service value) { return this; } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public Builder addServices( - int index, com.google.cloud.billing.v1.Service value) { + public Builder addServices(int index, com.google.cloud.billing.v1.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,14 +777,15 @@ public Builder addServices( return this; } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public Builder addServices( - com.google.cloud.billing.v1.Service.Builder builderForValue) { + public Builder addServices(com.google.cloud.billing.v1.Service.Builder builderForValue) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); services_.add(builderForValue.build()); @@ -733,6 +796,8 @@ public Builder addServices( return this; } /** + * + * *
      * A list of services.
      * 
@@ -751,6 +816,8 @@ public Builder addServices( return this; } /** + * + * *
      * A list of services.
      * 
@@ -761,8 +828,7 @@ public Builder addAllServices( java.lang.Iterable values) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, services_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); onChanged(); } else { servicesBuilder_.addAllMessages(values); @@ -770,6 +836,8 @@ public Builder addAllServices( return this; } /** + * + * *
      * A list of services.
      * 
@@ -787,6 +855,8 @@ public Builder clearServices() { return this; } /** + * + * *
      * A list of services.
      * 
@@ -804,39 +874,44 @@ public Builder removeServices(int index) { return this; } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public com.google.cloud.billing.v1.Service.Builder getServicesBuilder( - int index) { + public com.google.cloud.billing.v1.Service.Builder getServicesBuilder(int index) { return getServicesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder( - int index) { + public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int index) { if (servicesBuilder_ == null) { - return services_.get(index); } else { + return services_.get(index); + } else { return servicesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public java.util.List - getServicesOrBuilderList() { + public java.util.List + getServicesOrBuilderList() { if (servicesBuilder_ != null) { return servicesBuilder_.getMessageOrBuilderList(); } else { @@ -844,6 +919,8 @@ public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder( } } /** + * + * *
      * A list of services.
      * 
@@ -851,42 +928,47 @@ public com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder( * repeated .google.cloud.billing.v1.Service services = 1; */ public com.google.cloud.billing.v1.Service.Builder addServicesBuilder() { - return getServicesFieldBuilder().addBuilder( - com.google.cloud.billing.v1.Service.getDefaultInstance()); + return getServicesFieldBuilder() + .addBuilder(com.google.cloud.billing.v1.Service.getDefaultInstance()); } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public com.google.cloud.billing.v1.Service.Builder addServicesBuilder( - int index) { - return getServicesFieldBuilder().addBuilder( - index, com.google.cloud.billing.v1.Service.getDefaultInstance()); + public com.google.cloud.billing.v1.Service.Builder addServicesBuilder(int index) { + return getServicesFieldBuilder() + .addBuilder(index, com.google.cloud.billing.v1.Service.getDefaultInstance()); } /** + * + * *
      * A list of services.
      * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - public java.util.List - getServicesBuilderList() { + public java.util.List getServicesBuilderList() { return getServicesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Service, com.google.cloud.billing.v1.Service.Builder, com.google.cloud.billing.v1.ServiceOrBuilder> + com.google.cloud.billing.v1.Service, + com.google.cloud.billing.v1.Service.Builder, + com.google.cloud.billing.v1.ServiceOrBuilder> getServicesFieldBuilder() { if (servicesBuilder_ == null) { - servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Service, com.google.cloud.billing.v1.Service.Builder, com.google.cloud.billing.v1.ServiceOrBuilder>( - services_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + servicesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.v1.Service, + com.google.cloud.billing.v1.Service.Builder, + com.google.cloud.billing.v1.ServiceOrBuilder>( + services_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); services_ = null; } return servicesBuilder_; @@ -894,6 +976,8 @@ public com.google.cloud.billing.v1.Service.Builder addServicesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListServices` again with the `page_token` field set to this
@@ -901,13 +985,13 @@ public com.google.cloud.billing.v1.Service.Builder addServicesBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -916,6 +1000,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListServices` again with the `page_token` field set to this
@@ -923,15 +1009,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -939,6 +1024,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListServices` again with the `page_token` field set to this
@@ -946,20 +1033,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + 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
@@ -967,15 +1056,18 @@ public Builder setNextPageToken(
      * 
* * 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
@@ -983,23 +1075,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); } @@ -1009,12 +1101,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(); } @@ -1023,16 +1115,16 @@ 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 { - return new ListServicesResponse(input, extensionRegistry); - } - }; + 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 { + return new ListServicesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1047,6 +1139,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListServicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java index 72fed954..f6034dfb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListServicesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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.
    * 
@@ -25,6 +44,8 @@ public interface ListServicesResponseOrBuilder extends */ com.google.cloud.billing.v1.Service getServices(int index); /** + * + * *
    * A list of services.
    * 
@@ -33,25 +54,29 @@ public interface ListServicesResponseOrBuilder extends */ int getServicesCount(); /** + * + * *
    * A list of services.
    * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - java.util.List - getServicesOrBuilderList(); + java.util.List getServicesOrBuilderList(); /** + * + * *
    * A list of services.
    * 
* * repeated .google.cloud.billing.v1.Service services = 1; */ - com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder( - int index); + com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(int index); /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListServices` again with the `page_token` field set to this
@@ -59,10 +84,13 @@ com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListServices` again with the `page_token` field set to this
@@ -70,8 +98,8 @@ com.google.cloud.billing.v1.ServiceOrBuilder getServicesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java index 810501f9..a74bdaf9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -27,16 +45,15 @@ 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; } + private ListSkusRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,62 +72,69 @@ private ListSkusRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); + parent_ = s; + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; } - startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + currencyCode_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + case 40: + { + pageSize_ = input.readInt32(); + break; } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - currencyCode_ = s; - break; - } - case 40: { - - pageSize_ = input.readInt32(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -118,35 +142,42 @@ private ListSkusRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -155,30 +186,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the service.
    * Example: "services/DA34-426B-A397"
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -189,6 +222,8 @@ public java.lang.String getParent() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -199,6 +234,7 @@ public java.lang.String getParent() {
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -206,6 +242,8 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -216,6 +254,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ @java.lang.Override @@ -223,6 +262,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -242,6 +283,8 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
   public static final int END_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Timestamp endTime_;
   /**
+   *
+   *
    * 
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -252,6 +295,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -259,6 +303,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -269,6 +315,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ @java.lang.Override @@ -276,6 +323,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -295,6 +344,8 @@ 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.
@@ -302,6 +353,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    * 
* * string currency_code = 4; + * * @return The currencyCode. */ @java.lang.Override @@ -310,14 +362,15 @@ public java.lang.String getCurrencyCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currencyCode_ = s; return s; } } /** + * + * *
    * The ISO 4217 currency code for the pricing info in the response proto.
    * Will use the conversion rate as of start_time.
@@ -325,16 +378,15 @@ public java.lang.String getCurrencyCode() {
    * 
* * string currency_code = 4; + * * @return The bytes for currencyCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { + public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -345,11 +397,14 @@ public java.lang.String getCurrencyCode() { 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 @@ -360,6 +415,8 @@ 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`
@@ -367,6 +424,7 @@ public int getPageSize() {
    * 
* * string page_token = 6; + * * @return The pageToken. */ @java.lang.Override @@ -375,14 +433,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListSkus`
@@ -390,16 +449,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -408,6 +466,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -419,8 +478,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -452,19 +510,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, currencyCode_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_); @@ -477,31 +532,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListSkusRequest)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListSkusRequest other = (com.google.cloud.billing.v1.ListSkusRequest) obj; + com.google.cloud.billing.v1.ListSkusRequest other = + (com.google.cloud.billing.v1.ListSkusRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getCurrencyCode() - .equals(other.getCurrencyCode())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -534,118 +584,127 @@ 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() @@ -653,16 +712,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -690,9 +748,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 @@ -711,7 +769,8 @@ public com.google.cloud.billing.v1.ListSkusRequest build() { @java.lang.Override public com.google.cloud.billing.v1.ListSkusRequest buildPartial() { - com.google.cloud.billing.v1.ListSkusRequest result = new com.google.cloud.billing.v1.ListSkusRequest(this); + com.google.cloud.billing.v1.ListSkusRequest result = + new com.google.cloud.billing.v1.ListSkusRequest(this); result.parent_ = parent_; if (startTimeBuilder_ == null) { result.startTime_ = startTime_; @@ -734,38 +793,39 @@ 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; @@ -826,19 +886,23 @@ 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; @@ -847,21 +911,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the service.
      * Example: "services/DA34-426B-A397"
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -869,57 +936,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the service.
      * Example: "services/DA34-426B-A397"
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + 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; @@ -927,8 +1007,13 @@ public Builder setParentBytes( private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -939,12 +1024,15 @@ public Builder setParentBytes(
      * 
* * .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.
@@ -955,6 +1043,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -965,6 +1054,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -990,6 +1081,8 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1001,8 +1094,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp start_time = 2;
      */
-    public Builder setStartTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -1013,6 +1105,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1028,7 +1122,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;
         }
@@ -1040,6 +1134,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1063,6 +1159,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1075,11 +1173,13 @@ 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.
@@ -1095,11 +1195,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional inclusive start time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1112,14 +1213,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Timestamp start_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getStartTime(),
-                getParentForChildren(),
-                isClean());
+        startTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getStartTime(), getParentForChildren(), isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
@@ -1127,8 +1231,13 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
 
     private com.google.protobuf.Timestamp endTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        endTimeBuilder_;
     /**
+     *
+     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1139,12 +1248,15 @@ 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.
@@ -1155,6 +1267,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1165,6 +1278,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1190,6 +1305,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1201,8 +1318,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 3;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1213,6 +1329,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1228,7 +1346,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;
         }
@@ -1240,6 +1358,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1263,6 +1383,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1275,11 +1397,13 @@ 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.
@@ -1295,11 +1419,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Optional exclusive end time of the time range for which the pricing
      * versions will be returned. Timestamps in the future are not allowed.
@@ -1312,14 +1437,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
@@ -1327,6 +1455,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
 
     private java.lang.Object currencyCode_ = "";
     /**
+     *
+     *
      * 
      * The ISO 4217 currency code for the pricing info in the response proto.
      * Will use the conversion rate as of start_time.
@@ -1334,13 +1464,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; @@ -1349,6 +1479,8 @@ public java.lang.String getCurrencyCode() { } } /** + * + * *
      * The ISO 4217 currency code for the pricing info in the response proto.
      * Will use the conversion rate as of start_time.
@@ -1356,15 +1488,14 @@ public java.lang.String getCurrencyCode() {
      * 
* * string currency_code = 4; + * * @return The bytes for currencyCode. */ - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { + public com.google.protobuf.ByteString getCurrencyCodeBytes() { java.lang.Object ref = currencyCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); currencyCode_ = b; return b; } else { @@ -1372,6 +1503,8 @@ public java.lang.String getCurrencyCode() { } } /** + * + * *
      * The ISO 4217 currency code for the pricing info in the response proto.
      * Will use the conversion rate as of start_time.
@@ -1379,20 +1512,22 @@ public java.lang.String getCurrencyCode() {
      * 
* * string currency_code = 4; + * * @param value The currencyCode to set. * @return This builder for chaining. */ - public Builder setCurrencyCode( - java.lang.String value) { + 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.
@@ -1400,15 +1535,18 @@ public Builder setCurrencyCode(
      * 
* * 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.
@@ -1416,28 +1554,31 @@ 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 @@ -1445,30 +1586,36 @@ 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; @@ -1476,6 +1623,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListSkus`
@@ -1483,13 +1632,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; @@ -1498,6 +1647,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListSkus`
@@ -1505,15 +1656,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1521,6 +1671,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to return. This should be a
      * `next_page_token` value returned from a previous `ListSkus`
@@ -1528,20 +1680,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 6; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + 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`
@@ -1549,15 +1703,18 @@ public Builder setPageToken(
      * 
* * 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`
@@ -1565,23 +1722,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); } @@ -1591,12 +1748,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(); } @@ -1605,16 +1762,16 @@ 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 { - return new ListSkusRequest(input, extensionRegistry); - } - }; + 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 { + return new ListSkusRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1629,6 +1786,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListSkusRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java index e9fffd88..b03408d4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java @@ -1,35 +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_catalog.proto package com.google.cloud.billing.v1; -public interface ListSkusRequestOrBuilder extends +public interface ListSkusRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.ListSkusRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the service.
    * Example: "services/DA34-426B-A397"
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The name of the service.
    * Example: "services/DA34-426B-A397"
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -40,10 +67,13 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -54,10 +84,13 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Optional inclusive start time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -72,6 +105,8 @@ public interface ListSkusRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -82,10 +117,13 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -96,10 +134,13 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp end_time = 3; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Optional exclusive end time of the time range for which the pricing
    * versions will be returned. Timestamps in the future are not allowed.
@@ -114,6 +155,8 @@ public interface ListSkusRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The ISO 4217 currency code for the pricing info in the response proto.
    * Will use the conversion rate as of start_time.
@@ -121,10 +164,13 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * string currency_code = 4; + * * @return The currencyCode. */ java.lang.String getCurrencyCode(); /** + * + * *
    * The ISO 4217 currency code for the pricing info in the response proto.
    * Will use the conversion rate as of start_time.
@@ -132,22 +178,27 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * string currency_code = 4; + * * @return The bytes for currencyCode. */ - com.google.protobuf.ByteString - getCurrencyCodeBytes(); + com.google.protobuf.ByteString getCurrencyCodeBytes(); /** + * + * *
    * Requested page size. Defaults to 5000.
    * 
* * int32 page_size = 5; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListSkus`
@@ -155,10 +206,13 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to return. This should be a
    * `next_page_token` value returned from a previous `ListSkus`
@@ -166,8 +220,8 @@ public interface ListSkusRequestOrBuilder extends
    * 
* * string page_token = 6; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java index 6bfaabb8..cb3cda44 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponse.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -26,16 +44,15 @@ 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; } + private ListSkusResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private ListSkusResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - skus_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + skus_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + skus_.add( + input.readMessage(com.google.cloud.billing.v1.Sku.parser(), extensionRegistry)); + break; } - skus_.add( - input.readMessage(com.google.cloud.billing.v1.Sku.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private ListSkusResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { skus_ = java.util.Collections.unmodifiableList(skus_); @@ -94,22 +112,27 @@ private ListSkusResponse( makeExtensionsImmutable(); } } - 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.
    * 
@@ -121,6 +144,8 @@ public java.util.List getSkusList() { return skus_; } /** + * + * *
    * The list of public SKUs of the given service.
    * 
@@ -128,11 +153,12 @@ public java.util.List getSkusList() { * repeated .google.cloud.billing.v1.Sku skus = 1; */ @java.lang.Override - public java.util.List - getSkusOrBuilderList() { + public java.util.List getSkusOrBuilderList() { return skus_; } /** + * + * *
    * The list of public SKUs of the given service.
    * 
@@ -144,6 +170,8 @@ public int getSkusCount() { return skus_.size(); } /** + * + * *
    * The list of public SKUs of the given service.
    * 
@@ -155,6 +183,8 @@ public com.google.cloud.billing.v1.Sku getSkus(int index) { return skus_.get(index); } /** + * + * *
    * The list of public SKUs of the given service.
    * 
@@ -162,14 +192,15 @@ public com.google.cloud.billing.v1.Sku getSkus(int index) { * repeated .google.cloud.billing.v1.Sku skus = 1; */ @java.lang.Override - public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder( - int index) { + public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index) { return skus_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 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
@@ -177,6 +208,7 @@ public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -185,14 +217,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListSkus` again with the `page_token` field set to this
@@ -200,16 +233,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -218,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < skus_.size(); i++) { output.writeMessage(1, skus_.get(i)); } @@ -247,8 +279,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < skus_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, skus_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, skus_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -261,17 +292,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ListSkusResponse)) { return super.equals(obj); } - com.google.cloud.billing.v1.ListSkusResponse other = (com.google.cloud.billing.v1.ListSkusResponse) obj; + com.google.cloud.billing.v1.ListSkusResponse other = + (com.google.cloud.billing.v1.ListSkusResponse) obj; - if (!getSkusList() - .equals(other.getSkusList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSkusList().equals(other.getSkusList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,118 +324,127 @@ 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() @@ -413,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSkusFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -439,9 +478,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 @@ -460,7 +499,8 @@ 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)) { @@ -480,38 +520,39 @@ 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; @@ -538,9 +579,10 @@ public Builder mergeFrom(com.google.cloud.billing.v1.ListSkusResponse other) { skusBuilder_ = null; skus_ = other.skus_; bitField0_ = (bitField0_ & ~0x00000001); - skusBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSkusFieldBuilder() : null; + skusBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkusFieldBuilder() + : null; } else { skusBuilder_.addAllMessages(other.skus_); } @@ -578,21 +620,28 @@ public Builder mergeFrom( } 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.
      * 
@@ -607,6 +656,8 @@ public java.util.List getSkusList() { } } /** + * + * *
      * The list of public SKUs of the given service.
      * 
@@ -621,6 +672,8 @@ public int getSkusCount() { } } /** + * + * *
      * The list of public SKUs of the given service.
      * 
@@ -635,14 +688,15 @@ public com.google.cloud.billing.v1.Sku getSkus(int index) { } } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public Builder setSkus( - int index, com.google.cloud.billing.v1.Sku value) { + public Builder setSkus(int index, com.google.cloud.billing.v1.Sku value) { if (skusBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -656,14 +710,15 @@ public Builder setSkus( return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public Builder setSkus( - int index, com.google.cloud.billing.v1.Sku.Builder builderForValue) { + public Builder setSkus(int index, com.google.cloud.billing.v1.Sku.Builder builderForValue) { if (skusBuilder_ == null) { ensureSkusIsMutable(); skus_.set(index, builderForValue.build()); @@ -674,6 +729,8 @@ public Builder setSkus( return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
@@ -694,14 +751,15 @@ public Builder addSkus(com.google.cloud.billing.v1.Sku value) { return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public Builder addSkus( - int index, com.google.cloud.billing.v1.Sku value) { + public Builder addSkus(int index, com.google.cloud.billing.v1.Sku value) { if (skusBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,14 +773,15 @@ public Builder addSkus( return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public Builder addSkus( - com.google.cloud.billing.v1.Sku.Builder builderForValue) { + public Builder addSkus(com.google.cloud.billing.v1.Sku.Builder builderForValue) { if (skusBuilder_ == null) { ensureSkusIsMutable(); skus_.add(builderForValue.build()); @@ -733,14 +792,15 @@ public Builder addSkus( return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public Builder addSkus( - int index, com.google.cloud.billing.v1.Sku.Builder builderForValue) { + public Builder addSkus(int index, com.google.cloud.billing.v1.Sku.Builder builderForValue) { if (skusBuilder_ == null) { ensureSkusIsMutable(); skus_.add(index, builderForValue.build()); @@ -751,6 +811,8 @@ public Builder addSkus( return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
@@ -761,8 +823,7 @@ public Builder addAllSkus( java.lang.Iterable values) { if (skusBuilder_ == null) { ensureSkusIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, skus_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skus_); onChanged(); } else { skusBuilder_.addAllMessages(values); @@ -770,6 +831,8 @@ public Builder addAllSkus( return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
@@ -787,6 +850,8 @@ public Builder clearSkus() { return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
@@ -804,39 +869,44 @@ public Builder removeSkus(int index) { return this; } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public com.google.cloud.billing.v1.Sku.Builder getSkusBuilder( - int index) { + public com.google.cloud.billing.v1.Sku.Builder getSkusBuilder(int index) { return getSkusFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder( - int index) { + public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index) { if (skusBuilder_ == null) { - return skus_.get(index); } else { + return skus_.get(index); + } else { return skusBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public java.util.List - getSkusOrBuilderList() { + public java.util.List + getSkusOrBuilderList() { if (skusBuilder_ != null) { return skusBuilder_.getMessageOrBuilderList(); } else { @@ -844,6 +914,8 @@ public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder( } } /** + * + * *
      * The list of public SKUs of the given service.
      * 
@@ -851,42 +923,46 @@ public com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder( * repeated .google.cloud.billing.v1.Sku skus = 1; */ public com.google.cloud.billing.v1.Sku.Builder addSkusBuilder() { - return getSkusFieldBuilder().addBuilder( - com.google.cloud.billing.v1.Sku.getDefaultInstance()); + return getSkusFieldBuilder().addBuilder(com.google.cloud.billing.v1.Sku.getDefaultInstance()); } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public com.google.cloud.billing.v1.Sku.Builder addSkusBuilder( - int index) { - return getSkusFieldBuilder().addBuilder( - index, com.google.cloud.billing.v1.Sku.getDefaultInstance()); + public com.google.cloud.billing.v1.Sku.Builder addSkusBuilder(int index) { + return getSkusFieldBuilder() + .addBuilder(index, com.google.cloud.billing.v1.Sku.getDefaultInstance()); } /** + * + * *
      * The list of public SKUs of the given service.
      * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - public java.util.List - getSkusBuilderList() { + public java.util.List getSkusBuilderList() { return getSkusFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Sku, com.google.cloud.billing.v1.Sku.Builder, com.google.cloud.billing.v1.SkuOrBuilder> + com.google.cloud.billing.v1.Sku, + com.google.cloud.billing.v1.Sku.Builder, + com.google.cloud.billing.v1.SkuOrBuilder> getSkusFieldBuilder() { if (skusBuilder_ == null) { - skusBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.Sku, com.google.cloud.billing.v1.Sku.Builder, com.google.cloud.billing.v1.SkuOrBuilder>( - skus_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + skusBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.billing.v1.Sku, + com.google.cloud.billing.v1.Sku.Builder, + com.google.cloud.billing.v1.SkuOrBuilder>( + skus_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); skus_ = null; } return skusBuilder_; @@ -894,6 +970,8 @@ public com.google.cloud.billing.v1.Sku.Builder addSkusBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListSkus` again with the `page_token` field set to this
@@ -901,13 +979,13 @@ public com.google.cloud.billing.v1.Sku.Builder addSkusBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -916,6 +994,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListSkus` again with the `page_token` field set to this
@@ -923,15 +1003,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -939,6 +1018,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve the next page of results. To retrieve the next page,
      * call `ListSkus` again with the `page_token` field set to this
@@ -946,20 +1027,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + 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
@@ -967,15 +1050,18 @@ public Builder setNextPageToken(
      * 
* * 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
@@ -983,23 +1069,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); } @@ -1009,12 +1095,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(); } @@ -1023,16 +1109,16 @@ 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 { - return new ListSkusResponse(input, extensionRegistry); - } - }; + 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 { + return new ListSkusResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1047,6 +1133,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ListSkusResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java index aeebda34..db85cce3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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.
    * 
@@ -25,6 +44,8 @@ public interface ListSkusResponseOrBuilder extends */ com.google.cloud.billing.v1.Sku getSkus(int index); /** + * + * *
    * The list of public SKUs of the given service.
    * 
@@ -33,25 +54,29 @@ public interface ListSkusResponseOrBuilder extends */ int getSkusCount(); /** + * + * *
    * The list of public SKUs of the given service.
    * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - java.util.List - getSkusOrBuilderList(); + java.util.List getSkusOrBuilderList(); /** + * + * *
    * The list of public SKUs of the given service.
    * 
* * repeated .google.cloud.billing.v1.Sku skus = 1; */ - com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder( - int index); + com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(int index); /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListSkus` again with the `page_token` field set to this
@@ -59,10 +84,13 @@ com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve the next page of results. To retrieve the next page,
    * call `ListSkus` again with the `page_token` field set to this
@@ -70,8 +98,8 @@ com.google.cloud.billing.v1.SkuOrBuilder getSkusOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java index 80ec217c..4943bb00 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpression.java @@ -1,9 +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_catalog.proto package com.google.cloud.billing.v1; /** + * + * *
  * Expresses a mathematical pricing formula. For Example:-
  * `usage_unit: GBy`
@@ -17,15 +34,16 @@
  *
  * Protobuf type {@code google.cloud.billing.v1.PricingExpression}
  */
-public final class PricingExpression extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PricingExpression extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.PricingExpression)
     PricingExpressionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PricingExpression.newBuilder() to construct.
   private PricingExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PricingExpression() {
     usageUnit_ = "";
     usageUnitDescription_ = "";
@@ -36,16 +54,15 @@ private PricingExpression() {
 
   @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;
   }
+
   private PricingExpression(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -65,56 +82,65 @@ private PricingExpression(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            usageUnit_ = s;
-            break;
-          }
-          case 17: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayQuantity_ = input.readDouble();
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              tieredRates_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              usageUnit_ = s;
+              break;
             }
-            tieredRates_.add(
-                input.readMessage(com.google.cloud.billing.v1.PricingExpression.TierRate.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            usageUnitDescription_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 17:
+            {
+              displayQuantity_ = input.readDouble();
+              break;
+            }
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                tieredRates_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.billing.v1.PricingExpression.TierRate>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              tieredRates_.add(
+                  input.readMessage(
+                      com.google.cloud.billing.v1.PricingExpression.TierRate.parser(),
+                      extensionRegistry));
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            baseUnit_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+              usageUnitDescription_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            baseUnitDescription_ = s;
-            break;
-          }
-          case 57: {
+              baseUnit_ = s;
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            baseUnitConversionFactor_ = input.readDouble();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              baseUnitDescription_ = s;
+              break;
+            }
+          case 57:
+            {
+              baseUnitConversionFactor_ = input.readDouble();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -122,8 +148,7 @@ private PricingExpression(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         tieredRates_ = java.util.Collections.unmodifiableList(tieredRates_);
@@ -132,24 +157,30 @@ private PricingExpression(
       makeExtensionsImmutable();
     }
   }
-  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
@@ -157,31 +188,40 @@ public interface TierRateOrBuilder extends
      * 
* * double start_usage_amount = 1; + * * @return The startUsageAmount. */ double getStartUsageAmount(); /** + * + * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
      * 
* * .google.type.Money unit_price = 2; + * * @return Whether the unitPrice field is set. */ boolean hasUnitPrice(); /** + * + * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
      * 
* * .google.type.Money unit_price = 2; + * * @return The unitPrice. */ com.google.type.Money getUnitPrice(); /** + * + * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -192,36 +232,37 @@ public interface TierRateOrBuilder extends
     com.google.type.MoneyOrBuilder getUnitPriceOrBuilder();
   }
   /**
+   *
+   *
    * 
    * The price rate indicating starting usage and its corresponding price.
    * 
* * Protobuf type {@code google.cloud.billing.v1.PricingExpression.TierRate} */ - public static final class TierRate extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TierRate extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.PricingExpression.TierRate) TierRateOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TierRate.newBuilder() to construct. private TierRate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TierRate() { - } + + private TierRate() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TierRate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TierRate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -240,31 +281,32 @@ private TierRate( case 0: done = true; break; - case 9: { - - startUsageAmount_ = input.readDouble(); - break; - } - case 18: { - com.google.type.Money.Builder subBuilder = null; - if (unitPrice_ != null) { - subBuilder = unitPrice_.toBuilder(); + case 9: + { + startUsageAmount_ = input.readDouble(); + break; } - unitPrice_ = input.readMessage(com.google.type.Money.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(unitPrice_); - unitPrice_ = subBuilder.buildPartial(); + case 18: + { + com.google.type.Money.Builder subBuilder = null; + if (unitPrice_ != null) { + subBuilder = unitPrice_.toBuilder(); + } + unitPrice_ = input.readMessage(com.google.type.Money.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(unitPrice_); + unitPrice_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -272,29 +314,33 @@ private TierRate( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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
@@ -302,6 +348,7 @@ private TierRate(
      * 
* * double start_usage_amount = 1; + * * @return The startUsageAmount. */ @java.lang.Override @@ -312,12 +359,15 @@ public double getStartUsageAmount() { public static final int UNIT_PRICE_FIELD_NUMBER = 2; private com.google.type.Money unitPrice_; /** + * + * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
      * 
* * .google.type.Money unit_price = 2; + * * @return Whether the unitPrice field is set. */ @java.lang.Override @@ -325,12 +375,15 @@ public boolean hasUnitPrice() { return unitPrice_ != null; } /** + * + * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
      * 
* * .google.type.Money unit_price = 2; + * * @return The unitPrice. */ @java.lang.Override @@ -338,6 +391,8 @@ public com.google.type.Money getUnitPrice() { return unitPrice_ == null ? com.google.type.Money.getDefaultInstance() : unitPrice_; } /** + * + * *
      * The price per unit of usage.
      * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -351,6 +406,7 @@ public com.google.type.MoneyOrBuilder getUnitPriceOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -362,8 +418,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (java.lang.Double.doubleToRawLongBits(startUsageAmount_) != 0) {
         output.writeDouble(1, startUsageAmount_);
       }
@@ -380,12 +435,10 @@ public int getSerializedSize() {
 
       size = 0;
       if (java.lang.Double.doubleToRawLongBits(startUsageAmount_) != 0) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeDoubleSize(1, startUsageAmount_);
+        size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, startUsageAmount_);
       }
       if (unitPrice_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getUnitPrice());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUnitPrice());
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -395,20 +448,19 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.cloud.billing.v1.PricingExpression.TierRate)) {
         return super.equals(obj);
       }
-      com.google.cloud.billing.v1.PricingExpression.TierRate other = (com.google.cloud.billing.v1.PricingExpression.TierRate) obj;
+      com.google.cloud.billing.v1.PricingExpression.TierRate other =
+          (com.google.cloud.billing.v1.PricingExpression.TierRate) obj;
 
       if (java.lang.Double.doubleToLongBits(getStartUsageAmount())
-          != java.lang.Double.doubleToLongBits(
-              other.getStartUsageAmount())) return false;
+          != java.lang.Double.doubleToLongBits(other.getStartUsageAmount())) return false;
       if (hasUnitPrice() != other.hasUnitPrice()) return false;
       if (hasUnitPrice()) {
-        if (!getUnitPrice()
-            .equals(other.getUnitPrice())) return false;
+        if (!getUnitPrice().equals(other.getUnitPrice())) return false;
       }
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
@@ -422,8 +474,10 @@ public int hashCode() {
       int hash = 41;
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + START_USAGE_AMOUNT_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-          java.lang.Double.doubleToLongBits(getStartUsageAmount()));
+      hash =
+          (53 * hash)
+              + com.google.protobuf.Internal.hashLong(
+                  java.lang.Double.doubleToLongBits(getStartUsageAmount()));
       if (hasUnitPrice()) {
         hash = (37 * hash) + UNIT_PRICE_FIELD_NUMBER;
         hash = (53 * hash) + getUnitPrice().hashCode();
@@ -434,87 +488,94 @@ public int hashCode() {
     }
 
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.billing.v1.PricingExpression.TierRate parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.billing.v1.PricingExpression.TierRate parseDelimitedFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.billing.v1.PricingExpression.TierRate parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.cloud.billing.v1.PricingExpression.TierRate prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.billing.v1.PricingExpression.TierRate prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -524,27 +585,32 @@ 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() @@ -552,16 +618,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -577,9 +642,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_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 @@ -598,7 +663,8 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate build() { @java.lang.Override public com.google.cloud.billing.v1.PricingExpression.TierRate buildPartial() { - com.google.cloud.billing.v1.PricingExpression.TierRate result = new com.google.cloud.billing.v1.PricingExpression.TierRate(this); + 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_; @@ -613,38 +679,41 @@ 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; @@ -652,7 +721,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.PricingExpression.TierRate other) { - if (other == com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance()) + return this; if (other.getStartUsageAmount() != 0D) { setStartUsageAmount(other.getStartUsageAmount()); } @@ -678,7 +748,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.v1.PricingExpression.TierRate) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.v1.PricingExpression.TierRate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -688,8 +759,10 @@ 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
@@ -697,6 +770,7 @@ public Builder mergeFrom(
        * 
* * double start_usage_amount = 1; + * * @return The startUsageAmount. */ @java.lang.Override @@ -704,6 +778,8 @@ public double getStartUsageAmount() { return startUsageAmount_; } /** + * + * *
        * Usage is priced at this rate only after this amount.
        * Example: start_usage_amount of 10 indicates that the usage will be priced
@@ -711,16 +787,19 @@ 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
@@ -728,10 +807,11 @@ public Builder setStartUsageAmount(double value) {
        * 
* * double start_usage_amount = 1; + * * @return This builder for chaining. */ public Builder clearStartUsageAmount() { - + startUsageAmount_ = 0D; onChanged(); return this; @@ -739,26 +819,33 @@ public Builder clearStartUsageAmount() { private com.google.type.Money unitPrice_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> unitPriceBuilder_; + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + unitPriceBuilder_; /** + * + * *
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
        * 
* * .google.type.Money unit_price = 2; + * * @return Whether the unitPrice field is set. */ public boolean hasUnitPrice() { return 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() { @@ -769,6 +856,8 @@ public com.google.type.Money getUnitPrice() { } } /** + * + * *
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -790,6 +879,8 @@ public Builder setUnitPrice(com.google.type.Money value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -797,8 +888,7 @@ public Builder setUnitPrice(com.google.type.Money value) {
        *
        * .google.type.Money unit_price = 2;
        */
-      public Builder setUnitPrice(
-          com.google.type.Money.Builder builderForValue) {
+      public Builder setUnitPrice(com.google.type.Money.Builder builderForValue) {
         if (unitPriceBuilder_ == null) {
           unitPrice_ = builderForValue.build();
           onChanged();
@@ -809,6 +899,8 @@ public Builder setUnitPrice(
         return this;
       }
       /**
+       *
+       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -820,7 +912,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;
           }
@@ -832,6 +924,8 @@ public Builder mergeUnitPrice(com.google.type.Money value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -851,6 +945,8 @@ public Builder clearUnitPrice() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -859,11 +955,13 @@ 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.
@@ -875,11 +973,12 @@ public com.google.type.MoneyOrBuilder getUnitPriceOrBuilder() {
         if (unitPriceBuilder_ != null) {
           return unitPriceBuilder_.getMessageOrBuilder();
         } else {
-          return unitPrice_ == null ?
-              com.google.type.Money.getDefaultInstance() : unitPrice_;
+          return unitPrice_ == null ? com.google.type.Money.getDefaultInstance() : unitPrice_;
         }
       }
       /**
+       *
+       *
        * 
        * The price per unit of usage.
        * Example: unit_price of amount $10 indicates that each unit will cost $10.
@@ -888,18 +987,20 @@ public com.google.type.MoneyOrBuilder getUnitPriceOrBuilder() {
        * .google.type.Money unit_price = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> 
+              com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
           getUnitPriceFieldBuilder() {
         if (unitPriceBuilder_ == null) {
-          unitPriceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>(
-                  getUnitPrice(),
-                  getParentForChildren(),
-                  isClean());
+          unitPriceBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.type.Money,
+                  com.google.type.Money.Builder,
+                  com.google.type.MoneyOrBuilder>(
+                  getUnitPrice(), getParentForChildren(), isClean());
           unitPrice_ = null;
         }
         return unitPriceBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -912,12 +1013,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();
     }
@@ -926,16 +1027,16 @@ 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 {
-        return new TierRate(input, extensionRegistry);
-      }
-    };
+    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 {
+            return new TierRate(input, extensionRegistry);
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -950,18 +1051,20 @@ 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 @@ -970,30 +1073,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 { @@ -1004,12 +1107,15 @@ public java.lang.String getUsageUnit() { 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 @@ -1018,30 +1124,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 { @@ -1052,12 +1158,15 @@ public java.lang.String getUsageUnitDescription() { 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 @@ -1066,30 +1175,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 { @@ -1100,12 +1209,15 @@ public java.lang.String getBaseUnit() { 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 @@ -1114,30 +1226,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 { @@ -1148,6 +1260,8 @@ public java.lang.String getBaseUnitDescription() { 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.
@@ -1157,6 +1271,7 @@ public java.lang.String getBaseUnitDescription() {
    * 
* * double base_unit_conversion_factor = 7; + * * @return The baseUnitConversionFactor. */ @java.lang.Override @@ -1167,6 +1282,8 @@ public double getBaseUnitConversionFactor() { 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:
@@ -1179,6 +1296,7 @@ public double getBaseUnitConversionFactor() {
    * 
* * double display_quantity = 2; + * * @return The displayQuantity. */ @java.lang.Override @@ -1189,6 +1307,8 @@ public double getDisplayQuantity() { 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
@@ -1198,10 +1318,13 @@ public double getDisplayQuantity() {
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
   @java.lang.Override
-  public java.util.List getTieredRatesList() {
+  public java.util.List
+      getTieredRatesList() {
     return tieredRates_;
   }
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1211,11 +1334,13 @@ public java.util.List ge
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getTieredRatesOrBuilderList() {
     return tieredRates_;
   }
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1229,6 +1354,8 @@ public int getTieredRatesCount() {
     return tieredRates_.size();
   }
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1242,6 +1369,8 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int
     return tieredRates_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -1257,6 +1386,7 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1268,8 +1398,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(usageUnit_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, usageUnit_);
     }
@@ -1304,12 +1433,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, usageUnit_);
     }
     if (java.lang.Double.doubleToRawLongBits(displayQuantity_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeDoubleSize(2, displayQuantity_);
+      size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, displayQuantity_);
     }
     for (int i = 0; i < tieredRates_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, tieredRates_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, tieredRates_.get(i));
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(usageUnitDescription_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, usageUnitDescription_);
@@ -1321,8 +1448,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, baseUnitDescription_);
     }
     if (java.lang.Double.doubleToRawLongBits(baseUnitConversionFactor_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeDoubleSize(7, baseUnitConversionFactor_);
+      size += com.google.protobuf.CodedOutputStream.computeDoubleSize(7, baseUnitConversionFactor_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1332,29 +1458,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.billing.v1.PricingExpression)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.v1.PricingExpression other = (com.google.cloud.billing.v1.PricingExpression) obj;
+    com.google.cloud.billing.v1.PricingExpression other =
+        (com.google.cloud.billing.v1.PricingExpression) obj;
 
-    if (!getUsageUnit()
-        .equals(other.getUsageUnit())) return false;
-    if (!getUsageUnitDescription()
-        .equals(other.getUsageUnitDescription())) return false;
-    if (!getBaseUnit()
-        .equals(other.getBaseUnit())) return false;
-    if (!getBaseUnitDescription()
-        .equals(other.getBaseUnitDescription())) return false;
+    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;
+        != java.lang.Double.doubleToLongBits(other.getBaseUnitConversionFactor())) 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1375,11 +1495,15 @@ public int hashCode() {
     hash = (37 * hash) + BASE_UNIT_DESCRIPTION_FIELD_NUMBER;
     hash = (53 * hash) + getBaseUnitDescription().hashCode();
     hash = (37 * hash) + BASE_UNIT_CONVERSION_FACTOR_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        java.lang.Double.doubleToLongBits(getBaseUnitConversionFactor()));
+    hash =
+        (53 * hash)
+            + com.google.protobuf.Internal.hashLong(
+                java.lang.Double.doubleToLongBits(getBaseUnitConversionFactor()));
     hash = (37 * hash) + DISPLAY_QUANTITY_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        java.lang.Double.doubleToLongBits(getDisplayQuantity()));
+    hash =
+        (53 * hash)
+            + com.google.protobuf.Internal.hashLong(
+                java.lang.Double.doubleToLongBits(getDisplayQuantity()));
     if (getTieredRatesCount() > 0) {
       hash = (37 * hash) + TIERED_RATES_FIELD_NUMBER;
       hash = (53 * hash) + getTieredRatesList().hashCode();
@@ -1389,97 +1513,104 @@ public int hashCode() {
     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`
@@ -1493,21 +1624,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.v1.PricingExpression}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.PricingExpression)
       com.google.cloud.billing.v1.PricingExpressionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.v1.CloudCatalogProto
+          .internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_fieldAccessorTable
+      return com.google.cloud.billing.v1.CloudCatalogProto
+          .internal_static_google_cloud_billing_v1_PricingExpression_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.v1.PricingExpression.class, com.google.cloud.billing.v1.PricingExpression.Builder.class);
+              com.google.cloud.billing.v1.PricingExpression.class,
+              com.google.cloud.billing.v1.PricingExpression.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.v1.PricingExpression.newBuilder()
@@ -1515,17 +1648,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getTieredRatesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1551,9 +1684,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.billing.v1.CloudCatalogProto
+          .internal_static_google_cloud_billing_v1_PricingExpression_descriptor;
     }
 
     @java.lang.Override
@@ -1572,7 +1705,8 @@ 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_;
@@ -1597,38 +1731,39 @@ 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;
@@ -1677,9 +1812,10 @@ 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_);
           }
@@ -1713,23 +1849,26 @@ public Builder mergeFrom(
       }
       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; @@ -1738,21 +1877,22 @@ public java.lang.String getUsageUnit() { } } /** + * + * *
      * The short hand for unit of usage this pricing is specified in.
      * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
      * 
* * string usage_unit = 1; + * * @return The bytes for usageUnit. */ - public com.google.protobuf.ByteString - getUsageUnitBytes() { + public com.google.protobuf.ByteString getUsageUnitBytes() { java.lang.Object ref = usageUnit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); usageUnit_ = b; return b; } else { @@ -1760,57 +1900,64 @@ public java.lang.String getUsageUnit() { } } /** + * + * *
      * The short hand for unit of usage this pricing is specified in.
      * Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".
      * 
* * string usage_unit = 1; + * * @param value The usageUnit to set. * @return This builder for chaining. */ - public Builder setUsageUnit( - java.lang.String value) { + 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; @@ -1818,19 +1965,21 @@ public Builder setUsageUnitBytes( private java.lang.Object usageUnitDescription_ = ""; /** + * + * *
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; + * * @return The usageUnitDescription. */ public java.lang.String getUsageUnitDescription() { java.lang.Object ref = usageUnitDescription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usageUnitDescription_ = s; return s; @@ -1839,21 +1988,22 @@ public java.lang.String getUsageUnitDescription() { } } /** + * + * *
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; + * * @return The bytes for usageUnitDescription. */ - public com.google.protobuf.ByteString - getUsageUnitDescriptionBytes() { + public com.google.protobuf.ByteString getUsageUnitDescriptionBytes() { java.lang.Object ref = usageUnitDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); usageUnitDescription_ = b; return b; } else { @@ -1861,57 +2011,64 @@ public java.lang.String getUsageUnitDescription() { } } /** + * + * *
      * The unit of usage in human readable form.
      * Example: "gibi byte".
      * 
* * string usage_unit_description = 4; + * * @param value The usageUnitDescription to set. * @return This builder for chaining. */ - public Builder setUsageUnitDescription( - java.lang.String value) { + public Builder setUsageUnitDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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) { + public Builder setUsageUnitDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + usageUnitDescription_ = value; onChanged(); return this; @@ -1919,19 +2076,21 @@ public Builder setUsageUnitDescriptionBytes( private java.lang.Object baseUnit_ = ""; /** + * + * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; + * * @return The baseUnit. */ public java.lang.String getBaseUnit() { java.lang.Object ref = baseUnit_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseUnit_ = s; return s; @@ -1940,21 +2099,22 @@ public java.lang.String getBaseUnit() { } } /** + * + * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; + * * @return The bytes for baseUnit. */ - public com.google.protobuf.ByteString - getBaseUnitBytes() { + public com.google.protobuf.ByteString getBaseUnitBytes() { java.lang.Object ref = baseUnit_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); baseUnit_ = b; return b; } else { @@ -1962,57 +2122,64 @@ public java.lang.String getBaseUnit() { } } /** + * + * *
      * The base unit for the SKU which is the unit used in usage exports.
      * Example: "By"
      * 
* * string base_unit = 5; + * * @param value The baseUnit to set. * @return This builder for chaining. */ - public Builder setBaseUnit( - java.lang.String value) { + public Builder setBaseUnit(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + 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) { + public Builder setBaseUnitBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseUnit_ = value; onChanged(); return this; @@ -2020,19 +2187,21 @@ public Builder setBaseUnitBytes( private java.lang.Object baseUnitDescription_ = ""; /** + * + * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; + * * @return The baseUnitDescription. */ public java.lang.String getBaseUnitDescription() { java.lang.Object ref = baseUnitDescription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); baseUnitDescription_ = s; return s; @@ -2041,21 +2210,22 @@ public java.lang.String getBaseUnitDescription() { } } /** + * + * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; + * * @return The bytes for baseUnitDescription. */ - public com.google.protobuf.ByteString - getBaseUnitDescriptionBytes() { + public com.google.protobuf.ByteString getBaseUnitDescriptionBytes() { java.lang.Object ref = baseUnitDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); baseUnitDescription_ = b; return b; } else { @@ -2063,64 +2233,73 @@ public java.lang.String getBaseUnitDescription() { } } /** + * + * *
      * The base unit in human readable form.
      * Example: "byte".
      * 
* * string base_unit_description = 6; + * * @param value The baseUnitDescription to set. * @return This builder for chaining. */ - public Builder setBaseUnitDescription( - java.lang.String value) { + public Builder setBaseUnitDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + 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".
      * 
* * string base_unit_description = 6; + * * @param value The bytes for baseUnitDescription to set. * @return This builder for chaining. */ - public Builder setBaseUnitDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setBaseUnitDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + baseUnitDescription_ = value; onChanged(); return this; } - private double baseUnitConversionFactor_ ; + private double baseUnitConversionFactor_; /** + * + * *
      * Conversion factor for converting from price per usage_unit to price per
      * base_unit, and start_usage_amount to start_usage_amount in base_unit.
@@ -2130,6 +2309,7 @@ public Builder setBaseUnitDescriptionBytes(
      * 
* * double base_unit_conversion_factor = 7; + * * @return The baseUnitConversionFactor. */ @java.lang.Override @@ -2137,6 +2317,8 @@ public double getBaseUnitConversionFactor() { return baseUnitConversionFactor_; } /** + * + * *
      * Conversion factor for converting from price per usage_unit to price per
      * base_unit, and start_usage_amount to start_usage_amount in base_unit.
@@ -2146,16 +2328,19 @@ public double getBaseUnitConversionFactor() {
      * 
* * 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.
@@ -2165,17 +2350,20 @@ public Builder setBaseUnitConversionFactor(double value) {
      * 
* * double base_unit_conversion_factor = 7; + * * @return This builder for chaining. */ public Builder clearBaseUnitConversionFactor() { - + baseUnitConversionFactor_ = 0D; onChanged(); return this; } - private double displayQuantity_ ; + private double displayQuantity_; /** + * + * *
      * The recommended quantity of units for displaying pricing info. When
      * displaying pricing info it is recommended to display:
@@ -2188,6 +2376,7 @@ public Builder clearBaseUnitConversionFactor() {
      * 
* * double display_quantity = 2; + * * @return The displayQuantity. */ @java.lang.Override @@ -2195,6 +2384,8 @@ public double getDisplayQuantity() { return displayQuantity_; } /** + * + * *
      * The recommended quantity of units for displaying pricing info. When
      * displaying pricing info it is recommended to display:
@@ -2207,16 +2398,19 @@ public double getDisplayQuantity() {
      * 
* * double display_quantity = 2; + * * @param value The displayQuantity to set. * @return This builder for chaining. */ public Builder setDisplayQuantity(double value) { - + displayQuantity_ = value; onChanged(); return this; } /** + * + * *
      * The recommended quantity of units for displaying pricing info. When
      * displaying pricing info it is recommended to display:
@@ -2229,28 +2423,37 @@ public Builder setDisplayQuantity(double value) {
      * 
* * double display_quantity = 2; + * * @return This builder for chaining. */ public Builder clearDisplayQuantity() { - + displayQuantity_ = 0D; onChanged(); return this; } private java.util.List tieredRates_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureTieredRatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - tieredRates_ = new java.util.ArrayList(tieredRates_); + tieredRates_ = + new java.util.ArrayList( + tieredRates_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.PricingExpression.TierRate, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder> tieredRatesBuilder_; + com.google.cloud.billing.v1.PricingExpression.TierRate, + com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, + com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder> + tieredRatesBuilder_; /** + * + * *
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2259,7 +2462,8 @@ private void ensureTieredRatesIsMutable() {
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public java.util.List getTieredRatesList() {
+    public java.util.List
+        getTieredRatesList() {
       if (tieredRatesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(tieredRates_);
       } else {
@@ -2267,6 +2471,8 @@ public java.util.List ge
       }
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2283,6 +2489,8 @@ public int getTieredRatesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2299,6 +2507,8 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int
       }
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2322,6 +2532,8 @@ public Builder setTieredRates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2342,6 +2554,8 @@ public Builder setTieredRates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2364,6 +2578,8 @@ public Builder addTieredRates(com.google.cloud.billing.v1.PricingExpression.Tier
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2387,6 +2603,8 @@ public Builder addTieredRates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2407,6 +2625,8 @@ public Builder addTieredRates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2427,6 +2647,8 @@ public Builder addTieredRates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2436,11 +2658,11 @@ public Builder addTieredRates(
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
     public Builder addAllTieredRates(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (tieredRatesBuilder_ == null) {
         ensureTieredRatesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, tieredRates_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tieredRates_);
         onChanged();
       } else {
         tieredRatesBuilder_.addAllMessages(values);
@@ -2448,6 +2670,8 @@ public Builder addAllTieredRates(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2467,6 +2691,8 @@ public Builder clearTieredRates() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2486,6 +2712,8 @@ public Builder removeTieredRates(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2499,6 +2727,8 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder getTieredR
       return getTieredRatesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2510,11 +2740,14 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder getTieredR
     public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTieredRatesOrBuilder(
         int index) {
       if (tieredRatesBuilder_ == null) {
-        return tieredRates_.get(index);  } else {
+        return tieredRates_.get(index);
+      } else {
         return tieredRatesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2523,8 +2756,8 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public java.util.List 
-         getTieredRatesOrBuilderList() {
+    public java.util.List
+        getTieredRatesOrBuilderList() {
       if (tieredRatesBuilder_ != null) {
         return tieredRatesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2532,6 +2765,8 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
       }
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2541,10 +2776,12 @@ public com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder getTiered
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
     public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredRatesBuilder() {
-      return getTieredRatesFieldBuilder().addBuilder(
-          com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
+      return getTieredRatesFieldBuilder()
+          .addBuilder(com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2555,10 +2792,13 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredR
      */
     public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredRatesBuilder(
         int index) {
-      return getTieredRatesFieldBuilder().addBuilder(
-          index, com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
+      return getTieredRatesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.billing.v1.PricingExpression.TierRate.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of tiered rates for this pricing. The total cost is computed by
      * applying each of the tiered rates on usage. This repeated list is sorted
@@ -2567,27 +2807,30 @@ public com.google.cloud.billing.v1.PricingExpression.TierRate.Builder addTieredR
      *
      * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
      */
-    public java.util.List 
-         getTieredRatesBuilderList() {
+    public java.util.List
+        getTieredRatesBuilderList() {
       return getTieredRatesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.billing.v1.PricingExpression.TierRate, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder> 
+            com.google.cloud.billing.v1.PricingExpression.TierRate,
+            com.google.cloud.billing.v1.PricingExpression.TierRate.Builder,
+            com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder>
         getTieredRatesFieldBuilder() {
       if (tieredRatesBuilder_ == null) {
-        tieredRatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.billing.v1.PricingExpression.TierRate, com.google.cloud.billing.v1.PricingExpression.TierRate.Builder, com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder>(
-                tieredRates_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        tieredRatesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.billing.v1.PricingExpression.TierRate,
+                com.google.cloud.billing.v1.PricingExpression.TierRate.Builder,
+                com.google.cloud.billing.v1.PricingExpression.TierRateOrBuilder>(
+                tieredRates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         tieredRates_ = null;
       }
       return tieredRatesBuilder_;
     }
+
     @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);
     }
 
@@ -2597,12 +2840,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();
   }
@@ -2611,16 +2854,16 @@ 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 {
-      return new PricingExpression(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new PricingExpression(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2635,6 +2878,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.billing.v1.PricingExpression getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java
similarity index 82%
rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java
rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java
index 978834ae..847a1caf 100644
--- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java
+++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingExpressionOrBuilder.java
@@ -1,101 +1,139 @@
+/*
+ * 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 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.
@@ -105,11 +143,14 @@ public interface PricingExpressionOrBuilder extends
    * 
* * 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:
@@ -122,11 +163,14 @@ public interface PricingExpressionOrBuilder extends
    * 
* * double display_quantity = 2; + * * @return The displayQuantity. */ double getDisplayQuantity(); /** + * + * *
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -135,9 +179,10 @@ public interface PricingExpressionOrBuilder extends
    *
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
-  java.util.List 
-      getTieredRatesList();
+  java.util.List getTieredRatesList();
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -148,6 +193,8 @@ public interface PricingExpressionOrBuilder extends
    */
   com.google.cloud.billing.v1.PricingExpression.TierRate getTieredRates(int index);
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -158,6 +205,8 @@ public interface PricingExpressionOrBuilder extends
    */
   int getTieredRatesCount();
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
@@ -166,9 +215,11 @@ public interface PricingExpressionOrBuilder extends
    *
    * repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
    */
-  java.util.List 
+  java.util.List
       getTieredRatesOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of tiered rates for this pricing. The total cost is computed by
    * applying each of the tiered rates on usage. This repeated list is sorted
diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java
similarity index 75%
rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java
rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java
index c7f5de4f..434e4d3b 100644
--- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java
+++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfo.java
@@ -1,40 +1,57 @@
+/*
+ * 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; } + private PricingInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,63 +70,72 @@ private PricingInfo( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (effectiveTime_ != null) { - subBuilder = effectiveTime_.toBuilder(); - } - effectiveTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(effectiveTime_); - effectiveTime_ = subBuilder.buildPartial(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (effectiveTime_ != null) { + subBuilder = effectiveTime_.toBuilder(); + } + effectiveTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(effectiveTime_); + effectiveTime_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - summary_ = s; - break; - } - case 26: { - com.google.cloud.billing.v1.PricingExpression.Builder subBuilder = null; - if (pricingExpression_ != null) { - subBuilder = pricingExpression_.toBuilder(); + summary_ = s; + break; } - pricingExpression_ = input.readMessage(com.google.cloud.billing.v1.PricingExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pricingExpression_); - pricingExpression_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.billing.v1.PricingExpression.Builder subBuilder = null; + if (pricingExpression_ != null) { + subBuilder = pricingExpression_.toBuilder(); + } + pricingExpression_ = + input.readMessage( + com.google.cloud.billing.v1.PricingExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pricingExpression_); + pricingExpression_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 34: { - com.google.cloud.billing.v1.AggregationInfo.Builder subBuilder = null; - if (aggregationInfo_ != null) { - subBuilder = aggregationInfo_.toBuilder(); + case 34: + { + com.google.cloud.billing.v1.AggregationInfo.Builder subBuilder = null; + if (aggregationInfo_ != null) { + subBuilder = aggregationInfo_.toBuilder(); + } + aggregationInfo_ = + input.readMessage( + com.google.cloud.billing.v1.AggregationInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(aggregationInfo_); + aggregationInfo_ = subBuilder.buildPartial(); + } + + break; } - aggregationInfo_ = input.readMessage(com.google.cloud.billing.v1.AggregationInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(aggregationInfo_); - aggregationInfo_ = subBuilder.buildPartial(); + case 41: + { + currencyConversionRate_ = input.readDouble(); + break; } - - break; - } - case 41: { - - currencyConversionRate_ = input.readDouble(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -117,29 +143,33 @@ private PricingInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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
@@ -150,6 +180,7 @@ private PricingInfo(
    * 
* * .google.protobuf.Timestamp effective_time = 1; + * * @return Whether the effectiveTime field is set. */ @java.lang.Override @@ -157,6 +188,8 @@ public boolean hasEffectiveTime() { return effectiveTime_ != null; } /** + * + * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -167,13 +200,18 @@ public boolean hasEffectiveTime() {
    * 
* * .google.protobuf.Timestamp effective_time = 1; + * * @return The effectiveTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEffectiveTime() { - return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; + return effectiveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : effectiveTime_; } /** + * + * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -193,12 +231,15 @@ 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 @@ -207,30 +248,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 { @@ -241,11 +282,14 @@ public java.lang.String getSummary() { public static final int PRICING_EXPRESSION_FIELD_NUMBER = 3; private com.google.cloud.billing.v1.PricingExpression pricingExpression_; /** + * + * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; + * * @return Whether the pricingExpression field is set. */ @java.lang.Override @@ -253,18 +297,25 @@ public boolean hasPricingExpression() { return pricingExpression_ != null; } /** + * + * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; + * * @return The pricingExpression. */ @java.lang.Override public com.google.cloud.billing.v1.PricingExpression getPricingExpression() { - return pricingExpression_ == null ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() : pricingExpression_; + return pricingExpression_ == null + ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() + : pricingExpression_; } /** + * + * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
@@ -279,12 +330,15 @@ 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 @@ -292,19 +346,26 @@ public boolean hasAggregationInfo() { return aggregationInfo_ != null; } /** + * + * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
    * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; + * * @return The aggregationInfo. */ @java.lang.Override public com.google.cloud.billing.v1.AggregationInfo getAggregationInfo() { - return aggregationInfo_ == null ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance() : aggregationInfo_; + return aggregationInfo_ == null + ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance() + : aggregationInfo_; } /** + * + * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
@@ -320,6 +381,8 @@ 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
@@ -329,6 +392,7 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
    * 
* * double currency_conversion_rate = 5; + * * @return The currencyConversionRate. */ @java.lang.Override @@ -337,6 +401,7 @@ public double getCurrencyConversionRate() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -348,8 +413,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (effectiveTime_ != null) { output.writeMessage(1, getEffectiveTime()); } @@ -375,23 +439,19 @@ public int getSerializedSize() { size = 0; if (effectiveTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEffectiveTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEffectiveTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, summary_); } if (pricingExpression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPricingExpression()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPricingExpression()); } if (aggregationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAggregationInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAggregationInfo()); } if (java.lang.Double.doubleToRawLongBits(currencyConversionRate_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(5, currencyConversionRate_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, currencyConversionRate_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -401,7 +461,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); @@ -410,24 +470,19 @@ public boolean equals(final java.lang.Object obj) { if (hasEffectiveTime() != other.hasEffectiveTime()) return false; if (hasEffectiveTime()) { - if (!getEffectiveTime() - .equals(other.getEffectiveTime())) return false; + if (!getEffectiveTime().equals(other.getEffectiveTime())) return false; } - if (!getSummary() - .equals(other.getSummary())) return false; + if (!getSummary().equals(other.getSummary())) return false; if (hasPricingExpression() != other.hasPricingExpression()) return false; if (hasPricingExpression()) { - if (!getPricingExpression() - .equals(other.getPricingExpression())) return false; + if (!getPricingExpression().equals(other.getPricingExpression())) return false; } if (hasAggregationInfo() != other.hasAggregationInfo()) return false; if (hasAggregationInfo()) { - if (!getAggregationInfo() - .equals(other.getAggregationInfo())) return false; + if (!getAggregationInfo().equals(other.getAggregationInfo())) return false; } if (java.lang.Double.doubleToLongBits(getCurrencyConversionRate()) - != java.lang.Double.doubleToLongBits( - other.getCurrencyConversionRate())) return false; + != java.lang.Double.doubleToLongBits(other.getCurrencyConversionRate())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -454,125 +509,136 @@ 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) + unknownFields.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() @@ -580,16 +646,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -619,9 +684,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 @@ -640,7 +705,8 @@ public com.google.cloud.billing.v1.PricingInfo build() { @java.lang.Override public com.google.cloud.billing.v1.PricingInfo buildPartial() { - com.google.cloud.billing.v1.PricingInfo result = new com.google.cloud.billing.v1.PricingInfo(this); + com.google.cloud.billing.v1.PricingInfo result = + new com.google.cloud.billing.v1.PricingInfo(this); if (effectiveTimeBuilder_ == null) { result.effectiveTime_ = effectiveTime_; } else { @@ -666,38 +732,39 @@ 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; @@ -753,8 +820,13 @@ 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
@@ -765,12 +837,15 @@ 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
@@ -781,16 +856,21 @@ public boolean hasEffectiveTime() {
      * 
* * .google.protobuf.Timestamp effective_time = 1; + * * @return The effectiveTime. */ public com.google.protobuf.Timestamp getEffectiveTime() { if (effectiveTimeBuilder_ == null) { - return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; + return effectiveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : effectiveTime_; } else { return effectiveTimeBuilder_.getMessage(); } } /** + * + * *
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -816,6 +896,8 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -827,8 +909,7 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp effective_time = 1;
      */
-    public Builder setEffectiveTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (effectiveTimeBuilder_ == null) {
         effectiveTime_ = builderForValue.build();
         onChanged();
@@ -839,6 +920,8 @@ public Builder setEffectiveTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -854,7 +937,9 @@ 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;
         }
@@ -866,6 +951,8 @@ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -889,6 +976,8 @@ public Builder clearEffectiveTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -901,11 +990,13 @@ 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
@@ -921,11 +1012,14 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
       if (effectiveTimeBuilder_ != null) {
         return effectiveTimeBuilder_.getMessageOrBuilder();
       } else {
-        return effectiveTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_;
+        return effectiveTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : effectiveTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The timestamp from which this pricing was effective within the requested
      * time range. This is guaranteed to be greater than or equal to the
@@ -938,14 +1032,17 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
      * .google.protobuf.Timestamp effective_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEffectiveTimeFieldBuilder() {
       if (effectiveTimeBuilder_ == null) {
-        effectiveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEffectiveTime(),
-                getParentForChildren(),
-                isClean());
+        effectiveTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEffectiveTime(), getParentForChildren(), isClean());
         effectiveTime_ = null;
       }
       return effectiveTimeBuilder_;
@@ -953,19 +1050,21 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
 
     private java.lang.Object summary_ = "";
     /**
+     *
+     *
      * 
      * An optional human readable summary of the pricing information, has a
      * maximum length of 256 characters.
      * 
* * string summary = 2; + * * @return The summary. */ public java.lang.String getSummary() { java.lang.Object ref = summary_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summary_ = s; return s; @@ -974,21 +1073,22 @@ public java.lang.String getSummary() { } } /** + * + * *
      * An optional human readable summary of the pricing information, has a
      * maximum length of 256 characters.
      * 
* * string summary = 2; + * * @return The bytes for summary. */ - public com.google.protobuf.ByteString - getSummaryBytes() { + public com.google.protobuf.ByteString getSummaryBytes() { java.lang.Object ref = summary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); summary_ = b; return b; } else { @@ -996,57 +1096,64 @@ public java.lang.String getSummary() { } } /** + * + * *
      * An optional human readable summary of the pricing information, has a
      * maximum length of 256 characters.
      * 
* * string summary = 2; + * * @param value The summary to set. * @return This builder for chaining. */ - public Builder setSummary( - java.lang.String value) { + 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; @@ -1054,34 +1161,47 @@ public Builder setSummaryBytes( private com.google.cloud.billing.v1.PricingExpression pricingExpression_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.PricingExpression, com.google.cloud.billing.v1.PricingExpression.Builder, com.google.cloud.billing.v1.PricingExpressionOrBuilder> pricingExpressionBuilder_; + com.google.cloud.billing.v1.PricingExpression, + com.google.cloud.billing.v1.PricingExpression.Builder, + com.google.cloud.billing.v1.PricingExpressionOrBuilder> + pricingExpressionBuilder_; /** + * + * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; + * * @return Whether the pricingExpression field is set. */ public boolean hasPricingExpression() { return 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.
      * 
@@ -1102,6 +1222,8 @@ public Builder setPricingExpression(com.google.cloud.billing.v1.PricingExpressio return this; } /** + * + * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1120,6 +1242,8 @@ public Builder setPricingExpression( return this; } /** + * + * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1130,7 +1254,9 @@ 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; } @@ -1142,6 +1268,8 @@ public Builder mergePricingExpression(com.google.cloud.billing.v1.PricingExpress return this; } /** + * + * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1160,6 +1288,8 @@ public Builder clearPricingExpression() { return this; } /** + * + * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1167,11 +1297,13 @@ 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.
      * 
@@ -1182,11 +1314,14 @@ public com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressi if (pricingExpressionBuilder_ != null) { return pricingExpressionBuilder_.getMessageOrBuilder(); } else { - return pricingExpression_ == null ? - com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() : pricingExpression_; + return pricingExpression_ == null + ? com.google.cloud.billing.v1.PricingExpression.getDefaultInstance() + : pricingExpression_; } } /** + * + * *
      * Expresses the pricing formula. See `PricingExpression` for an example.
      * 
@@ -1194,14 +1329,17 @@ public com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressi * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.PricingExpression, com.google.cloud.billing.v1.PricingExpression.Builder, com.google.cloud.billing.v1.PricingExpressionOrBuilder> + com.google.cloud.billing.v1.PricingExpression, + com.google.cloud.billing.v1.PricingExpression.Builder, + com.google.cloud.billing.v1.PricingExpressionOrBuilder> getPricingExpressionFieldBuilder() { if (pricingExpressionBuilder_ == null) { - pricingExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.PricingExpression, com.google.cloud.billing.v1.PricingExpression.Builder, com.google.cloud.billing.v1.PricingExpressionOrBuilder>( - getPricingExpression(), - getParentForChildren(), - isClean()); + pricingExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.billing.v1.PricingExpression, + com.google.cloud.billing.v1.PricingExpression.Builder, + com.google.cloud.billing.v1.PricingExpressionOrBuilder>( + getPricingExpression(), getParentForChildren(), isClean()); pricingExpression_ = null; } return pricingExpressionBuilder_; @@ -1209,36 +1347,49 @@ public com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressi private com.google.cloud.billing.v1.AggregationInfo aggregationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.AggregationInfo, com.google.cloud.billing.v1.AggregationInfo.Builder, com.google.cloud.billing.v1.AggregationInfoOrBuilder> aggregationInfoBuilder_; + com.google.cloud.billing.v1.AggregationInfo, + com.google.cloud.billing.v1.AggregationInfo.Builder, + com.google.cloud.billing.v1.AggregationInfoOrBuilder> + aggregationInfoBuilder_; /** + * + * *
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
      * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; + * * @return Whether the aggregationInfo field is set. */ public boolean hasAggregationInfo() { return 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.
@@ -1260,6 +1411,8 @@ public Builder setAggregationInfo(com.google.cloud.billing.v1.AggregationInfo va
       return this;
     }
     /**
+     *
+     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1279,6 +1432,8 @@ public Builder setAggregationInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1290,7 +1445,9 @@ 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;
         }
@@ -1302,6 +1459,8 @@ public Builder mergeAggregationInfo(com.google.cloud.billing.v1.AggregationInfo
       return this;
     }
     /**
+     *
+     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1321,6 +1480,8 @@ public Builder clearAggregationInfo() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1329,11 +1490,13 @@ 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.
@@ -1345,11 +1508,14 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
       if (aggregationInfoBuilder_ != null) {
         return aggregationInfoBuilder_.getMessageOrBuilder();
       } else {
-        return aggregationInfo_ == null ?
-            com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance() : aggregationInfo_;
+        return aggregationInfo_ == null
+            ? com.google.cloud.billing.v1.AggregationInfo.getDefaultInstance()
+            : aggregationInfo_;
       }
     }
     /**
+     *
+     *
      * 
      * Aggregation Info. This can be left unspecified if the pricing expression
      * doesn't require aggregation.
@@ -1358,21 +1524,26 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
      * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.billing.v1.AggregationInfo, com.google.cloud.billing.v1.AggregationInfo.Builder, com.google.cloud.billing.v1.AggregationInfoOrBuilder> 
+            com.google.cloud.billing.v1.AggregationInfo,
+            com.google.cloud.billing.v1.AggregationInfo.Builder,
+            com.google.cloud.billing.v1.AggregationInfoOrBuilder>
         getAggregationInfoFieldBuilder() {
       if (aggregationInfoBuilder_ == null) {
-        aggregationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.v1.AggregationInfo, com.google.cloud.billing.v1.AggregationInfo.Builder, com.google.cloud.billing.v1.AggregationInfoOrBuilder>(
-                getAggregationInfo(),
-                getParentForChildren(),
-                isClean());
+        aggregationInfoBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.billing.v1.AggregationInfo,
+                com.google.cloud.billing.v1.AggregationInfo.Builder,
+                com.google.cloud.billing.v1.AggregationInfoOrBuilder>(
+                getAggregationInfo(), getParentForChildren(), isClean());
         aggregationInfo_ = null;
       }
       return aggregationInfoBuilder_;
     }
 
-    private double currencyConversionRate_ ;
+    private double currencyConversionRate_;
     /**
+     *
+     *
      * 
      * Conversion rate used for currency conversion, from USD to the currency
      * specified in the request. This includes any surcharge collected for billing
@@ -1382,6 +1553,7 @@ public com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOr
      * 
* * double currency_conversion_rate = 5; + * * @return The currencyConversionRate. */ @java.lang.Override @@ -1389,6 +1561,8 @@ public double getCurrencyConversionRate() { return currencyConversionRate_; } /** + * + * *
      * Conversion rate used for currency conversion, from USD to the currency
      * specified in the request. This includes any surcharge collected for billing
@@ -1398,16 +1572,19 @@ 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
@@ -1417,17 +1594,18 @@ 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); } @@ -1437,12 +1615,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(); } @@ -1451,16 +1629,16 @@ 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 { - return new PricingInfo(input, extensionRegistry); - } - }; + 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 { + return new PricingInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1475,6 +1653,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.PricingInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java similarity index 84% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java index c7ac5c8a..a4155ac2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/PricingInfoOrBuilder.java @@ -1,13 +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_catalog.proto package com.google.cloud.billing.v1; -public interface PricingInfoOrBuilder extends +public interface PricingInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.billing.v1.PricingInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -18,10 +36,13 @@ public interface PricingInfoOrBuilder extends
    * 
* * .google.protobuf.Timestamp effective_time = 1; + * * @return Whether the effectiveTime field is set. */ boolean hasEffectiveTime(); /** + * + * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -32,10 +53,13 @@ public interface PricingInfoOrBuilder extends
    * 
* * .google.protobuf.Timestamp effective_time = 1; + * * @return The effectiveTime. */ com.google.protobuf.Timestamp getEffectiveTime(); /** + * + * *
    * The timestamp from which this pricing was effective within the requested
    * time range. This is guaranteed to be greater than or equal to the
@@ -50,46 +74,59 @@ public interface PricingInfoOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * An optional human readable summary of the pricing information, has a
    * maximum length of 256 characters.
    * 
* * string summary = 2; + * * @return The summary. */ java.lang.String getSummary(); /** + * + * *
    * An optional human readable summary of the pricing information, has a
    * maximum length of 256 characters.
    * 
* * string summary = 2; + * * @return The bytes for summary. */ - com.google.protobuf.ByteString - getSummaryBytes(); + com.google.protobuf.ByteString getSummaryBytes(); /** + * + * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; + * * @return Whether the pricingExpression field is set. */ boolean hasPricingExpression(); /** + * + * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
* * .google.cloud.billing.v1.PricingExpression pricing_expression = 3; + * * @return The pricingExpression. */ com.google.cloud.billing.v1.PricingExpression getPricingExpression(); /** + * + * *
    * Expresses the pricing formula. See `PricingExpression` for an example.
    * 
@@ -99,26 +136,34 @@ public interface PricingInfoOrBuilder extends com.google.cloud.billing.v1.PricingExpressionOrBuilder getPricingExpressionOrBuilder(); /** + * + * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
    * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; + * * @return Whether the aggregationInfo field is set. */ boolean hasAggregationInfo(); /** + * + * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
    * 
* * .google.cloud.billing.v1.AggregationInfo aggregation_info = 4; + * * @return The aggregationInfo. */ com.google.cloud.billing.v1.AggregationInfo getAggregationInfo(); /** + * + * *
    * Aggregation Info. This can be left unspecified if the pricing expression
    * doesn't require aggregation.
@@ -129,6 +174,8 @@ public interface PricingInfoOrBuilder extends
   com.google.cloud.billing.v1.AggregationInfoOrBuilder getAggregationInfoOrBuilder();
 
   /**
+   *
+   *
    * 
    * Conversion rate used for currency conversion, from USD to the currency
    * specified in the request. This includes any surcharge collected for billing
@@ -138,6 +185,7 @@ public interface PricingInfoOrBuilder extends
    * 
* * double currency_conversion_rate = 5; + * * @return The currencyConversionRate. */ double getCurrencyConversionRate(); diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java index 6f9642ef..2098162b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfo.java @@ -1,9 +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
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.billing.v1.ProjectBillingInfo}
  */
-public final class ProjectBillingInfo extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ProjectBillingInfo extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.billing.v1.ProjectBillingInfo)
     ProjectBillingInfoOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ProjectBillingInfo.newBuilder() to construct.
   private ProjectBillingInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ProjectBillingInfo() {
     name_ = "";
     projectId_ = "";
@@ -29,16 +47,15 @@ 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;
   }
+
   private ProjectBillingInfo(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,36 +74,39 @@ private ProjectBillingInfo(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            projectId_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            billingAccountName_ = s;
-            break;
-          }
-          case 32: {
+              projectId_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            billingEnabled_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              billingAccountName_ = s;
+              break;
+            }
+          case 32:
+            {
+              billingEnabled_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -94,29 +114,33 @@ private ProjectBillingInfo(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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
@@ -125,6 +149,7 @@ private ProjectBillingInfo(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -133,14 +158,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name for the `ProjectBillingInfo`; has the form
    * `projects/{project_id}/billingInfo`. For example, the resource name for the
@@ -149,16 +175,15 @@ 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 { @@ -169,6 +194,8 @@ public java.lang.String getName() { 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
@@ -176,6 +203,7 @@ public java.lang.String getName() {
    * 
* * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -184,14 +212,15 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
    * 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
@@ -199,16 +228,15 @@ 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 { @@ -219,12 +247,15 @@ public java.lang.String getProjectId() { 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 @@ -233,30 +264,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 { @@ -267,6 +298,8 @@ public java.lang.String getBillingAccountName() { 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
@@ -275,6 +308,7 @@ public java.lang.String getBillingAccountName() {
    * 
* * bool billing_enabled = 4; + * * @return The billingEnabled. */ @java.lang.Override @@ -283,6 +317,7 @@ public boolean getBillingEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,8 +329,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -327,8 +361,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, billingAccountName_); } if (billingEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, billingEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, billingEnabled_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -338,21 +371,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.ProjectBillingInfo)) { return super.equals(obj); } - com.google.cloud.billing.v1.ProjectBillingInfo other = (com.google.cloud.billing.v1.ProjectBillingInfo) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getBillingAccountName() - .equals(other.getBillingAccountName())) return false; - if (getBillingEnabled() - != other.getBillingEnabled()) return false; + com.google.cloud.billing.v1.ProjectBillingInfo other = + (com.google.cloud.billing.v1.ProjectBillingInfo) obj; + + if (!getName().equals(other.getName())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getBillingAccountName().equals(other.getBillingAccountName())) return false; + if (getBillingEnabled() != other.getBillingEnabled()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -371,104 +401,110 @@ public int hashCode() { hash = (37 * hash) + BILLING_ACCOUNT_NAME_FIELD_NUMBER; hash = (53 * hash) + getBillingAccountName().hashCode(); hash = (37 * hash) + BILLING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBillingEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBillingEnabled()); hash = (29 * hash) + unknownFields.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
@@ -477,21 +513,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.billing.v1.ProjectBillingInfo}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.ProjectBillingInfo)
       com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.billing.v1.CloudBillingProto
+          .internal_static_google_cloud_billing_v1_ProjectBillingInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.billing.v1.CloudBillingProto.internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable
+      return com.google.cloud.billing.v1.CloudBillingProto
+          .internal_static_google_cloud_billing_v1_ProjectBillingInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.billing.v1.ProjectBillingInfo.class, com.google.cloud.billing.v1.ProjectBillingInfo.Builder.class);
+              com.google.cloud.billing.v1.ProjectBillingInfo.class,
+              com.google.cloud.billing.v1.ProjectBillingInfo.Builder.class);
     }
 
     // Construct using com.google.cloud.billing.v1.ProjectBillingInfo.newBuilder()
@@ -499,16 +537,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -524,9 +561,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
@@ -545,7 +582,8 @@ public com.google.cloud.billing.v1.ProjectBillingInfo build() {
 
     @java.lang.Override
     public com.google.cloud.billing.v1.ProjectBillingInfo buildPartial() {
-      com.google.cloud.billing.v1.ProjectBillingInfo result = new com.google.cloud.billing.v1.ProjectBillingInfo(this);
+      com.google.cloud.billing.v1.ProjectBillingInfo result =
+          new com.google.cloud.billing.v1.ProjectBillingInfo(this);
       result.name_ = name_;
       result.projectId_ = projectId_;
       result.billingAccountName_ = billingAccountName_;
@@ -558,38 +596,39 @@ 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;
@@ -644,6 +683,8 @@ 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
@@ -652,13 +693,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; @@ -667,6 +708,8 @@ 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
@@ -675,15 +718,14 @@ 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 { @@ -691,6 +733,8 @@ 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
@@ -699,20 +743,22 @@ public java.lang.String getName() {
      * 
* * 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
@@ -721,15 +767,18 @@ public Builder setName(
      * 
* * 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
@@ -738,16 +787,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; @@ -755,6 +804,8 @@ public Builder setNameBytes( 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
@@ -762,13 +813,13 @@ public Builder setNameBytes(
      * 
* * 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; @@ -777,6 +828,8 @@ 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
@@ -784,15 +837,14 @@ 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 { @@ -800,6 +852,8 @@ 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
@@ -807,20 +861,22 @@ public java.lang.String getProjectId() {
      * 
* * 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
@@ -828,15 +884,18 @@ public Builder setProjectId(
      * 
* * 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
@@ -844,16 +903,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; @@ -861,19 +920,21 @@ public Builder setProjectIdBytes( private java.lang.Object billingAccountName_ = ""; /** + * + * *
      * The resource name of the billing account associated with the project, if
      * any. For example, `billingAccounts/012345-567890-ABCDEF`.
      * 
* * string billing_account_name = 3; + * * @return The billingAccountName. */ public java.lang.String getBillingAccountName() { java.lang.Object ref = billingAccountName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); billingAccountName_ = s; return s; @@ -882,21 +943,22 @@ public java.lang.String getBillingAccountName() { } } /** + * + * *
      * The resource name of the billing account associated with the project, if
      * any. For example, `billingAccounts/012345-567890-ABCDEF`.
      * 
* * string billing_account_name = 3; + * * @return The bytes for billingAccountName. */ - public com.google.protobuf.ByteString - getBillingAccountNameBytes() { + public com.google.protobuf.ByteString getBillingAccountNameBytes() { java.lang.Object ref = billingAccountName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); billingAccountName_ = b; return b; } else { @@ -904,64 +966,73 @@ public java.lang.String getBillingAccountName() { } } /** + * + * *
      * The resource name of the billing account associated with the project, if
      * any. For example, `billingAccounts/012345-567890-ABCDEF`.
      * 
* * string billing_account_name = 3; + * * @param value The billingAccountName to set. * @return This builder for chaining. */ - public Builder setBillingAccountName( - java.lang.String value) { + 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
@@ -970,6 +1041,7 @@ public Builder setBillingAccountNameBytes(
      * 
* * bool billing_enabled = 4; + * * @return The billingEnabled. */ @java.lang.Override @@ -977,6 +1049,8 @@ 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
@@ -985,16 +1059,19 @@ 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
@@ -1003,17 +1080,18 @@ 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); } @@ -1023,12 +1101,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(); } @@ -1037,16 +1115,16 @@ 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 { - return new ProjectBillingInfo(input, extensionRegistry); - } - }; + 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 { + return new ProjectBillingInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1061,6 +1139,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.ProjectBillingInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java index 7a3b14e6..6252c53b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ProjectBillingInfoOrBuilder.java @@ -1,13 +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 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
@@ -16,10 +34,13 @@ public interface ProjectBillingInfoOrBuilder extends
    * 
* * 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
@@ -28,12 +49,14 @@ public interface ProjectBillingInfoOrBuilder extends
    * 
* * 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
@@ -41,10 +64,13 @@ public interface ProjectBillingInfoOrBuilder extends
    * 
* * 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
@@ -52,34 +78,41 @@ public interface ProjectBillingInfoOrBuilder extends
    * 
* * 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
@@ -88,6 +121,7 @@ public interface ProjectBillingInfoOrBuilder extends
    * 
* * bool billing_enabled = 4; + * * @return The billingEnabled. */ boolean getBillingEnabled(); diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java index 120574df..40c33071 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -28,16 +46,15 @@ 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; } + private Service( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private Service( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - serviceId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + serviceId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - businessEntityName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + businessEntityName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,35 +115,40 @@ private Service( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -131,30 +157,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 { @@ -165,12 +191,15 @@ public java.lang.String getName() { 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 @@ -179,30 +208,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 { @@ -213,11 +242,14 @@ public java.lang.String getServiceId() { 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 @@ -226,29 +258,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 { @@ -259,12 +291,15 @@ public java.lang.String getDisplayName() { 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 @@ -273,30 +308,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 { @@ -305,6 +340,7 @@ public java.lang.String getBusinessEntityName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,8 +352,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -359,21 +394,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.Service)) { return super.equals(obj); } com.google.cloud.billing.v1.Service other = (com.google.cloud.billing.v1.Service) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getServiceId() - .equals(other.getServiceId())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getBusinessEntityName() - .equals(other.getBusinessEntityName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getServiceId().equals(other.getServiceId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getBusinessEntityName().equals(other.getBusinessEntityName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -398,118 +429,126 @@ 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() @@ -517,16 +556,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -542,9 +580,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 @@ -576,38 +614,39 @@ 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; @@ -663,19 +702,21 @@ 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; @@ -684,21 +725,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name for the service.
      * Example: "services/DA34-426B-A397"
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -706,57 +748,64 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name for the service.
      * Example: "services/DA34-426B-A397"
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + 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; @@ -764,19 +813,21 @@ public Builder setNameBytes( private java.lang.Object serviceId_ = ""; /** + * + * *
      * The identifier for the service.
      * Example: "DA34-426B-A397"
      * 
* * string service_id = 2; + * * @return The serviceId. */ public java.lang.String getServiceId() { java.lang.Object ref = serviceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceId_ = s; return s; @@ -785,21 +836,22 @@ public java.lang.String getServiceId() { } } /** + * + * *
      * The identifier for the service.
      * Example: "DA34-426B-A397"
      * 
* * string service_id = 2; + * * @return The bytes for serviceId. */ - public com.google.protobuf.ByteString - getServiceIdBytes() { + public com.google.protobuf.ByteString getServiceIdBytes() { java.lang.Object ref = serviceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceId_ = b; return b; } else { @@ -807,57 +859,64 @@ public java.lang.String getServiceId() { } } /** + * + * *
      * The identifier for the service.
      * Example: "DA34-426B-A397"
      * 
* * string service_id = 2; + * * @param value The serviceId to set. * @return This builder for chaining. */ - public Builder setServiceId( - java.lang.String value) { + 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; @@ -865,18 +924,20 @@ public Builder setServiceIdBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * A human readable display name for this service.
      * 
* * string display_name = 3; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -885,20 +946,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A human readable display name for this service.
      * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -906,54 +968,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * A human readable display name for this service.
      * 
* * string display_name = 3; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + 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; @@ -961,19 +1030,21 @@ public Builder setDisplayNameBytes( private java.lang.Object businessEntityName_ = ""; /** + * + * *
      * The business under which the service is offered.
      * Ex. "businessEntities/GCP", "businessEntities/Maps"
      * 
* * string business_entity_name = 4; + * * @return The businessEntityName. */ public java.lang.String getBusinessEntityName() { java.lang.Object ref = businessEntityName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); businessEntityName_ = s; return s; @@ -982,21 +1053,22 @@ public java.lang.String getBusinessEntityName() { } } /** + * + * *
      * The business under which the service is offered.
      * Ex. "businessEntities/GCP", "businessEntities/Maps"
      * 
* * string business_entity_name = 4; + * * @return The bytes for businessEntityName. */ - public com.google.protobuf.ByteString - getBusinessEntityNameBytes() { + public com.google.protobuf.ByteString getBusinessEntityNameBytes() { java.lang.Object ref = businessEntityName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); businessEntityName_ = b; return b; } else { @@ -1004,64 +1076,71 @@ public java.lang.String getBusinessEntityName() { } } /** + * + * *
      * The business under which the service is offered.
      * Ex. "businessEntities/GCP", "businessEntities/Maps"
      * 
* * string business_entity_name = 4; + * * @param value The businessEntityName to set. * @return This builder for chaining. */ - public Builder setBusinessEntityName( - java.lang.String value) { + 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); } @@ -1071,12 +1150,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(); } @@ -1085,16 +1164,16 @@ 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 { - return new Service(input, extensionRegistry); - } - }; + 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 { + return new Service(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1109,6 +1188,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.Service getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java index 88ca18ce..d81c0664 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java @@ -1,95 +1,131 @@ +/* + * 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/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java index 1d067271..5ef0ee97 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java @@ -1,24 +1,42 @@ +/* + * 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_ = ""; @@ -30,16 +48,15 @@ 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; } + private Sku( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,68 +76,78 @@ private Sku( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - skuId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + skuId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 34: { - com.google.cloud.billing.v1.Category.Builder subBuilder = null; - if (category_ != null) { - subBuilder = category_.toBuilder(); + description_ = s; + break; } - category_ = input.readMessage(com.google.cloud.billing.v1.Category.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(category_); - category_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.billing.v1.Category.Builder subBuilder = null; + if (category_ != null) { + subBuilder = category_.toBuilder(); + } + category_ = + input.readMessage( + com.google.cloud.billing.v1.Category.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(category_); + category_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - serviceRegions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + serviceRegions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + serviceRegions_.add(s); + break; } - serviceRegions_.add(s); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - pricingInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 50: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + pricingInfo_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + pricingInfo_.add( + input.readMessage( + com.google.cloud.billing.v1.PricingInfo.parser(), extensionRegistry)); + break; } - pricingInfo_.add( - input.readMessage(com.google.cloud.billing.v1.PricingInfo.parser(), extensionRegistry)); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - serviceProviderName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + serviceProviderName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -128,8 +155,7 @@ private Sku( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { serviceRegions_ = serviceRegions_.getUnmodifiableView(); @@ -141,15 +167,17 @@ private Sku( makeExtensionsImmutable(); } } - 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); } @@ -157,12 +185,15 @@ private Sku( 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 @@ -171,30 +202,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 { @@ -205,12 +236,15 @@ public java.lang.String getName() { 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 @@ -219,30 +253,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 { @@ -253,12 +287,15 @@ public java.lang.String getSkuId() { 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 @@ -267,30 +304,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 { @@ -301,11 +338,14 @@ public java.lang.String getDescription() { public static final int CATEGORY_FIELD_NUMBER = 4; private com.google.cloud.billing.v1.Category category_; /** + * + * *
    * The category hierarchy of this SKU, purely for organizational purpose.
    * 
* * .google.cloud.billing.v1.Category category = 4; + * * @return Whether the category field is set. */ @java.lang.Override @@ -313,18 +353,25 @@ public boolean hasCategory() { return category_ != null; } /** + * + * *
    * The category hierarchy of this SKU, purely for organizational purpose.
    * 
* * .google.cloud.billing.v1.Category category = 4; + * * @return The category. */ @java.lang.Override public com.google.cloud.billing.v1.Category getCategory() { - return category_ == null ? com.google.cloud.billing.v1.Category.getDefaultInstance() : category_; + return category_ == null + ? com.google.cloud.billing.v1.Category.getDefaultInstance() + : category_; } /** + * + * *
    * The category hierarchy of this SKU, purely for organizational purpose.
    * 
@@ -339,6 +386,8 @@ 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"
@@ -346,13 +395,15 @@ public com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder() {
    * 
* * repeated string service_regions = 5; + * * @return A list containing the serviceRegions. */ - public com.google.protobuf.ProtocolStringList - getServiceRegionsList() { + public com.google.protobuf.ProtocolStringList getServiceRegionsList() { return serviceRegions_; } /** + * + * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -360,12 +411,15 @@ public com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder() {
    * 
* * repeated string service_regions = 5; + * * @return The count of serviceRegions. */ public int getServiceRegionsCount() { return serviceRegions_.size(); } /** + * + * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -373,6 +427,7 @@ public int getServiceRegionsCount() {
    * 
* * repeated string service_regions = 5; + * * @param index The index of the element to return. * @return The serviceRegions at the given index. */ @@ -380,6 +435,8 @@ public java.lang.String getServiceRegions(int index) { return serviceRegions_.get(index); } /** + * + * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -387,17 +444,19 @@ 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.
    * 
@@ -409,6 +468,8 @@ public java.util.List getPricingInfoLis return pricingInfo_; } /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -416,11 +477,13 @@ public java.util.List getPricingInfoLis * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ @java.lang.Override - public java.util.List + public java.util.List getPricingInfoOrBuilderList() { return pricingInfo_; } /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -432,6 +495,8 @@ public int getPricingInfoCount() { return pricingInfo_.size(); } /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -443,6 +508,8 @@ public com.google.cloud.billing.v1.PricingInfo getPricingInfo(int index) { return pricingInfo_.get(index); } /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -450,20 +517,22 @@ 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 @@ -472,30 +541,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 { @@ -504,6 +573,7 @@ public java.lang.String getServiceProviderName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -515,8 +585,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -557,8 +626,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (category_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCategory()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCategory()); } { int dataSize = 0; @@ -569,8 +637,7 @@ 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_); @@ -583,30 +650,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.billing.v1.Sku)) { return super.equals(obj); } com.google.cloud.billing.v1.Sku other = (com.google.cloud.billing.v1.Sku) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getSkuId() - .equals(other.getSkuId())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getSkuId().equals(other.getSkuId())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasCategory() != other.hasCategory()) return false; if (hasCategory()) { - if (!getCategory() - .equals(other.getCategory())) return false; - } - if (!getServiceRegionsList() - .equals(other.getServiceRegionsList())) return false; - if (!getPricingInfoList() - .equals(other.getPricingInfoList())) return false; - if (!getServiceProviderName() - .equals(other.getServiceProviderName())) return false; + if (!getCategory().equals(other.getCategory())) return false; + } + if (!getServiceRegionsList().equals(other.getServiceRegionsList())) return false; + if (!getPricingInfoList().equals(other.getPricingInfoList())) return false; + if (!getServiceProviderName().equals(other.getServiceProviderName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -643,116 +703,123 @@ public int hashCode() { return hash; } - public static com.google.cloud.billing.v1.Sku parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.billing.v1.Sku parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.Sku parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.billing.v1.Sku parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.billing.v1.Sku parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.Sku parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.Sku parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.billing.v1.Sku parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.billing.v1.Sku parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.Sku parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.Sku parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.Sku parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.billing.v1.Sku parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.billing.v1.Sku parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.billing.v1.Sku prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Encapsulates a single SKU in Google Cloud Platform
    * 
* * Protobuf type {@code google.cloud.billing.v1.Sku} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.billing.v1.Sku) com.google.cloud.billing.v1.SkuOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Sku_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Sku_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.billing.v1.Sku.class, com.google.cloud.billing.v1.Sku.Builder.class); } @@ -762,17 +829,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPricingInfoFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -802,9 +869,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.billing.v1.CloudCatalogProto.internal_static_google_cloud_billing_v1_Sku_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.billing.v1.CloudCatalogProto + .internal_static_google_cloud_billing_v1_Sku_descriptor; } @java.lang.Override @@ -856,38 +923,39 @@ 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; @@ -939,9 +1007,10 @@ 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_); } @@ -979,23 +1048,26 @@ public Builder mergeFrom( } 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; @@ -1004,21 +1076,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name for the SKU.
      * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1026,57 +1099,64 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name for the SKU.
      * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + 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; @@ -1084,19 +1164,21 @@ public Builder setNameBytes( private java.lang.Object skuId_ = ""; /** + * + * *
      * The identifier for the SKU.
      * Example: "AA95-CD31-42FE"
      * 
* * string sku_id = 2; + * * @return The skuId. */ public java.lang.String getSkuId() { java.lang.Object ref = skuId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); skuId_ = s; return s; @@ -1105,21 +1187,22 @@ public java.lang.String getSkuId() { } } /** + * + * *
      * The identifier for the SKU.
      * Example: "AA95-CD31-42FE"
      * 
* * string sku_id = 2; + * * @return The bytes for skuId. */ - public com.google.protobuf.ByteString - getSkuIdBytes() { + public com.google.protobuf.ByteString getSkuIdBytes() { java.lang.Object ref = skuId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); skuId_ = b; return b; } else { @@ -1127,57 +1210,64 @@ public java.lang.String getSkuId() { } } /** + * + * *
      * The identifier for the SKU.
      * Example: "AA95-CD31-42FE"
      * 
* * string sku_id = 2; + * * @param value The skuId to set. * @return This builder for chaining. */ - public Builder setSkuId( - java.lang.String value) { + 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; @@ -1185,19 +1275,21 @@ public Builder setSkuIdBytes( private java.lang.Object description_ = ""; /** + * + * *
      * A human readable description of the SKU, has a maximum length of 256
      * characters.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1206,21 +1298,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A human readable description of the SKU, has a maximum length of 256
      * characters.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1228,57 +1321,64 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A human readable description of the SKU, has a maximum length of 256
      * characters.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + 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; @@ -1286,34 +1386,47 @@ public Builder setDescriptionBytes( private com.google.cloud.billing.v1.Category category_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.Category, com.google.cloud.billing.v1.Category.Builder, com.google.cloud.billing.v1.CategoryOrBuilder> categoryBuilder_; + com.google.cloud.billing.v1.Category, + com.google.cloud.billing.v1.Category.Builder, + com.google.cloud.billing.v1.CategoryOrBuilder> + categoryBuilder_; /** + * + * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
* * .google.cloud.billing.v1.Category category = 4; + * * @return Whether the category field is set. */ public boolean hasCategory() { return 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.
      * 
@@ -1334,14 +1447,15 @@ public Builder setCategory(com.google.cloud.billing.v1.Category value) { return this; } /** + * + * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
* * .google.cloud.billing.v1.Category category = 4; */ - public Builder setCategory( - com.google.cloud.billing.v1.Category.Builder builderForValue) { + public Builder setCategory(com.google.cloud.billing.v1.Category.Builder builderForValue) { if (categoryBuilder_ == null) { category_ = builderForValue.build(); onChanged(); @@ -1352,6 +1466,8 @@ public Builder setCategory( return this; } /** + * + * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1362,7 +1478,9 @@ 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; } @@ -1374,6 +1492,8 @@ public Builder mergeCategory(com.google.cloud.billing.v1.Category value) { return this; } /** + * + * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1392,6 +1512,8 @@ public Builder clearCategory() { return this; } /** + * + * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1399,11 +1521,13 @@ 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.
      * 
@@ -1414,11 +1538,14 @@ public com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder() { if (categoryBuilder_ != null) { return categoryBuilder_.getMessageOrBuilder(); } else { - return category_ == null ? - com.google.cloud.billing.v1.Category.getDefaultInstance() : category_; + return category_ == null + ? com.google.cloud.billing.v1.Category.getDefaultInstance() + : category_; } } /** + * + * *
      * The category hierarchy of this SKU, purely for organizational purpose.
      * 
@@ -1426,27 +1553,34 @@ 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"
@@ -1454,13 +1588,15 @@ 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"
@@ -1468,12 +1604,15 @@ private void ensureServiceRegionsIsMutable() {
      * 
* * repeated string service_regions = 5; + * * @return The count of serviceRegions. */ public int getServiceRegionsCount() { return serviceRegions_.size(); } /** + * + * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1481,6 +1620,7 @@ public int getServiceRegionsCount() {
      * 
* * repeated string service_regions = 5; + * * @param index The index of the element to return. * @return The serviceRegions at the given index. */ @@ -1488,6 +1628,8 @@ public java.lang.String getServiceRegions(int index) { return serviceRegions_.get(index); } /** + * + * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1495,14 +1637,16 @@ public java.lang.String getServiceRegions(int index) {
      * 
* * repeated string service_regions = 5; + * * @param index The index of the value to return. * @return The bytes of the serviceRegions at the given index. */ - public com.google.protobuf.ByteString - getServiceRegionsBytes(int index) { + public com.google.protobuf.ByteString getServiceRegionsBytes(int index) { return serviceRegions_.getByteString(index); } /** + * + * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1510,21 +1654,23 @@ public java.lang.String getServiceRegions(int index) {
      * 
* * repeated string service_regions = 5; + * * @param index The index to set the value at. * @param value The serviceRegions to set. * @return This builder for chaining. */ - public Builder setServiceRegions( - int index, java.lang.String value) { + 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"
@@ -1532,20 +1678,22 @@ public Builder setServiceRegions(
      * 
* * repeated string service_regions = 5; + * * @param value The serviceRegions to add. * @return This builder for chaining. */ - public Builder addServiceRegions( - java.lang.String value) { + 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"
@@ -1553,18 +1701,19 @@ public Builder addServiceRegions(
      * 
* * repeated string service_regions = 5; + * * @param values The serviceRegions to add. * @return This builder for chaining. */ - public Builder addAllServiceRegions( - java.lang.Iterable values) { + public Builder addAllServiceRegions(java.lang.Iterable values) { ensureServiceRegionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serviceRegions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceRegions_); onChanged(); return this; } /** + * + * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1572,6 +1721,7 @@ public Builder addAllServiceRegions(
      * 
* * repeated string service_regions = 5; + * * @return This builder for chaining. */ public Builder clearServiceRegions() { @@ -1581,6 +1731,8 @@ public Builder clearServiceRegions() { return this; } /** + * + * *
      * List of service regions this SKU is offered at.
      * Example: "asia-east1"
@@ -1588,15 +1740,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(); @@ -1604,18 +1756,25 @@ public Builder addServiceRegionsBytes( } 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.
      * 
@@ -1630,6 +1789,8 @@ public java.util.List getPricingInfoLis } } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1644,6 +1805,8 @@ public int getPricingInfoCount() { } } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1658,14 +1821,15 @@ public com.google.cloud.billing.v1.PricingInfo getPricingInfo(int index) { } } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public Builder setPricingInfo( - int index, com.google.cloud.billing.v1.PricingInfo value) { + public Builder setPricingInfo(int index, com.google.cloud.billing.v1.PricingInfo value) { if (pricingInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1679,6 +1843,8 @@ public Builder setPricingInfo( return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1697,6 +1863,8 @@ public Builder setPricingInfo( return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1717,14 +1885,15 @@ public Builder addPricingInfo(com.google.cloud.billing.v1.PricingInfo value) { return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public Builder addPricingInfo( - int index, com.google.cloud.billing.v1.PricingInfo value) { + public Builder addPricingInfo(int index, com.google.cloud.billing.v1.PricingInfo value) { if (pricingInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1738,14 +1907,15 @@ public Builder addPricingInfo( return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public Builder addPricingInfo( - com.google.cloud.billing.v1.PricingInfo.Builder builderForValue) { + public Builder addPricingInfo(com.google.cloud.billing.v1.PricingInfo.Builder builderForValue) { if (pricingInfoBuilder_ == null) { ensurePricingInfoIsMutable(); pricingInfo_.add(builderForValue.build()); @@ -1756,6 +1926,8 @@ public Builder addPricingInfo( return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1774,6 +1946,8 @@ public Builder addPricingInfo( return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1784,8 +1958,7 @@ public Builder addAllPricingInfo( java.lang.Iterable values) { if (pricingInfoBuilder_ == null) { ensurePricingInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pricingInfo_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pricingInfo_); onChanged(); } else { pricingInfoBuilder_.addAllMessages(values); @@ -1793,6 +1966,8 @@ public Builder addAllPricingInfo( return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1810,6 +1985,8 @@ public Builder clearPricingInfo() { return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1827,39 +2004,44 @@ public Builder removePricingInfo(int index) { return this; } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public com.google.cloud.billing.v1.PricingInfo.Builder getPricingInfoBuilder( - int index) { + public com.google.cloud.billing.v1.PricingInfo.Builder getPricingInfoBuilder(int index) { return getPricingInfoFieldBuilder().getBuilder(index); } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( - int index) { + public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder(int index) { if (pricingInfoBuilder_ == null) { - return pricingInfo_.get(index); } else { + return pricingInfo_.get(index); + } else { return pricingInfoBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public java.util.List - getPricingInfoOrBuilderList() { + public java.util.List + getPricingInfoOrBuilderList() { if (pricingInfoBuilder_ != null) { return pricingInfoBuilder_.getMessageOrBuilderList(); } else { @@ -1867,6 +2049,8 @@ public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( } } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
@@ -1874,42 +2058,48 @@ public com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ public com.google.cloud.billing.v1.PricingInfo.Builder addPricingInfoBuilder() { - return getPricingInfoFieldBuilder().addBuilder( - com.google.cloud.billing.v1.PricingInfo.getDefaultInstance()); + return getPricingInfoFieldBuilder() + .addBuilder(com.google.cloud.billing.v1.PricingInfo.getDefaultInstance()); } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public com.google.cloud.billing.v1.PricingInfo.Builder addPricingInfoBuilder( - int index) { - return getPricingInfoFieldBuilder().addBuilder( - index, com.google.cloud.billing.v1.PricingInfo.getDefaultInstance()); + public com.google.cloud.billing.v1.PricingInfo.Builder addPricingInfoBuilder(int index) { + return getPricingInfoFieldBuilder() + .addBuilder(index, com.google.cloud.billing.v1.PricingInfo.getDefaultInstance()); } /** + * + * *
      * A timeline of pricing info for this SKU in chronological order.
      * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - public java.util.List - getPricingInfoBuilderList() { + public java.util.List + getPricingInfoBuilderList() { return getPricingInfoFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.PricingInfo, com.google.cloud.billing.v1.PricingInfo.Builder, com.google.cloud.billing.v1.PricingInfoOrBuilder> + com.google.cloud.billing.v1.PricingInfo, + com.google.cloud.billing.v1.PricingInfo.Builder, + com.google.cloud.billing.v1.PricingInfoOrBuilder> getPricingInfoFieldBuilder() { if (pricingInfoBuilder_ == null) { - pricingInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.billing.v1.PricingInfo, com.google.cloud.billing.v1.PricingInfo.Builder, com.google.cloud.billing.v1.PricingInfoOrBuilder>( - pricingInfo_, - ((bitField0_ & 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_; @@ -1917,19 +2107,21 @@ public com.google.cloud.billing.v1.PricingInfo.Builder addPricingInfoBuilder( private java.lang.Object serviceProviderName_ = ""; /** + * + * *
      * Identifies the service provider.
      * This is 'Google' for first party services in Google Cloud Platform.
      * 
* * string service_provider_name = 7; + * * @return The serviceProviderName. */ public java.lang.String getServiceProviderName() { java.lang.Object ref = serviceProviderName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceProviderName_ = s; return s; @@ -1938,21 +2130,22 @@ public java.lang.String getServiceProviderName() { } } /** + * + * *
      * Identifies the service provider.
      * This is 'Google' for first party services in Google Cloud Platform.
      * 
* * string service_provider_name = 7; + * * @return The bytes for serviceProviderName. */ - public com.google.protobuf.ByteString - getServiceProviderNameBytes() { + public com.google.protobuf.ByteString getServiceProviderNameBytes() { java.lang.Object ref = serviceProviderName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceProviderName_ = b; return b; } else { @@ -1960,64 +2153,71 @@ public java.lang.String getServiceProviderName() { } } /** + * + * *
      * Identifies the service provider.
      * This is 'Google' for first party services in Google Cloud Platform.
      * 
* * string service_provider_name = 7; + * * @param value The serviceProviderName to set. * @return This builder for chaining. */ - public Builder setServiceProviderName( - java.lang.String value) { + 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; } + @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); } @@ -2027,12 +2227,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(); } @@ -2041,16 +2241,16 @@ 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 { - return new Sku(input, extensionRegistry); - } - }; + 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 { + return new Sku(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2065,6 +2265,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.billing.v1.Sku getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java index 59e850cc..9b282cd8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java @@ -1,97 +1,136 @@ +/* + * 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.
    * 
@@ -101,6 +140,8 @@ public interface SkuOrBuilder extends com.google.cloud.billing.v1.CategoryOrBuilder getCategoryOrBuilder(); /** + * + * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -108,11 +149,13 @@ public interface SkuOrBuilder extends
    * 
* * repeated string service_regions = 5; + * * @return A list containing the serviceRegions. */ - java.util.List - getServiceRegionsList(); + java.util.List getServiceRegionsList(); /** + * + * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -120,10 +163,13 @@ public interface SkuOrBuilder extends
    * 
* * repeated string service_regions = 5; + * * @return The count of serviceRegions. */ int getServiceRegionsCount(); /** + * + * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -131,11 +177,14 @@ public interface SkuOrBuilder extends
    * 
* * repeated string service_regions = 5; + * * @param index The index of the element to return. * @return The serviceRegions at the given index. */ java.lang.String getServiceRegions(int index); /** + * + * *
    * List of service regions this SKU is offered at.
    * Example: "asia-east1"
@@ -143,22 +192,25 @@ public interface SkuOrBuilder extends
    * 
* * repeated string service_regions = 5; + * * @param index The index of the value to return. * @return The bytes of the serviceRegions at the given index. */ - com.google.protobuf.ByteString - getServiceRegionsBytes(int index); + com.google.protobuf.ByteString getServiceRegionsBytes(int index); /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - java.util.List - getPricingInfoList(); + java.util.List getPricingInfoList(); /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -167,6 +219,8 @@ public interface SkuOrBuilder extends */ com.google.cloud.billing.v1.PricingInfo getPricingInfo(int index); /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
@@ -175,43 +229,51 @@ public interface SkuOrBuilder extends */ int getPricingInfoCount(); /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - java.util.List + java.util.List getPricingInfoOrBuilderList(); /** + * + * *
    * A timeline of pricing info for this SKU in chronological order.
    * 
* * repeated .google.cloud.billing.v1.PricingInfo pricing_info = 6; */ - com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder( - int index); + com.google.cloud.billing.v1.PricingInfoOrBuilder getPricingInfoOrBuilder(int index); /** + * + * *
    * Identifies the service provider.
    * This is 'Google' for first party services in Google Cloud Platform.
    * 
* * string service_provider_name = 7; + * * @return The serviceProviderName. */ java.lang.String getServiceProviderName(); /** + * + * *
    * Identifies the service provider.
    * This is 'Google' for first party services in Google Cloud Platform.
    * 
* * string service_provider_name = 7; + * * @return The bytes for serviceProviderName. */ - com.google.protobuf.ByteString - getServiceProviderNameBytes(); + com.google.protobuf.ByteString getServiceProviderNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java index c1a2e72a..4d577316 100644 --- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java +++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequest.java @@ -1,40 +1,57 @@ +/* + * 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; } + private UpdateBillingAccountRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,45 +70,51 @@ private UpdateBillingAccountRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.cloud.billing.v1.BillingAccount.Builder subBuilder = null; - if (account_ != null) { - subBuilder = account_.toBuilder(); - } - account_ = input.readMessage(com.google.cloud.billing.v1.BillingAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(account_); - account_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + com.google.cloud.billing.v1.BillingAccount.Builder subBuilder = null; + if (account_ != null) { + subBuilder = account_.toBuilder(); + } + account_ = + input.readMessage( + com.google.cloud.billing.v1.BillingAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(account_); + account_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,34 +122,41 @@ private UpdateBillingAccountRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -135,29 +165,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the billing account resource to be updated.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -168,11 +200,16 @@ public java.lang.String getName() { public static final int ACCOUNT_FIELD_NUMBER = 2; private com.google.cloud.billing.v1.BillingAccount account_; /** + * + * *
    * Required. The billing account resource to replace the resource on the server.
    * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the account field is set. */ @java.lang.Override @@ -180,23 +217,34 @@ 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() { @@ -206,12 +254,15 @@ 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 @@ -219,12 +270,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The update mask applied to the resource.
    * Only "display_name" is currently supported.
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ @java.lang.Override @@ -232,6 +286,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The update mask applied to the resource.
    * Only "display_name" is currently supported.
@@ -245,6 +301,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -256,8 +313,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -280,12 +336,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (account_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getAccount());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAccount());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -295,24 +349,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.billing.v1.UpdateBillingAccountRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.v1.UpdateBillingAccountRequest other = (com.google.cloud.billing.v1.UpdateBillingAccountRequest) obj;
+    com.google.cloud.billing.v1.UpdateBillingAccountRequest other =
+        (com.google.cloud.billing.v1.UpdateBillingAccountRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasAccount() != other.hasAccount()) return false;
     if (hasAccount()) {
-      if (!getAccount()
-          .equals(other.getAccount())) return false;
+      if (!getAccount().equals(other.getAccount())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -341,117 +393,127 @@ 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() @@ -459,16 +521,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +551,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 @@ -511,7 +572,8 @@ public com.google.cloud.billing.v1.UpdateBillingAccountRequest build() { @java.lang.Override public com.google.cloud.billing.v1.UpdateBillingAccountRequest buildPartial() { - com.google.cloud.billing.v1.UpdateBillingAccountRequest result = new com.google.cloud.billing.v1.UpdateBillingAccountRequest(this); + com.google.cloud.billing.v1.UpdateBillingAccountRequest result = + new com.google.cloud.billing.v1.UpdateBillingAccountRequest(this); result.name_ = name_; if (accountBuilder_ == null) { result.account_ = account_; @@ -531,38 +593,39 @@ 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; @@ -570,7 +633,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.UpdateBillingAccountRequest other) { - if (other == com.google.cloud.billing.v1.UpdateBillingAccountRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.UpdateBillingAccountRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -600,7 +664,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.v1.UpdateBillingAccountRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.v1.UpdateBillingAccountRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -612,18 +677,22 @@ 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; @@ -632,20 +701,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the billing account resource to be updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -653,54 +725,67 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the billing account resource to be updated.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + 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; @@ -708,39 +793,58 @@ public Builder setNameBytes( private com.google.cloud.billing.v1.BillingAccount account_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.BillingAccount, com.google.cloud.billing.v1.BillingAccount.Builder, com.google.cloud.billing.v1.BillingAccountOrBuilder> accountBuilder_; + com.google.cloud.billing.v1.BillingAccount, + com.google.cloud.billing.v1.BillingAccount.Builder, + com.google.cloud.billing.v1.BillingAccountOrBuilder> + accountBuilder_; /** + * + * *
      * Required. The billing account resource to replace the resource on the server.
      * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the account field is set. */ public boolean hasAccount() { return 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) { @@ -756,14 +860,17 @@ 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(); @@ -774,17 +881,23 @@ public Builder setAccount( return this; } /** + * + * *
      * Required. The billing account resource to replace the resource on the server.
      * 
* - * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.billing.v1.BillingAccount account = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAccount(com.google.cloud.billing.v1.BillingAccount value) { if (accountBuilder_ == null) { if (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; } @@ -796,11 +909,15 @@ 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) { @@ -814,48 +931,64 @@ 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_; @@ -863,36 +996,49 @@ public com.google.cloud.billing.v1.BillingAccountOrBuilder getAccountOrBuilder() private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
      * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return 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.
@@ -914,6 +1060,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -921,8 +1069,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 3;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -933,6 +1080,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -944,7 +1093,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;
         }
@@ -956,6 +1105,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -975,6 +1126,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -983,11 +1136,13 @@ 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.
@@ -999,11 +1154,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The update mask applied to the resource.
      * Only "display_name" is currently supported.
@@ -1012,21 +1170,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1036,12 +1197,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();
   }
@@ -1050,16 +1211,16 @@ 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 {
-      return new UpdateBillingAccountRequest(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new UpdateBillingAccountRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1074,6 +1235,4 @@ public com.google.protobuf.Parser getParserForType(
   public com.google.cloud.billing.v1.UpdateBillingAccountRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
similarity index 58%
rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
index fe5c9936..0300e04a 100644
--- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
+++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateBillingAccountRequestOrBuilder.java
@@ -1,80 +1,127 @@
+/*
+ * 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/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
similarity index 71%
rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
index ac5716fb..08e373be 100644
--- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
+++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequest.java
@@ -1,40 +1,58 @@
+/*
+ * 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; } + private UpdateProjectBillingInfoRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +71,36 @@ private UpdateProjectBillingInfoRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.cloud.billing.v1.ProjectBillingInfo.Builder subBuilder = null; - if (projectBillingInfo_ != null) { - subBuilder = projectBillingInfo_.toBuilder(); + name_ = s; + break; } - projectBillingInfo_ = input.readMessage(com.google.cloud.billing.v1.ProjectBillingInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(projectBillingInfo_); - projectBillingInfo_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.billing.v1.ProjectBillingInfo.Builder subBuilder = null; + if (projectBillingInfo_ != null) { + subBuilder = projectBillingInfo_.toBuilder(); + } + projectBillingInfo_ = + input.readMessage( + com.google.cloud.billing.v1.ProjectBillingInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(projectBillingInfo_); + projectBillingInfo_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +108,40 @@ private UpdateProjectBillingInfoRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -123,30 +150,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 { @@ -157,12 +184,15 @@ public java.lang.String getName() { public static final int PROJECT_BILLING_INFO_FIELD_NUMBER = 2; private com.google.cloud.billing.v1.ProjectBillingInfo projectBillingInfo_; /** + * + * *
    * The new billing information for the project. 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 @@ -170,19 +200,26 @@ 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`.
@@ -196,6 +233,7 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -207,8 +245,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -228,8 +265,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (projectBillingInfo_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getProjectBillingInfo());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProjectBillingInfo());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -239,19 +275,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest other = (com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) obj;
+    com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest other =
+        (com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
+    if (!getName().equals(other.getName())) return false;
     if (hasProjectBillingInfo() != other.hasProjectBillingInfo()) return false;
     if (hasProjectBillingInfo()) {
-      if (!getProjectBillingInfo()
-          .equals(other.getProjectBillingInfo())) return false;
+      if (!getProjectBillingInfo().equals(other.getProjectBillingInfo())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -276,117 +311,127 @@ 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() @@ -394,16 +439,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -419,9 +463,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 @@ -440,7 +484,8 @@ public com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest build() { @java.lang.Override public com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest buildPartial() { - com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest result = new com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest(this); + com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest result = + new com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest(this); result.name_ = name_; if (projectBillingInfoBuilder_ == null) { result.projectBillingInfo_ = projectBillingInfo_; @@ -455,38 +500,39 @@ 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; @@ -494,7 +540,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest other) { - if (other == com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -521,7 +568,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -533,19 +581,21 @@ 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; @@ -554,21 +604,22 @@ 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 { @@ -576,57 +627,64 @@ 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]; + * * @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; @@ -634,36 +692,49 @@ public Builder setNameBytes( private com.google.cloud.billing.v1.ProjectBillingInfo projectBillingInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> projectBillingInfoBuilder_; + com.google.cloud.billing.v1.ProjectBillingInfo, + com.google.cloud.billing.v1.ProjectBillingInfo.Builder, + com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> + projectBillingInfoBuilder_; /** + * + * *
      * The new billing information for the project. 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`.
@@ -685,6 +756,8 @@ 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`.
@@ -704,6 +777,8 @@ 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`.
@@ -715,7 +790,9 @@ 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;
         }
@@ -727,6 +804,8 @@ 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`.
@@ -746,6 +825,8 @@ 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`.
@@ -754,11 +835,13 @@ 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`.
@@ -766,15 +849,19 @@ public com.google.cloud.billing.v1.ProjectBillingInfo.Builder getProjectBillingI
      *
      * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2;
      */
-    public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBillingInfoOrBuilder() {
+    public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder
+        getProjectBillingInfoOrBuilder() {
       if (projectBillingInfoBuilder_ != null) {
         return projectBillingInfoBuilder_.getMessageOrBuilder();
       } else {
-        return projectBillingInfo_ == null ?
-            com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance() : projectBillingInfo_;
+        return projectBillingInfo_ == null
+            ? com.google.cloud.billing.v1.ProjectBillingInfo.getDefaultInstance()
+            : projectBillingInfo_;
       }
     }
     /**
+     *
+     *
      * 
      * The new billing information for the project. Read-only fields are ignored;
      * thus, you can leave empty all fields except `billing_account_name`.
@@ -783,21 +870,24 @@ public com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder getProjectBilling
      * .google.cloud.billing.v1.ProjectBillingInfo project_billing_info = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder> 
+            com.google.cloud.billing.v1.ProjectBillingInfo,
+            com.google.cloud.billing.v1.ProjectBillingInfo.Builder,
+            com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>
         getProjectBillingInfoFieldBuilder() {
       if (projectBillingInfoBuilder_ == null) {
-        projectBillingInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.billing.v1.ProjectBillingInfo, com.google.cloud.billing.v1.ProjectBillingInfo.Builder, com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>(
-                getProjectBillingInfo(),
-                getParentForChildren(),
-                isClean());
+        projectBillingInfoBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.billing.v1.ProjectBillingInfo,
+                com.google.cloud.billing.v1.ProjectBillingInfo.Builder,
+                com.google.cloud.billing.v1.ProjectBillingInfoOrBuilder>(
+                getProjectBillingInfo(), getParentForChildren(), isClean());
         projectBillingInfo_ = null;
       }
       return projectBillingInfoBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -807,12 +897,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();
   }
@@ -821,16 +911,16 @@ 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 {
-      return new UpdateProjectBillingInfoRequest(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new UpdateProjectBillingInfoRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -845,6 +935,4 @@ public com.google.protobuf.Parser getParserForT
   public com.google.cloud.billing.v1.UpdateProjectBillingInfoRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
similarity index 72%
rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
rename to proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
index 92a9bb82..bda32cfd 100644
--- a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
+++ b/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/UpdateProjectBillingInfoRequestOrBuilder.java
@@ -1,55 +1,84 @@
+/*
+ * 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/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto b/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto
rename to proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_billing.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto b/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto
rename to proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider1.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetCredentialsProvider1.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetEndpoint.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/AsyncCreateBillingAccount.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/AsyncCreateBillingAccount.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/AsyncCreateBillingAccount.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/AsyncCreateBillingAccount.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccount.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccount.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccount.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccount.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccountBillingaccount.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccountBillingaccount.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccountBillingaccount.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/createbillingaccount/SyncCreateBillingAccountBillingaccount.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/AsyncGetBillingAccount.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/AsyncGetBillingAccount.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/AsyncGetBillingAccount.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/AsyncGetBillingAccount.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccount.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccount.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccount.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccount.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountBillingaccountname.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountBillingaccountname.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountBillingaccountname.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountBillingaccountname.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountString.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountString.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getbillingaccount/SyncGetBillingAccountString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/AsyncGetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/AsyncGetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/AsyncGetIamPolicy.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicy.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyResourcename.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyResourcename.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyResourcename.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyString.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getiampolicy/SyncGetIamPolicyString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/AsyncGetProjectBillingInfo.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/AsyncGetProjectBillingInfo.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/AsyncGetProjectBillingInfo.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/AsyncGetProjectBillingInfo.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfo.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfo.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfo.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfo.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfoString.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfoString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfoString.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/getprojectbillinginfo/SyncGetProjectBillingInfoString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccounts.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccounts.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccounts.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccounts.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccountsPaged.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccountsPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccountsPaged.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/AsyncListBillingAccountsPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccounts.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccounts.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccounts.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccounts.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccountsNoargs.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccountsNoargs.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccountsNoargs.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listbillingaccounts/SyncListBillingAccountsNoargs.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfo.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfo.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfo.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfo.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/AsyncListProjectBillingInfoPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfo.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfo.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfo.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfo.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoBillingaccountname.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoString.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoString.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/listprojectbillinginfo/SyncListProjectBillingInfoString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/AsyncSetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/AsyncSetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/AsyncSetIamPolicy.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicy.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicy.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/AsyncTestIamPermissions.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/AsyncTestIamPermissions.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/AsyncTestIamPermissions.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissions.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissions.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissions.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/AsyncUpdateBillingAccount.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/AsyncUpdateBillingAccount.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/AsyncUpdateBillingAccount.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/AsyncUpdateBillingAccount.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccount.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccount.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccount.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccount.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java
index b8df871b..8be02916 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java
+++ b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountBillingaccountnameBillingaccount.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.billing.v1.samples;
 
-// [START billing_v1_generated_cloudbillingclient_updatebillingaccount_billingaccountnamebillingaccount_sync]
+// [START
+// billing_v1_generated_cloudbillingclient_updatebillingaccount_billingaccountnamebillingaccount_sync]
 import com.google.cloud.billing.v1.BillingAccount;
 import com.google.cloud.billing.v1.BillingAccountName;
 import com.google.cloud.billing.v1.CloudBillingClient;
@@ -37,4 +38,5 @@ public static void syncUpdateBillingAccountBillingaccountnameBillingaccount() th
     }
   }
 }
-// [END billing_v1_generated_cloudbillingclient_updatebillingaccount_billingaccountnamebillingaccount_sync]
+// [END
+// billing_v1_generated_cloudbillingclient_updatebillingaccount_billingaccountnamebillingaccount_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updatebillingaccount/SyncUpdateBillingAccountStringBillingaccount.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/AsyncUpdateProjectBillingInfo.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfo.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java
index d46b664c..6dff2277 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java
+++ b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingclient/updateprojectbillinginfo/SyncUpdateProjectBillingInfoStringProjectbillinginfo.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.billing.v1.samples;
 
-// [START billing_v1_generated_cloudbillingclient_updateprojectbillinginfo_stringprojectbillinginfo_sync]
+// [START
+// billing_v1_generated_cloudbillingclient_updateprojectbillinginfo_stringprojectbillinginfo_sync]
 import com.google.cloud.billing.v1.CloudBillingClient;
 import com.google.cloud.billing.v1.ProjectBillingInfo;
 
@@ -37,4 +38,5 @@ public static void syncUpdateProjectBillingInfoStringProjectbillinginfo() throws
     }
   }
 }
-// [END billing_v1_generated_cloudbillingclient_updateprojectbillinginfo_stringprojectbillinginfo_sync]
+// [END
+// billing_v1_generated_cloudbillingclient_updateprojectbillinginfo_stringprojectbillinginfo_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudbillingsettings/getbillingaccount/SyncGetBillingAccount.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider1.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetCredentialsProvider1.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetEndpoint.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServices.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServices.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServices.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServices.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServicesPaged.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServicesPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServicesPaged.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/AsyncListServicesPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServices.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServices.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServices.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServices.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServicesNoargs.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServicesNoargs.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServicesNoargs.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listservices/SyncListServicesNoargs.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkus.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkus.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkus.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkus.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkusPaged.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkusPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkusPaged.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/AsyncListSkusPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkus.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkus.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkus.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkus.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusServicename.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusServicename.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusServicename.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusServicename.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusString.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusString.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogclient/listskus/SyncListSkusString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java b/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/cloudcatalogsettings/listservices/SyncListServices.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java b/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudbillingstubsettings/getbillingaccount/SyncGetBillingAccount.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java b/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java
rename to samples/snippets/generated/com/google/cloud/billing/v1/stub/cloudcatalogstubsettings/listservices/SyncListServices.java

From 54cf68ef86de68482a51a23a70a8240d9932ed2d Mon Sep 17 00:00:00 2001
From: Tomo Suzuki 
Date: Mon, 27 Jun 2022 18:38:03 +0000
Subject: [PATCH 3/4] deps: adding gax-httpjson

---
 google-cloud-billing/pom.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/google-cloud-billing/pom.xml b/google-cloud-billing/pom.xml
index 796562b6..5908bf1f 100644
--- a/google-cloud-billing/pom.xml
+++ b/google-cloud-billing/pom.xml
@@ -61,6 +61,10 @@
       com.google.api
       gax-grpc
     
+    
+      com.google.api
+      gax-httpjson
+    
     
       org.threeten
       threetenbp
@@ -78,12 +82,24 @@
       test
     
     
+    
+      com.google.api
+      gax
+      testlib
+      test
+    
     
       com.google.api
       gax-grpc
       testlib
       test
     
+    
+      com.google.api
+      gax-httpjson
+      testlib
+      test
+    
   
 
   

From 77c9cd5820bea81d58cf763ad6d8e7fa48a8e36c Mon Sep 17 00:00:00 2001
From: Owl Bot 
Date: Mon, 27 Jun 2022 18:40:08 +0000
Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?=
 =?UTF-8?q?st-processor?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---
 README.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index a96438f6..f0dc2ad4 100644
--- a/README.md
+++ b/README.md
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
 
   com.google.cloud
   google-cloud-billing
-  2.2.0
+  2.2.1
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies
 
 ```Groovy
-implementation 'com.google.cloud:google-cloud-billing:2.2.0'
+implementation 'com.google.cloud:google-cloud-billing:2.2.1'
 ```
 
 If you are using SBT, add this to your dependencies
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.2.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.2.1"
 ```
 
 ## Authentication